Skip to contentSkip to conversation

arm64: dts: socfpga: stratix10_swvp: remove invalid sysmgr properties

PATCH Superseded [email protected] 2 participants 5 messages Jan 10, 2025 – Jan 11, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: socfpga: stratix10_swvp: remove invalid sysmgr properties

From: Niravkumar L Rabara <[email protected]>

Removed invalid sys-mgr properties for stratix10 and fixed dtbs_check warnings like:

socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: cpu1-start-addr: False schema does not allow 4291846704
from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#
socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#

---
 arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -2
index 0d837d3e65a5..fce1dc2ebad0 100644
@@ -110,6 +110,4 @@ &rst {
 
 &sysmgr {
 	reg = <0xffd12000 0x1000>;
-	interrupts = <0x0 0x10 0x4>;
-	cpu1-start-addr = <0xffd06230>;
 };
Signature · 1 line
2.25.1
#1 lore raw
Quoted 3 lines · On 10/01/2025 12:26, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Removed invalid sys-mgr properties for stratix10 and fixed

"Remove"

Quoted 10 lines

dtbs_check warnings like:

socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: cpu1-start-addr: False schema does not allow 4291846704
from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#
socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#

This message is not readable. Don't wrap it.

Quoted 13 lines
---
 arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -0
index 0d837d3e65a5..fce1dc2ebad0 100644

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts &rst { · line 113

Quoted 4 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -1
@@ -110,6 +110,4 @@ &rst {
 
 &sysmgr {
 	reg = <0xffd12000 0x1000>;
-	interrupts = <0x0 0x10 0x4>;

Is this correct? Some background would be useful.

Best regards,
Krzysztof

#2 lore raw
Quoted 30 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Friday, 10 January, 2025 7:37 PM
To: Rabara, Niravkumar L <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]
Cc: lkp <[email protected]>
Subject: Re: [PATCH] arm64: dts: socfpga: stratix10_swvp: remove invalid sysmgr properties

Quoted 3 lines · On 10/01/2025 12:26, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Removed invalid sys-mgr properties for stratix10 and fixed

"Remove"

Quoted 9 lines

dtbs_check warnings like:

socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: cpu1-start-addr: False schema does not allow 4291846704 from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#
socfpga_stratix10_swvp.dtb: sysmgr@ffd12000: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#

Quoted 1 line

This message is not readable. Don't wrap it.

Will fix this in v2.

Quoted 18 lines
Quoted 18 lines

Closes:
https://lore.kernel.org/oe-kbuild-all/202501091748.L2W2RwE5-lkp@intel.
com/

---
 arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -0
index 0d837d3e65a5..fce1dc2ebad0 100644
@@ -110,6 +110,4 @@ &rst {
 
Quoted 5 lines

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts &rst { · line 113

Quoted 3 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -1
 &sysmgr {
 	reg = <0xffd12000 0x1000>;
-	interrupts = <0x0 0x10 0x4>;

Is this correct? Some background would be useful.

stratix10_swvp.dts is for legacy Stratix10 SW Virtual Platform. The socfpga system manager dt binding does not include "interrupt" property and the existing socfpga board files does not use it for sysmgr. (e.g. Cyclon5/Arria10/stratix10/Agilex)

Socfpga system manager drivers (altera-sysmgr.c/socfpga.c) also does not use interrupt property.
The stratix10_swvp.dts has this property since beginning(unused) but dtbs_check warning only appeared recently when I convert system manger binding from txt to yaml.

Thanks,
Nirav

#3 lore raw
Quoted 11 lines · Niravkumar L
Quoted 5 lines

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts &rst { · line 113

Quoted 3 lines

&sysmgr {

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -1
 	reg = <0xffd12000 0x1000>;
-	interrupts = <0x0 0x10 0x4>;

Is this correct? Some background would be useful.

stratix10_swvp.dts is for legacy Stratix10 SW Virtual Platform. The socfpga system manager dt binding does not include "interrupt" property and the existing socfpga board files does not use it for sysmgr. (e.g. Cyclon5/Arria10/stratix10/Agilex)

Quoted 5 lines

Socfpga system manager drivers (altera-sysmgr.c/socfpga.c) also does not use interrupt property.
The stratix10_swvp.dts has this property since beginning(unused) but dtbs_check warning only appeared recently when I convert system manger binding from txt to yaml.

All this I deduced from the change, but it still not answer about hardware.

Best regards,
Krzysztof

#4 lore raw
Quoted 25 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Friday, 10 January, 2025 8:57 PM
To: Rabara, Niravkumar L <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]
Cc: lkp <[email protected]>
Subject: Re: [PATCH] arm64: dts: socfpga: stratix10_swvp: remove invalid sysmgr properties

Quoted 11 lines · Niravkumar L
Quoted 5 lines

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts &rst { · line 113

Quoted 3 lines

&sysmgr {

arch/arm64/boot/dts/altera/socfpga_stratix10_swvp.dts +0 -1
 	reg = <0xffd12000 0x1000>;
-	interrupts = <0x0 0x10 0x4>;

Is this correct? Some background would be useful.

stratix10_swvp.dts is for legacy Stratix10 SW Virtual Platform. The socfpga system manager dt binding does not include "interrupt" property and the existing socfpga board files does not use it for sysmgr. (e.g. Cyclon5/Arria10/stratix10/Agilex)

Quoted 6 lines
Quoted 5 lines

Socfpga system manager drivers (altera-sysmgr.c/socfpga.c) also does not use interrupt property.
The stratix10_swvp.dts has this property since beginning(unused) but dtbs_check warning only appeared recently when I convert system manger binding from txt to yaml.

All this I deduced from the change, but it still not answer about hardware.

System Manager hardware block contains control and status registers for some IPs like EMAC, FPGA to SOC bridge, ECC, USB etc.
e.g
For EMAC, to configure/check PHY interface selection for GMII/RGMII/RMII. For ECC, interrupt mask and status register for USB, Onchip RAM, EMAC etc. Scratch pad registers to pass handoff data from FPGA Secure device manager to bootloader.

There is a global system manager interrupt(System Manger -> GIC -> CPU) to serve single/double bit ECC interrupt to CPU.
Since its dedicated for ECC usage in HW it is not included in system manager dt bindings instead it’s a part of ECC manager bindings.

Thanks,
Nirav