Commit Graph

20267 Commits

Author SHA1 Message Date
Mahavir Jain
268143b732 Merge branch 'bugfix/mbedtls_disable_dhe_by_default' into 'master'
mbedtls: disable Diffie-Hellman key exchange modes by default

Closes IDF-1230

See merge request espressif/esp-idf!15642
2021-11-03 04:30:30 +00:00
Anton Maklakov
4800f2f005 Merge branch 'ci/remove_make' into 'master'
CI: Don't build with "make" because the support is removed in v5.0

Closes IDF-4267

See merge request espressif/esp-idf!15762
2021-11-03 03:17:01 +00:00
Fu Hanxi
636b311ec0 ci: support keyword nightly_run in decorator
The test case with keyword `nightly_run` would be skipped in normal CI
pipelines. only would be triggered when `NIGHTLY_RUN` in environment
variables.
2021-11-03 11:11:38 +08:00
Shu Chen
d756f31da9 Merge branch 'bugfix/esp32h2_iperf_set_dest_ip6_addr_bugs' into 'master'
openthread: fix iperf get dest_ip6_addr

See merge request espressif/esp-idf!15577
2021-11-03 02:57:02 +00:00
Shu Chen
117bb79ec2 Merge branch 'feature/add_ieee802154_timer' into 'master'
ieee802154: Add ieee802154 timer APIs

See merge request espressif/esp-idf!15752
2021-11-03 02:31:03 +00:00
Island
417ef24b06 Merge branch 'bugfix/ble_mesh_host_init' into 'master'
ble_mesh: nimble: return error if init host twice

See merge request espressif/esp-idf!13065
2021-11-03 02:25:03 +00:00
Island
e595fb43cd Merge branch 'bugfix/sig_ble_mesh_errata_e16350' into 'master'
ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG

See merge request espressif/esp-idf!15645
2021-11-03 02:24:59 +00:00
Darian
ea6a0dde5a Merge branch 'bugfix/usb_hcd_robustness' into 'master'
USB Host: Fix how disconnections an EP halts are handled

Closes IDFGH-5797 and IDFGH-6108

See merge request espressif/esp-idf!15640
2021-11-02 13:50:09 +00:00
lly
a1535faad5 ble_mesh: nimble: return error if init host twice 2021-11-02 20:40:49 +08:00
lly
277a5947ee ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG 2021-11-02 20:39:56 +08:00
Roland Dobai
e89fc00e5b CI: Don't build with "make" because the support is removed in v5.0 2021-11-02 13:13:31 +01:00
Darian
44b2b7c22c Merge branch 'bugfix/freertos_round_robin_scheduling_retain_skip' into 'master'
freertos: Implement best effort round robin scheduling

Closes IDFGH-5528

See merge request espressif/esp-idf!15507
2021-11-02 11:58:48 +00:00
Mahavir Jain
bd2c528241 Merge branch 'bugfix/manual_secure_boot_v2_multiple_digest_issue' into 'master'
secure_boot_v2: fix issue in pre-flashed digest (manual) workflow

Closes IDF-4248

See merge request espressif/esp-idf!15688
2021-11-02 10:57:47 +00:00
David Čermák
7bd93e3362 Merge branch 'bugfix/eth_emac_reset_dma_desc' into 'master'
esp-eth: emac: Reset Tx DMA channel owner on init

Closes IDFGH-6071

See merge request espressif/esp-idf!15685
2021-11-02 10:29:02 +00:00
zhangwenxu
1bb69cde88 openthread: fix iperf get dest_ip6_addr
* update copyright headers
2021-11-02 17:10:12 +08:00
Ondrej Kosta
380864861f Copyright message fix for 'Increased LAN8720 ETH-PHY reset assertion time' 2021-11-02 09:57:03 +01:00
Mahavir Jain
f7ed95349f mbedtls: fix dynamic buffer feature build 2021-11-02 15:52:09 +08:00
Mahavir Jain
b05666a2c2 examples: blufi: enable MBEDTLS_DHM_C, as blufi has dependency on this 2021-11-02 15:52:09 +08:00
Mahavir Jain
8c9a3da695 mbedtls: disable Diffie-Hellman key exchange modes by default
Using these ciphers can constitute a security risk if the server
uses a weak prime for the key exchange.

Footprint impact:
Roughly 3K saved in text+rodata in default https_request example
2021-11-02 15:52:09 +08:00
KonstantinKondrashov
bf9829df5b efuse example: Fix pre-load SB test for S2, C3 (erase revoke bits) 2021-11-02 15:26:24 +08:00
Mahavir Jain
2a885ae694 secure_boot_v2: fix issue in pre-flashed digest (manual) workflow
This commit fixes issue where empty (unprogrammed) digest slot out of
multiple supported (e.g. 3 for ESP32-C3) could cause issue in
workflow enablement process.

Notes:

1. This issue was applicable for chips supporting "secure-boot-v2"
scheme with multiple digests slots
2. This issue was affecting only manual workflow, where digest of
public was pre-flashed in efuse
3. Change in "flash_encrypt.c" is only for additional safety purpose
2021-11-02 15:26:24 +08:00
Krzysztof Budzynski
4e5648ea98 Merge branch 'feature/docs_s3_hw_reference' into 'master'
docs: Update 'Hardware Reference' section for ESP32-S3

Closes IDF-3275 and DOC-2103

See merge request espressif/esp-idf!15487
2021-11-02 07:05:03 +00:00
xiewenxiang
f0ef891901 component/bt: check the ble ext conn parameter 2021-11-02 14:33:24 +08:00
Darian Leung
189899180f usb: Change API and refactor tests
This commit updates the USB Host Library API in the following wasy:
- usb_host_client_handle_t and usb_device_handle_t made into struct pointers
  to generate compiler warnings about conflicting handle types
- usb_host_client_config_t changed to future proof API for Synchronous Clients
- Added usb_host_lib_unblock()
- Added usb_host_device_addr_list_fill()
- Return of usb_host_device_free_all() updated to indicate whether there
  are still devices yet to be freed.
- Blockg APIs are now marked explicitly
- Fixed a bug in usb_host_transfer_submit_control() when checking the bEndpointAddress
  of a control transfer.

Tests are also refactored to move some common macros into shared headers

Closes https://github.com/espressif/esp-idf/issues/7786
2021-11-02 14:30:58 +08:00
Darian Leung
54b6c902d3 usb: Add USB Host Library sudden disconnect tests 2021-11-02 14:30:58 +08:00
Darian Leung
6a12e28333 usb: Fix USBH handling of disconnections
This commit fixes how the USBH handling of a sudden device disconnection,
more specifically handling of device gone.
- Previously the USBH would only halt, flush, and dequeue the device's
default EP, then send a device gone event to the Host Library layer.
- Now the USBH will also halt and flush all non-default EPs, allowing
all of the URBs to be dequeud.
- Some internal object members are now protected by a mutex instead of
a spinlock.

Closes https://github.com/espressif/esp-idf/issues/7505
2021-11-02 14:30:58 +08:00
Darian Leung
0c758c8557 usb: Fix how the HCD handles sudden disconnection
This commit fixes how the USB Host HCD handles sudden disconnections.

Bugs:
- HW channels remain active when the port suddenly disconnects, and
previously the channel would be disabled by setting the disabled bit,
then waiting for a disabled interrupt. However, ISOC channels do not
generate the disabled interrupt when the port is invalid, thus leading
to tasks getting indefinitely blocked in hcd_pipe_command().

Fix:
On a sudden disconnection, forcibly treat all channels as halted even
if their HCCHAR.ChEna bit is still set. We do a soft reset after a port
error anyways, so the channels will eventually be reset.

Closes https://github.com/espressif/esp-idf/issues/7505
2021-11-02 14:30:58 +08:00
Darian Leung
0159c37cf2 usb: Fix LL 8/16 bit register field access
This commit addes the 8/16 bit register field access workarounds to
the DWC_OTG peripheral. This workaround was applied to all other
peripherals in commit 874a720286.
2021-11-02 14:30:58 +08:00
Jakob Hasse
1eb96cfc79 feat (driver)!: Added mocking for i2c.h
BREAKING CHANGE: removed ringbuf.h from public i2c.h
2021-11-02 14:16:31 +08:00
xiaqilin
3fc4a0c9c1 ieee802154: add timer APIs 2021-11-02 14:08:34 +08:00
Darian Leung
8babb3bca6 freertos: Fix SMP round robin scheduling
The previous SMP freertos round robin would skip over tasks when
time slicing. This commit implements a Best Effort Round Robin
where selected tasks are put to the back of the list, thus
makes the time slicing more fair.

- Documentation has been updated accordingly.
- Tidy up vTaskSwitchContext() to match v10.4.3 more
- Increased esp_ipc task stack size to avoid overflow

Closes https://github.com/espressif/esp-idf/issues/7256
2021-11-02 14:00:14 +08:00
Krzysztof
cc8413a330 docs: Update 'Hardware Reference' section for ESP32-S3 2021-11-02 06:56:12 +01:00
Zim Kalinowski
13ab2cd9f9 Merge branch 'bugfix/spiram_abort_allocation_failure' into 'master'
SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram

Closes IDFGH-5870

See merge request espressif/esp-idf!15454
2021-11-02 05:36:18 +00:00
Omar Chebib
96391ef62b SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram 2021-11-02 05:36:18 +00:00
Zim Kalinowski
6b3201605e Merge branch 'bugfix/riscv_fix_vector_mcause' into 'master'
RISC-V: fix usage of special register when interrupts are enabled

Closes IDF-3955

See merge request espressif/esp-idf!15370
2021-11-02 05:31:06 +00:00
morris
b2c2e2302b Merge branch 'feature/KSZ8091_support' into 'master'
Add support for Eth PHY KSZ8091

Closes IDFGH-5845

See merge request espressif/esp-idf!15702
2021-11-02 02:37:53 +00:00
xiewenxiang
9b16f5d831 component/bt: fix crash when shutdown bt 2021-11-02 10:29:10 +08:00
Ivan Grokhotkov
f47e8f90ce Merge branch 'bugfix/multi_heap_get_info_impl' into 'master'
heap: fix multi_heap_get_info_impl

See merge request espressif/esp-idf!15470
2021-11-01 21:21:22 +00:00
Frank Sautter
5e7df077d6 Increased LAN8720 ETH-PHY reset assertion time (IDFGH-6018)
Increase reset assertion time from 100µs (as specified minimum in the datasheet) to 150µs.
Some specimen of the LAN8720 need the reset signal asserted longer than 100µs to initialise properly. Otherwise they are in a zombie state where they are establishing and loosing an Ethernet link once in a seconds interval.
2021-11-01 22:03:30 +01:00
Mahavir Jain
e6db26cc40 Merge branch 'bugfix/no_yield_for_efuse_virt_mode' into 'master'
spi_flash: Fix, no CPU release time for an erase operation when OS is not running

See merge request espressif/esp-idf!15734
2021-11-01 18:22:29 +00:00
Simon Chupin
5b17d80a89 Merge branch 'bugfix/archive_details_always_run_like_diff' into 'master'
tools: fix bug with idf_size argument archive_details

Closes IDF-4192

See merge request espressif/esp-idf!15579
2021-11-01 17:42:18 +00:00
simon.chupin
8cff2a27e6 change --archive_details output 2021-11-01 17:43:31 +01:00
gaoxiaojie
0028e2c23c heap: fix multi_heap_get_info_impl 2021-11-01 16:08:07 +00:00
Roland Dobai
6cd0ae8cbf Merge branch 'bugfix/ci_copyright_header_ownership' into 'master'
CI: Make the maintainers to be the owners of the copyright header ignore list

See merge request espressif/esp-idf!15761
2021-11-01 15:54:50 +00:00
ma-lalonde
0f754551dd Add support for Eth PHY KSZ8091 2021-11-01 11:11:18 -04:00
KonstantinKondrashov
884a6b17cc spi_flash: No CPU release time for an erase operation when OS is not running
During the early start, the virtual eFuse mode can call erase operations when OS is not yet running.

Possible workaround: CONFIG_SPI_FLASH_YIELD_DURING_ERASE=n

Fixed for the legacy flash driver as well.
2021-11-01 21:49:24 +08:00
Roland Dobai
93faf8fb95 CI: Make the maintainers to be the owners of the copyright header ignore list 2021-11-01 14:08:07 +01:00
Roland Dobai
2606f3101b Merge branch 'bugfix/xtensa_clang_version_regex' into 'master'
fix(tool): export.sh cannot export xtensa-clang if installed

See merge request espressif/esp-idf!15751
2021-11-01 11:26:31 +00:00
Cao Sen Miao
049349a087 Merge branch 'feature/usb_serial_default_option' into 'master'
usb_serial_jtag: Add secondary menu to support using usb_serial port to print when primary is uart

Closes IDF-3525 and IDF-3555

See merge request espressif/esp-idf!14554
2021-11-01 11:22:35 +00:00
Martin Vychodil
8a86434ece Merge branch 'feature/fatfs_disk_status_implementation' into 'master'
fatfs: Implementation of disk_status for SD/MMC card

Closes IDF-4125

See merge request espressif/esp-idf!15488
2021-11-01 09:48:59 +00:00