Skip to contentSkip to conversation

ARM64: dts: vexpress: Use a symlink to vexpress-v2m-rs1.dtsi from arch=arm

PATCH Applied Ian Campbell 5 participants 6 messages Oct 5, 2015 – Oct 14, 2015

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

PATCH 1/1 ARM64: dts: vexpress: Use a symlink to vexpress-v2m-rs1.dtsi from arch=arm

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Sudeep Holla <[email protected]>
Cc Lorenzo Pieralisi <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Kristina Martsenko <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Olof Johansson <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc arm at kernel.org
Cc linux-kbuild at vger.kernel.org

---
For more on flattening symlinks see
http://thread.gmane.org/gmane.linux.kernel.input/45646/focus=45742

---
 arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts | 2 +-
 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi
arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts +1 -1
index 5b1d018..bb3c26d 100644
@@ -186,6 +186,6 @@
 				<0 0 41 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
 				<0 0 42 &gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
 
-		/include/ "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi"
+		/include/ "vexpress-v2m-rs1.dtsi"
 	};
 };
arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi new file +1 -0
new file mode 120000
index 0000000..68fd0f8
@@ -0,0 +1 @@
+../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi
\ No newline at end of file
Signature · 1 line
2.5.3
#1 lore raw

On Mon, 2015-10-05 at 12:53 +0100, Ian Campbell wrote:

Ping?

Quoted 83 lines

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-re
basing.git/

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Sudeep Holla <[email protected]>
Cc Lorenzo Pieralisi <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Kristina Martsenko <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Olof Johansson <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc arm at kernel.org
Cc linux-kbuild at vger.kernel.org

---
For more on flattening symlinks see
http://thread.gmane.org/gmane.linux.kernel.input/45646/focus=45742

---
 arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts | 2 +-
 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi
arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts +1 -2
index 5b1d018..bb3c26d 100644
@@ -186,6 +186,6 @@
 				<0 0 41 &gic GIC_SPI 41
 IRQ_TYPE_LEVEL_HIGH>,
 				<0 0 42 &gic GIC_SPI 42
 IRQ_TYPE_LEVEL_HIGH>;
 
-		/include/ "../../../../arm/boot/dts/vexpress-v2m
-rs1.dtsi"
+		/include/ "vexpress-v2m-rs1.dtsi"
 	};
 };
arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi new file +1 -0
new file mode 120000
index 0000000..68fd0f8
@@ -0,0 +1 @@
+../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi
\ No newline at end of file
#2 lore raw
In reply to Ian Campbell
Quoted 21 lines · Ian Campbell

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Quoted 6 lines

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/

I don't have any objections but these patches usually go in via the arm-soc tree.

Signature · 1 line
Catalin
Acked-by on v1 1/1
#3 lore raw
In reply to Ian Campbell
Quoted 75 lines · Ian Campbell

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Sudeep Holla <[email protected]>
Cc Lorenzo Pieralisi <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Kristina Martsenko <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Olof Johansson <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc arm at kernel.org
Cc linux-kbuild at vger.kernel.org

---
For more on flattening symlinks see
http://thread.gmane.org/gmane.linux.kernel.input/45646/focus=45742

---
 arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts | 2 +-
 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi
arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts +1 -1
index 5b1d018..bb3c26d 100644
@@ -186,6 +186,6 @@
 				<0 0 41 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
 				<0 0 42 &gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
 
-		/include/ "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi"
+		/include/ "vexpress-v2m-rs1.dtsi"
 	};
 };
arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi new file +0 -0
new file mode 120000
index 0000000..68fd0f8

arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi line 1

Quoted 2 lines
arch/arm64/boot/dts/arm/vexpress-v2m-rs1.dtsi new file +1 -0
@@ -0,0 +1 @@
+../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi
\ No newline at end of file

I was under the impression that there was some reason symlinks of this fashion were discouraged, but I don't know the details, and I don't have strong feelings either way.

This solves a problem, and we don't seem to have a better solution. So to that end:

Thanks,
Mark.

#4 lore raw

Hello Ian, Rob, Olof,

2015-10-13 0:37 GMT+09:00 Mark Rutland <[email protected]>:

Quoted 41 lines · Ian Campbell
Quoted 40 lines

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Sudeep Holla <[email protected]>
Cc Lorenzo Pieralisi <[email protected]>
Cc Russell King <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Kristina Martsenko <[email protected]>
Quoted 8 lines
Quoted 8 lines
Cc Kevin Hilman <[email protected]>
Cc Frank Rowand <[email protected]>
Cc Olof Johansson <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc arm at kernel.org
Cc linux-kbuild at vger.kernel.org

I have a similar issue to vexpress, so I want to consult experts.

I am trying to support a new ARM64 SoC and
want to share some DTSI files between arch/arm/boot/dts and arch/arm64/boot/dts.

I think Ian's "dtb: Create a common home for cross-architecture dtsi files" is under way (or rejected?).

I can live with the symbolic link.
Is it OK (at least for now)?

Signature · 2 lines
Best Regards
Masahiro Yamada
#5 lore raw
In reply to Mark Rutland
Quoted 27 lines · On Monday 12 October 2015 16:37:50 Mark Rutland wrote:
Quoted 26 lines · Ian Campbell

Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on LogicTile Express 20MG" added a new dts file to arch/arm64 which included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a .dtsi supplied by arch/arm.

Unfortunately this causes some issues for the split device tree repository[0], since things get moved around there. In that context the new .dts ends up at src/arm64/arm/vexpress-v2f-1xv7-ca53x2.dts while the include is at src/arm/vexpress-v2m-rs1.dtsi.

The sharing of the .dtsi is legitimate since the baseboard is the same for various vexpress systems whatever processor they use.

Previously I attempted to resolve this by creating a shared location for such things but we have been unable to come to a consensus on where that should be.

Instead this patch simply replaces the use of ../../ in the dts /include/ with a symlink in arch/arm64/boot/dts/arm pointing to the file arch/arm/boot/dts.

Since the split device tree repo will shortly be required to flatten symlinks for other reasons this will cause the dtsi file to appear in both src/arm and src/arm64 in the split repo, which is an improvement on not building for arm64 now.

Quoted 7 lines
Quoted 3 lines

[0] https://git.kernel.org/cgit/linux/kernel/git/devicetree/devicetree-rebasing.git/

Applied to next/dt, thanks!

Arnd