[PATCH v2 0/3] bus: rifsc: add stm32mp21 support and config dump debug entry

Gatien Chevallier posted 3 patches 1 month, 1 week ago
.../bindings/bus/st,stm32mp25-rifsc.yaml           |   8 +-
arch/arm64/boot/dts/st/stm32mp211.dtsi             |   4 +-
drivers/bus/stm32_rifsc.c                          | 597 ++++++++++++++++++++-
3 files changed, 602 insertions(+), 7 deletions(-)
[PATCH v2 0/3] bus: rifsc: add stm32mp21 support and config dump debug entry
Posted by Gatien Chevallier 1 month, 1 week ago
The STM32MP21x platforms have a slightly different RIFSC. Add support
for these platforms.

Also, the RIF is a complex firewall framework which can be tricky
to debug. To facilitate the latter, add a debugfs entry that can
be used to display the whole RIFSC firewall configuration at runtime.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
---
Changes in v2:
- Added Conor tag on bindings
- Fixed coccinelle warning by using str_enabled_disabled() when
  applicable
- Link to v1: https://lore.kernel.org/r/20251104-rifsc_debugfs-v1-0-7ebdfbf8d33f@foss.st.com

---
Gatien Chevallier (3):
      dt-bindings: bus: add stm32mp21 RIFSC compatible
      arm64: dts: st: set RIFSC as an access controller on stm32mp21x platforms
      bus: rifsc: add debugfs entry to dump the firewall configuration

 .../bindings/bus/st,stm32mp25-rifsc.yaml           |   8 +-
 arch/arm64/boot/dts/st/stm32mp211.dtsi             |   4 +-
 drivers/bus/stm32_rifsc.c                          | 597 ++++++++++++++++++++-
 3 files changed, 602 insertions(+), 7 deletions(-)
---
base-commit: 6146a0f1dfae5d37442a9ddcba012add260bceb0
change-id: 20251104-rifsc_debugfs-5053ea033ce3

Best regards,
-- 
Gatien Chevallier <gatien.chevallier@foss.st.com>
Re: [PATCH v2 0/3] bus: rifsc: add stm32mp21 support and config dump debug entry
Posted by Alexandre TORGUE 1 month ago
Hi Gatien

On 11/6/25 10:31, Gatien Chevallier wrote:
> The STM32MP21x platforms have a slightly different RIFSC. Add support
> for these platforms.
> 
> Also, the RIF is a complex firewall framework which can be tricky
> to debug. To facilitate the latter, add a debugfs entry that can
> be used to display the whole RIFSC firewall configuration at runtime.
> 
> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
> ---
> Changes in v2:
> - Added Conor tag on bindings
> - Fixed coccinelle warning by using str_enabled_disabled() when
>    applicable
> - Link to v1: https://lore.kernel.org/r/20251104-rifsc_debugfs-v1-0-7ebdfbf8d33f@foss.st.com
> 
> ---
> Gatien Chevallier (3):
>        dt-bindings: bus: add stm32mp21 RIFSC compatible
>        arm64: dts: st: set RIFSC as an access controller on stm32mp21x platforms
>        bus: rifsc: add debugfs entry to dump the firewall configuration
> 
>   .../bindings/bus/st,stm32mp25-rifsc.yaml           |   8 +-
>   arch/arm64/boot/dts/st/stm32mp211.dtsi             |   4 +-
>   drivers/bus/stm32_rifsc.c                          | 597 ++++++++++++++++++++-
>   3 files changed, 602 insertions(+), 7 deletions(-)
> ---
> base-commit: 6146a0f1dfae5d37442a9ddcba012add260bceb0
> change-id: 20251104-rifsc_debugfs-5053ea033ce3
> 
> Best regards,

DT patch applied on stm32-next.

I'll send a dedicated PR for other patches to arm-soc tree.

regards
Alex