[PATCH RFC v3 35/35] HACK! arm64: dts: Add fake tag storage to fvp-base-revc.dts

Alexandru Elisei alexandru.elisei at arm.com
Thu Jan 25 08:42:56 PST 2024


Faking a tag storage region for FVP is useful for testing.

Signed-off-by: Alexandru Elisei <alexandru.elisei at arm.com>
---

Changes since rfc v2:

* New patch, not intended to be merged.

 arch/arm64/boot/dts/arm/fvp-base-revc.dts | 42 +++++++++++++++++++++--
 1 file changed, 39 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/arm/fvp-base-revc.dts b/arch/arm64/boot/dts/arm/fvp-base-revc.dts
index 60472d65a355..e9f44420cb62 100644
--- a/arch/arm64/boot/dts/arm/fvp-base-revc.dts
+++ b/arch/arm64/boot/dts/arm/fvp-base-revc.dts
@@ -165,10 +165,30 @@ C1_L2: l2-cache1 {
 		};
 	};
 
-	memory at 80000000 {
+	memory0: memory at 80000000 {
 		device_type = "memory";
-		reg = <0x00000000 0x80000000 0 0x80000000>,
-		      <0x00000008 0x80000000 0 0x80000000>;
+		reg = <0x00 0x80000000 0x00 0x80000000>;
+		numa-node-id = <0x00>;
+	};
+
+	/* tags0 */
+	tags_memory0: memory at 8f8000000 {
+		device_type = "memory";
+		reg = <0x08 0xf8000000 0x00 0x4000000>;
+		numa-node-id = <0x00>;
+	};
+
+	memory1: memory at 880000000 {
+		device_type = "memory";
+		reg = <0x08 0x80000000 0x00 0x78000000>;
+		numa-node-id = <0x01>;
+	};
+
+	/* tags1 */
+	tags_memory1: memory at 8fc00000 {
+		device_type = "memory";
+		reg = <0x08 0xfc000000 0x00 0x3c00000>;
+		numa-node-id = <0x01>;
 	};
 
 	reserved-memory {
@@ -183,6 +203,22 @@ vram: vram at 18000000 {
 			reg = <0x00000000 0x18000000 0 0x00800000>;
 			no-map;
 		};
+
+		tags0: tag-storage at 8f8000000 {
+			compatible = "arm,mte-tag-storage";
+			reg = <0x08 0xf8000000 0x00 0x4000000>;
+			block-size = <0x1000>;
+			tagged-memory = <&memory0>;
+			reusable;
+		};
+
+		tags1: tag-storage at 8fc00000 {
+			compatible = "arm,mte-tag-storage";
+			reg = <0x08 0xfc000000 0x00 0x3c00000>;
+			block-size = <0x1000>;
+			tagged-memory = <&memory1>;
+			reusable;
+		};
 	};
 
 	gic: interrupt-controller at 2f000000 {
-- 
2.43.0




More information about the linux-arm-kernel mailing list