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 entropy: bt_hci: driver added 2022-03-23 13:38:47 +01:00
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
Kconfig entropy: bt_hci: driver added 2022-03-23 13:38:47 +01:00
Kconfig.b91 drivers: entropy: introduce new Telink B91 Entropy driver 2021-08-04 15:45:32 +02:00
Kconfig.bt_hci Bluetooth: Fix compilation for entropy_bt_hci 2022-04-26 09:00:03 +02:00
Kconfig.cc13xx_cc26xx drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.esp32 esp32s2: drivers: entropy: add support 2021-10-01 10:51:37 -04:00
Kconfig.gecko drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.litex kconfig: Turn pointless 'menuconfig's into 'config's 2020-01-24 21:30:17 -05:00
Kconfig.mcux soc: arm: nxp_imx: rt: Configure settings for TRNG IP 2021-08-06 20:29:59 -04:00
Kconfig.native_posix drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.neorv32 drivers: entropy: add driver for the neorv32 trng 2021-10-26 17:53:15 -04:00
Kconfig.nrf5 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.rv32m1 random: deprecate XOROSHIRO_RANDOM_GENERATOR 2021-08-05 11:24:44 +02:00
Kconfig.sam drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.stm32 drivers: entropy: stm32 full driver rework with software fifo 2020-09-01 13:31:38 +02:00