Skip to contentSkip to conversation

arm/arm64: dts: Remove unused num-viewport from pcie node

PATCH In review Jisheng Zhang 3 participants 12 messages Dec 29, 2021 – Jan 10, 2022

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

cover arm/arm64: dts: Remove unused num-viewport from pcie node

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie node(s).

It's too late for linux-5.17-rc1, I will rebase and send out v2 if necessary when 5.17-rc1 is released.

Jisheng Zhang (7):
ARM: dts: ls1021a: remove unused num-viewport from pcie nodes
arm64: dts: visconti: Remove unused num-viewport from pcie node
arm64: dts: uniphier: Remove unused num-viewport from pcie node
arm64: tegra: Remove unused num-viewport from pcie node
arm64: dts: marvell: Remove unused num-viewport from pcie node
arm64: dts: freescale: Remove unused num-viewport from pcie node
arm64: dts: exynos: Remove unused num-viewport from pcie node

 arch/arm/boot/dts/ls1021a.dtsi                          | 2 --
 arch/arm64/boot/dts/exynos/exynos5433.dtsi              | 1 -
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi          | 1 -
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi          | 2 --
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi          | 4 ----
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi      | 1 -
 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-B.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9131-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9132-db.dtsi              | 2 --
 arch/arm64/boot/dts/nvidia/tegra194.dtsi                | 6 ------
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi        | 1 -
 arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi        | 1 -
 arch/arm64/boot/dts/toshiba/tmpv7708.dtsi               | 1 -
 19 files changed, 36 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/7 ARM: dts: ls1021a: remove unused num-viewport from pcie nodes

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm/boot/dts/ls1021a.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm/boot/dts/ls1021a.dtsi +0 -2
index 2e69d6eab4d1..1adc1771b454 100644
@@ -814,7 +814,6 @@ pcie@3400000 {
 			#address-cells = <3>;
 			#size-cells = <2>;
 			device_type = "pci";
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000>, /* downstream I/O */
 				 <0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -838,7 +837,6 @@ pcie@3500000 {
 			#address-cells = <3>;
 			#size-cells = <2>;
 			device_type = "pci";
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000>, /* downstream I/O */
 				 <0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/7 arm64: dts: visconti: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/toshiba/tmpv7708.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/toshiba/tmpv7708.dtsi +0 -1
index 01d7ee61ad25..7ecbfedc02b7 100644
@@ -481,7 +481,6 @@ pcie: pcie@28400000 {
 			device_type = "pci";
 			bus-range = <0x00 0xff>;
 			num-lanes = <2>;
-			num-viewport = <8>;
 
 			#address-cells = <3>;
 			#size-cells = <2>;
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/7 arm64: dts: uniphier: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 1 -
 arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 1 -
 2 files changed, 2 deletions(-)
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +0 -1
index 8f2c1c1e2c64..cc7a18591921 100644
@@ -905,7 +905,6 @@ pcie: pcie@66000000 {
 			clocks = <&sys_clk 24>;
 			resets = <&sys_rst 24>;
 			num-lanes = <1>;
-			num-viewport = <1>;
 			bus-range = <0x0 0xff>;
 			device_type = "pci";
 			ranges =
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +0 -1
index be97da132258..7646d14d1fa9 100644
@@ -802,7 +802,6 @@ pcie: pcie@66000000 {
 			clocks = <&sys_clk 24>;
 			resets = <&sys_rst 24>;
 			num-lanes = <1>;
-			num-viewport = <1>;
 			bus-range = <0x0 0xff>;
 			device_type = "pci";
 			ranges =
Signature · 1 line
2.34.1
#4 lore raw

PATCH 4/7 arm64: tegra: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 6 ------
 1 file changed, 6 deletions(-)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +0 -6
index 851e049b3519..e5c7c22b1c05 100644
@@ -2007,7 +2007,6 @@ pcie@14100000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <1>;
-		num-viewport = <8>;
 		linux,pci-domain = <1>;
 
 		clocks = <&bpmp TEGRA194_CLK_PEX0_CORE_1>;
@@ -2061,7 +2060,6 @@ pcie@14120000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <1>;
-		num-viewport = <8>;
 		linux,pci-domain = <2>;
 
 		clocks = <&bpmp TEGRA194_CLK_PEX0_CORE_2>;
@@ -2115,7 +2113,6 @@ pcie@14140000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <1>;
-		num-viewport = <8>;
 		linux,pci-domain = <3>;
 
 		clocks = <&bpmp TEGRA194_CLK_PEX0_CORE_3>;
@@ -2169,7 +2166,6 @@ pcie@14160000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <4>;
-		num-viewport = <8>;
 		linux,pci-domain = <4>;
 
 		clocks = <&bpmp TEGRA194_CLK_PEX0_CORE_4>;
@@ -2223,7 +2219,6 @@ pcie@14180000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <8>;
-		num-viewport = <8>;
 		linux,pci-domain = <0>;
 
 		clocks = <&bpmp TEGRA194_CLK_PEX0_CORE_0>;
@@ -2277,7 +2272,6 @@ pcie@141a0000 {
 		#size-cells = <2>;
 		device_type = "pci";
 		num-lanes = <8>;
-		num-viewport = <8>;
 		linux,pci-domain = <5>;
 
 		pinctrl-names = "default";
Signature · 1 line
2.34.1
#5 lore raw

PATCH 5/7 arm64: dts: marvell: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi      | 1 -
 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-B.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9131-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9132-db.dtsi              | 2 --
 7 files changed, 8 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0 -1
index adbfecc678b5..860912e47732 100644
@@ -180,7 +180,6 @@ &cp0_pcie0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cp0_pcie_pins>;
 	num-lanes = <4>;
-	num-viewport = <8>;
 	reset-gpios = <&cp0_gpio2 20 GPIO_ACTIVE_LOW>;
 	ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000>;
 	phys = <&cp0_comphy0 0>, <&cp0_comphy1 0>,
arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts +0 -1
index dac85fa748de..c5ba03c2194d 100644
@@ -330,7 +330,6 @@ &cp0_pcie0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cp0_pcie_pins>;
 	num-lanes = <1>;
-	num-viewport = <8>;
 	reset-gpios = <&cp0_gpio2 20 GPIO_ACTIVE_LOW>;
 	ranges = <0x82000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000>;
 	phys = <&cp0_comphy0 0>;
arch/arm64/boot/dts/marvell/cn9130-crb-A.dts +0 -1
index a7b6dfba8af5..ccb48d81604a 100644
@@ -12,7 +12,6 @@ / {
 &cp0_pcie0 {
 	status = "okay";
 	num-lanes = <4>;
-	num-viewport = <8>;
 	/* Generic PHY, providing serdes lanes */
 	phys = <&cp0_comphy0 0
 		&cp0_comphy1 0
arch/arm64/boot/dts/marvell/cn9130-crb-B.dts +0 -1
index 0904cb0309ae..4c68c8c310ae 100644
@@ -12,7 +12,6 @@ / {
 &cp0_pcie0 {
 	status = "okay";
 	num-lanes = <1>;
-	num-viewport = <8>;
 	/* Generic PHY, providing serdes lanes */
 	phys = <&cp0_comphy0 0>;
 	iommu-map =
arch/arm64/boot/dts/marvell/cn9130-db.dtsi +0 -1
index c00b69b88bd2..54f40674808b 100644
@@ -271,7 +271,6 @@ partition@1000000 {
 &cp0_pcie0 {
 	status = "okay";
 	num-lanes = <4>;
-	num-viewport = <8>;
 	/* Generic PHY, providing serdes lanes */
 	phys = <&cp0_comphy0 0
 		&cp0_comphy1 0
arch/arm64/boot/dts/marvell/cn9131-db.dtsi +0 -1
index f995b1bcda01..ccf162fa751b 100644
@@ -112,7 +112,6 @@ &cp1_pcie0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&cp1_pcie_reset_pins>;
 	num-lanes = <2>;
-	num-viewport = <8>;
 	marvell,reset-gpio = <&cp1_gpio1 0 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 	/* Generic PHY, providing serdes lanes */
arch/arm64/boot/dts/marvell/cn9132-db.dtsi +0 -2
index 3f1795fb4fe7..be96d5f3398e 100644
@@ -153,7 +153,6 @@ cp2_module_expander1: pca9555@21 {
 &cp2_pcie0 {
 	status = "okay";
 	num-lanes = <2>;
-	num-viewport = <8>;
 	/* Generic PHY, providing serdes lanes */
 	phys = <&cp2_comphy0 0
 		&cp2_comphy1 0>;
@@ -163,7 +162,6 @@ &cp2_pcie0 {
 &cp2_pcie2 {
 	status = "okay";
 	num-lanes = <1>;
-	num-viewport = <8>;
 	/* Generic PHY, providing serdes lanes */
 	phys = <&cp2_comphy5 2>;
 };
Signature · 1 line
2.34.1
#6 lore raw

PATCH 6/7 arm64: dts: freescale: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 -
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 --
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 ----
 6 files changed, 16 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +0 -1
index 50a72cda4727..13e57f34ca5b 100644
@@ -531,7 +531,6 @@ pcie1: pcie@3400000 {
 			#address-cells = <3>;
 			#size-cells = <2>;
 			device_type = "pci";
-			num-viewport = <2>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +0 -2
index fd3f3e8bb6ce..ac6e1f795bc9 100644
@@ -622,7 +622,6 @@ pcie1: pcie@3400000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <8>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x80 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -649,7 +648,6 @@ pcie2: pcie@3500000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <8>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x88 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +0 -3
index 01b01e320411..a8d1db620497 100644
@@ -879,7 +879,6 @@ pcie1: pcie@3400000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -905,7 +904,6 @@ pcie2: pcie@3500000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -931,7 +929,6 @@ pcie3: pcie@3600000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +0 -3
index 687fea6d8afa..8c3166afe737 100644
@@ -783,7 +783,6 @@ pcie1: pcie@3400000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <8>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -819,7 +818,6 @@ pcie2: pcie@3500000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <8>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -855,7 +853,6 @@ pcie3: pcie@3600000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <8>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +0 -3
index f891ef6a3754..cfed82908e7f 100644
@@ -550,7 +550,6 @@ pcie1: pcie@3400000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <256>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -587,7 +586,6 @@ pcie2: pcie@3500000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x28 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x28 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
@@ -623,7 +621,6 @@ pcie3: pcie@3600000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			ranges = <0x81000000 0x0 0x00000000 0x30 0x00010000 0x0 0x00010000   /* downstream I/O */
 				  0x82000000 0x0 0x40000000 0x30 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +0 -4
index 3cb9c21d2775..5bd651454705 100644
@@ -1074,7 +1074,6 @@ pcie1: pcie@3400000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			msi-parent = <&its>;
 			#interrupt-cells = <1>;
@@ -1096,7 +1095,6 @@ pcie2: pcie@3500000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			msi-parent = <&its>;
 			#interrupt-cells = <1>;
@@ -1118,7 +1116,6 @@ pcie3: pcie@3600000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <256>;
 			bus-range = <0x0 0xff>;
 			msi-parent = <&its>;
 			#interrupt-cells = <1>;
@@ -1140,7 +1137,6 @@ pcie4: pcie@3700000 {
 			#size-cells = <2>;
 			device_type = "pci";
 			dma-coherent;
-			num-viewport = <6>;
 			bus-range = <0x0 0xff>;
 			msi-parent = <&its>;
 			#interrupt-cells = <1>;
Signature · 1 line
2.34.1
#7 lore raw

PATCH 7/7 arm64: dts: exynos: Remove unused num-viewport from pcie node

In reply to Jisheng Zhang

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie nodes.

---
 arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos5433.dtsi +0 -1
index 4422021cf4b2..8d65a4115c47 100644
@@ -1960,7 +1960,6 @@ pcie: pcie@15700000 {
 				 <&cmu_fsys CLK_PCLK_PCIE_PHY>;
 			clock-names = "pcie", "pcie_bus";
 			num-lanes = <1>;
-			num-viewport = <3>;
 			bus-range = <0x00 0xff>;
 			phys = <&pcie_phy>;
 			ranges = <0x81000000 0 0	  0x0c001000 0 0x00010000>,
Signature · 1 line
2.34.1
#8 lore raw
In reply to Jisheng Zhang
Quoted 10 lines

From: Jisheng Zhang <[email protected]>
Date: Thu, 30 Dec 2021 00:02:38 +0800

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie node(s).

It's too late for linux-5.17-rc1, I will rebase and send out v2 if necessary when 5.17-rc1 is released.

Please no. This only makes the device trees unnecessarily incompatible with older kernels and other OSes that do rely on the "num-viewport" property. It really doesn't hurt to keep this property even if future Linux kernels no longer look at it.

Thanks,

Mark

Quoted 39 lines

Jisheng Zhang (7):
ARM: dts: ls1021a: remove unused num-viewport from pcie nodes
arm64: dts: visconti: Remove unused num-viewport from pcie node
arm64: dts: uniphier: Remove unused num-viewport from pcie node
arm64: tegra: Remove unused num-viewport from pcie node
arm64: dts: marvell: Remove unused num-viewport from pcie node
arm64: dts: freescale: Remove unused num-viewport from pcie node
arm64: dts: exynos: Remove unused num-viewport from pcie node

 arch/arm/boot/dts/ls1021a.dtsi                          | 2 --
 arch/arm64/boot/dts/exynos/exynos5433.dtsi              | 1 -
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi          | 1 -
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi          | 2 --
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi          | 3 ---
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi          | 4 ----
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi      | 1 -
 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-crb-B.dts            | 1 -
 arch/arm64/boot/dts/marvell/cn9130-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9131-db.dtsi              | 1 -
 arch/arm64/boot/dts/marvell/cn9132-db.dtsi              | 2 --
 arch/arm64/boot/dts/nvidia/tegra194.dtsi                | 6 ------
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi        | 1 -
 arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi        | 1 -
 arch/arm64/boot/dts/toshiba/tmpv7708.dtsi               | 1 -
 19 files changed, 36 deletions(-)
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#9 lore raw
Quoted 8 lines · Mark Kettenis
Quoted 8 lines

From: Jisheng Zhang <[email protected]>
Date: Thu, 30 Dec 2021 00:02:38 +0800

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie node(s).

Quoted 5 lines
Quoted 2 lines

It's too late for linux-5.17-rc1, I will rebase and send out v2 if necessary when 5.17-rc1 is released.

Please no. This only makes the device trees unnecessarily incompatible with older kernels

Anyone who is running a new DTB with older kernel is doomed anyway, not only because of this change but hundreds of other similar cleanups, e.g. making DTS conforming to dtschema. Are you sure there are such use cases of using new DTB with old kernel? I cannot imagine making a stable product with such scenario...

Quoted 2 lines

and other OSes that do rely on the
"num-viewport" property.

Right. We should have move the DTS out of the kernel when it was still small. :)

Quoted 2 lines

It really doesn't hurt to keep this property even if future Linux kernels no longer look at it.

For Exynos PCIe, the property is still required by bindings, so definitely it cannot be removed from DTS. I did not check the other bindings.

Best regards,
Krzysztof

#10 lore raw
Quoted 15 lines

Date: Fri, 7 Jan 2022 13:47:03 +0100
From: Krzysztof Kozlowski <[email protected]>

Quoted 11 lines · Mark Kettenis
Quoted 10 lines

From: Jisheng Zhang <[email protected]>
Date: Thu, 30 Dec 2021 00:02:38 +0800

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie node(s).

It's too late for linux-5.17-rc1, I will rebase and send out v2 if necessary when 5.17-rc1 is released.

Quoted 8 lines
Quoted 2 lines

Please no. This only makes the device trees unnecessarily incompatible with older kernels

Anyone who is running a new DTB with older kernel is doomed anyway, not only because of this change but hundreds of other similar cleanups, e.g. making DTS conforming to dtschema. Are you sure there are such use cases of using new DTB with old kernel? I cannot imagine making a stable product with such scenario...

Well, many of those changes just affect the node names, which aren't part of the ABI. And adding missing properties or compatibles doesn't break things either. But yes, we keep seeing diffs to "cleanup" bindings and device trees, especially in the context of converting them to dtschema. And that's just wrong. If old device trees don't pass validation, the default assumption should be that the schema is wrong; not the other way around.

Quoted 5 lines
Quoted 2 lines

and other OSes that do rely on the
"num-viewport" property.

Right. We should have move the DTS out of the kernel when it was still small. :)

I don't think the number/size of DTs really matters. But yes, moving them to a separate repository would certainly make it more obvious that they should not be tied to a particular kernel version and that they are shared with other projects such as U-Boot and other OSes.

Quoted 9 lines
Quoted 2 lines

It really doesn't hurt to keep this property even if future Linux kernels no longer look at it.

For Exynos PCIe, the property is still required by bindings, so definitely it cannot be removed from DTS. I did not check the other bindings.

Best regards,
Krzysztof

Cheers,

Mark

#11 lore raw
Quoted 24 lines · Mark Kettenis
Quoted 15 lines

Date: Fri, 7 Jan 2022 13:47:03 +0100
From: Krzysztof Kozlowski <[email protected]>

Quoted 11 lines · Mark Kettenis
Quoted 10 lines

From: Jisheng Zhang <[email protected]>
Date: Thu, 30 Dec 2021 00:02:38 +0800

After commit 281f1f99cf3a("PCI: dwc: Detect number of iATU windows"), the number of iATU windows is detected at runtime, what's more, the 'num-viewport' property parsing has been removed, so remove the unused num-viewport from pcie node(s).

It's too late for linux-5.17-rc1, I will rebase and send out v2 if necessary when 5.17-rc1 is released.

Quoted 8 lines
Quoted 2 lines

Please no. This only makes the device trees unnecessarily incompatible with older kernels

Anyone who is running a new DTB with older kernel is doomed anyway, not only because of this change but hundreds of other similar cleanups, e.g. making DTS conforming to dtschema. Are you sure there are such use cases of using new DTB with old kernel? I cannot imagine making a stable product with such scenario...

Quoted 7 lines

Well, many of those changes just affect the node names, which aren't part of the ABI. And adding missing properties or compatibles doesn't break things either. But yes, we keep seeing diffs to "cleanup" bindings and device trees, especially in the context of converting them to dtschema. And that's just wrong. If old device trees don't pass validation, the default assumption should be that the schema is wrong; not the other way around.

I cannot get how you reached a conclusion that old device tree could be good, but old bindings would be bad... Both were developed without consistency, sometimes without proper review. Simply both can be wrong and now we fix them - the bindings by converting to stricter schema and DTS files by aligning them with new schema.

There was never a contract between us and users that OLD kernel will work with NEW DTB. The only contract we made was the other way around - NEW kernel will work with OLD DTB.

I understand that it is useful to have new DTB working with old kernel. I consider it as a "nice to have" feature but:
1. Still there are no real users of such pattern (new DTB with old kernel), around Linux kernel. If they are - I am repaeting - their Linux project is already broken.

2. If Linux drivers or other projects depend on node names and anything not being part of bindings (the ABI), they are broken by design. They should either be fixed or accept that might get broken anytime soon because they do not use bindings but undocumented parts (which are not ABI).

3. "Nice to have" should not stop us in improving out codebase and making it easier to maintain for us. We do not make these "dtschema align" changes for pure fun, but to make everything easier for us in the longterm. The dtschema checks I was running (and converting to dtschema) already found errors in DTS. These are real bugs which are fixed by this stricter dtschema.

Best regards,
Krzysztof