diff options
author | Emanuele Ghidoli <emanuele.ghidoli@toradex.com> | 2025-07-29 09:33:13 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2025-09-10 08:54:50 +0000 |
commit | a891c741b726fe26e9a525e5f342919d45e25455 (patch) | |
tree | c768bfba050d17e769fa06e668ac5ce525948347 /drivers/firmware/imx/se_ctrl.c | |
parent | a034ed39f03628a271a3e26c37daa885288487dd (diff) |
firmware: se_fw: fix memory reservationtoradex_6.6-2.2.x-imx
The security enclave firmware runs on the Cortex-M33 core, and the driver
expects responses to requests to be returned via a shared memory region
in DRAM.
However, the Cortex-M33 cannot access the entire DDR address space.
If the driver uses an inaccessible region, the Cortex-M33 may fail
to respond to Cortex-A requests.
Fix this by enabling memory reservation in the driver and supporting the
`memory-region` property in the device tree to specify a suitable region.
Adapted to the lf-6.6.52-2.2.1 kernel update.
(cherry picked from commit af14377659e3fb5f107d7082703ecd74a4708388)
Upstream-Status: Pending
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'drivers/firmware/imx/se_ctrl.c')
-rw-r--r-- | drivers/firmware/imx/se_ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/imx/se_ctrl.c b/drivers/firmware/imx/se_ctrl.c index 21e0d72c3c7b..1893fc5cb6f9 100644 --- a/drivers/firmware/imx/se_ctrl.c +++ b/drivers/firmware/imx/se_ctrl.c @@ -189,7 +189,7 @@ static struct se_if_node_info_list imx95_info = { .base_api_ver = MESSAGING_VERSION_6, .fw_api_ver = MESSAGING_VERSION_7, }, - .reserved_dma_ranges = false, + .reserved_dma_ranges = true, .start_rng = ele_start_rng, .init_trng = ele_trng_init, .se_if_early_init = NULL, |