OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

How to use TZASC to configure a new secure region in Hikey960? #6940

Closed qianfei11 closed 3 months ago

qianfei11 commented 4 months ago

I found in https://github.com/OP-TEE/optee_os/issues/4359 that I can use TZASC to configure a dynamic mapping from plat-stm32mp1/plat_tzc400.c on the STM32MP157C-DK2 board. However, in the plat-hisilicon/ folder, there are only main.c and psci.c files, neither of which seem to have any relation to TZASC. Is there any support for TZASC configuration in OP-TEE for the Hikey960 board?

Also, I found this answer on the 96boards forum. It seems that the Hikey960 does not expose the related hardware information, so the related code is not implemented. Is this correct?

Lastly, I want to inquire about core/drivers/tzc400.c and core/drivers/tzc380.c. Are they simple implementations for TZASC? If I can provide a base for TZASC registers, can I use these functions to configure TZASC?

etienne-lms commented 4 months ago

Lastly, I want to inquire about core/drivers/tzc400.c and core/drivers/tzc380.c. Are they simple implementations for TZASC? If I can provide a base for TZASC registers, can I use these functions to configure TZASC?

Regarding this last question:yes, these drivers can be used with Arm TZC400/TZC380 hardware components if implemented in the silicon of the device.

github-actions[bot] commented 3 months ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.