zephyr/drivers/entropy
Thomas Altenbach cc51031445 drivers/entropy: stm32: fix inter-core race condition
On STM32WB and dual-core STM32H7 MCUs, the RNG peripheral is shared
between the cores and its access is protected by a hardware semaphore.
Locking was not performed in the current entropy driver, leading to a
race condition when multiple cores concurrently used the RNG. This
commit implements the necessary logic for locking the HSEM during entropy
generation on multi-core STM32 MCUs. It also reconfigures the RNG in case
the configuration was changed by the other core, as this can happen e.g
on STM32WB MCUs.

Signed-off-by: Thomas Altenbach <taltenbach@witekio.com>
2022-05-13 10:28:53 -05:00
..
CMakeLists.txt
Kconfig
Kconfig.b91
Kconfig.bt_hci Bluetooth: Fix compilation for entropy_bt_hci 2022-04-26 09:00:03 +02:00
Kconfig.cc13xx_cc26xx
Kconfig.esp32
Kconfig.gecko
Kconfig.litex
Kconfig.mcux
Kconfig.native_posix
Kconfig.neorv32
Kconfig.nrf5
Kconfig.rv32m1
Kconfig.sam
Kconfig.stm32
entropy_b91_trng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_bt_hci.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_cc13xx_cc26xx.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_esp32.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_gecko_trng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_handlers.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_litex.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_mcux_rng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_mcux_rnga.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_mcux_trng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_neorv32_trng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_nrf5.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_rv32m1_trng.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_sam.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
entropy_stm32.c drivers/entropy: stm32: fix inter-core race condition 2022-05-13 10:28:53 -05:00
fake_entropy_native_posix.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00