-
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
(STM32) drivers: stm32_risab: add RISAB reconfiguration #7252
Conversation
Checkpatch fails are targeting traces, so false positives. |
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.
For commit "drivers: stm32_risab: rework regs_access_granted()": since it's fixing something, I think it deserves a Fixes tag:
Fixes: c413678c6ca6 ("drivers: stm32_risab: add RISAB internal memory firewall driver")
core/drivers/firewall/stm32_risab.c
Outdated
|
||
if (!IS_ALIGNED(paddr, _RISAB_PAGE_SIZE) || | ||
!IS_ALIGNED(size, _RISAB_PAGE_SIZE)) { | ||
EMSG("Physical ddress %"PRIxPA" or size:%#zx misaligned with RISAB page boundaries", |
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.
s/ddress/address/
Maybe shorten the message to "Unaligned region: pa %#"PRIxPA" size %zu"
.
Note that EMSG()
already prints the function label, here explicitly referring to RISAB.
Comments addressed |
Last comment addressed |
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.
Acked-by: Etienne Carriere <[email protected]>
Rework regs_access_granted() to always authorize access to RISAB1/2 that can only be accessed by the Cortex-A35. Also fix the sequence by isolating the case where the CID filtering is not enabled. Fixes: c413678 ("drivers: stm32_risab: add RISAB internal memory firewall driver") Signed-off-by: Gatien Chevallier <[email protected]> Acked-by: Etienne Carriere <[email protected]>
Add the .set_memory_conf ops to be able to reconfigure memory regions protected by RISABs dynamically. Factorize the RIF configuration application. Signed-off-by: Gatien Chevallier <[email protected]> Acked-by: Etienne Carriere <[email protected]>
Tags applied, thanks. Checkpatch error is related to a trace. |
Similarly to RISAF, update the driver to allow dynamic firewall reconfiguration.