rockchip: px30: remove CONFIG_OPTEE support
PATCH 1/1 rockchip: px30: remove CONFIG_OPTEE support
Rockchip use CONFIG_SPL_OPTEE for OPTEE support, which is load and run before U-Boot, but not use CONFIG_OPTEE which is after U-Boot.
---
configs/evb-px30_defconfig | 1 - configs/firefly-px30_defconfig | 1 - 2 files changed, 2 deletions(-)
configs/evb-px30_defconfig +0 -1
@@ -90,7 +90,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SOUND=y CONFIG_SYSRESET=y -CONFIG_OPTEE=y CONFIG_DM_THERMAL=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y
configs/firefly-px30_defconfig +0 -1
@@ -95,7 +95,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SOUND=y CONFIG_SYSRESET=y -CONFIG_OPTEE=y CONFIG_DM_THERMAL=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y
Signature · 1 line
2.17.1
PATCH 1/1 rockchip: px30: remove CONFIG_OPTEE support
Hi Kever,
Am Dienstag, 7. Januar 2020, 09:59:39 CET schrieb Kever Yang:
Quoted 4 lines
Rockchip use
CONFIG_SPL_OPTEEfor OPTEE support, which is load and run before U-Boot, but not useCONFIG_OPTEEwhich is after U-Boot.Signed-off-by Kever Yang <[email protected]>
I see you applied this to the Rockchip custodian tree and I would like to ask you to revert that.
SPL_OPTEE is only useful on boards that want to jump directly into OPTEE from SPL, like the rk3228 currently does.
CONFIG_OPTEE on the other hand enables the functionality to claim the correct regions of ram in the kernel DT.
When OPTEE loads it will reserve its memory regions as "reserved-memory" but of course only in the DT provided through the SPL. So when U-Boot loads a kernel+separate DT it will not know about them and may access them.
The functionality provided by CONFIG_OPTEE will transfer the reserved areas from the SPL-DT to the kernel-DT to make sure we don't run into security exceptions later on.
So please reenable CONFIG_OPTEE for px30
Thanks
Heiko
Quoted 31 lines
---
configs/evb-px30_defconfig | 1 - configs/firefly-px30_defconfig | 1 - 2 files changed, 2 deletions(-)configs/evb-px30_defconfig +0
-1@@ -90,7 +90,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SOUND=y CONFIG_SYSRESET=y -CONFIG_OPTEE=y CONFIG_DM_THERMAL=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=yconfigs/firefly-px30_defconfig +0
-1@@ -95,7 +95,6 @@ CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SOUND=y CONFIG_SYSRESET=y -CONFIG_OPTEE=y CONFIG_DM_THERMAL=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y