-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plat-stm32: SCMI reset controllers on remoteproc are disabled on secure fmw loading #7106
Conversation
if (rd->reset_id == MCU_HOLD_BOOT_R) | ||
return SCMI_NOT_SUPPORTED; | ||
/* Remoteproc driver may handle all MCU reset controllers */ | ||
if (IS_ENABLED(CFG_STM32MP_REMOTEPROC) && rd->reset_id == MCU_R) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&& stm32_rproc_is_secure(xxx)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks!
#ifdef CFG_STM32MP15 | ||
/* Remoteproc driver may handle all MCU reset controllers */ | ||
if (IS_ENABLED(CFG_STM32MP_REMOTEPROC) & | ||
(rd->reset_id == MCU_R || rd->reset_id == MCU_HOLD_BOOT_R)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@arnopo , do you want to give your tag as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
@etienne-lms I'm just worried about |
Removal of |
Add stm32_remoteproc driver API function stm32_rproc_is_secure() that return whether of not remote processor management shall be handled through OP-TEE remoteproc secure services. Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Forbid SCMI accesses to MCU reset controllers when remote processor is to be managed through OP-TEE remoteproc services. Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Remove useless assertion on reset controller handle value. Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
8102e03
to
ee5d5f3
Compare
Changes for STM32 remote proc driver and SCMI server to expose remoteproc reset controllers through SCMI only when the secure loading of remoteproc firmware is disabled. When so, remoteproc reset and power sequence shall go through OP-TEE remoteproc services, not SCMI platform services.