lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240125164256.4147-36-alexandru.elisei@arm.com>
Date: Thu, 25 Jan 2024 16:42:56 +0000
From: Alexandru Elisei <alexandru.elisei@....com>
To: catalin.marinas@....com,
	will@...nel.org,
	oliver.upton@...ux.dev,
	maz@...nel.org,
	james.morse@....com,
	suzuki.poulose@....com,
	yuzenghui@...wei.com,
	arnd@...db.de,
	akpm@...ux-foundation.org,
	mingo@...hat.com,
	peterz@...radead.org,
	juri.lelli@...hat.com,
	vincent.guittot@...aro.org,
	dietmar.eggemann@....com,
	rostedt@...dmis.org,
	bsegall@...gle.com,
	mgorman@...e.de,
	bristot@...hat.com,
	vschneid@...hat.com,
	mhiramat@...nel.org,
	rppt@...nel.org,
	hughd@...gle.com
Cc: pcc@...gle.com,
	steven.price@....com,
	anshuman.khandual@....com,
	vincenzo.frascino@....com,
	david@...hat.com,
	eugenis@...gle.com,
	kcc@...gle.com,
	hyesoo.yu@...sung.com,
	linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	kvmarm@...ts.linux.dev,
	linux-fsdevel@...r.kernel.org,
	linux-arch@...r.kernel.org,
	linux-mm@...ck.org,
	linux-trace-kernel@...r.kernel.org
Subject: [PATCH RFC v3 35/35] HACK! arm64: dts: Add fake tag storage to fvp-base-revc.dts

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

Signed-off-by: Alexandru Elisei <alexandru.elisei@....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@...00000 {
+	memory0: memory@...00000 {
 		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@...000000 {
+		device_type = "memory";
+		reg = <0x08 0xf8000000 0x00 0x4000000>;
+		numa-node-id = <0x00>;
+	};
+
+	memory1: memory@...000000 {
+		device_type = "memory";
+		reg = <0x08 0x80000000 0x00 0x78000000>;
+		numa-node-id = <0x01>;
+	};
+
+	/* tags1 */
+	tags_memory1: memory@...00000 {
+		device_type = "memory";
+		reg = <0x08 0xfc000000 0x00 0x3c00000>;
+		numa-node-id = <0x01>;
 	};
 
 	reserved-memory {
@@ -183,6 +203,22 @@ vram: vram@...00000 {
 			reg = <0x00000000 0x18000000 0 0x00800000>;
 			no-map;
 		};
+
+		tags0: tag-storage@...000000 {
+			compatible = "arm,mte-tag-storage";
+			reg = <0x08 0xf8000000 0x00 0x4000000>;
+			block-size = <0x1000>;
+			tagged-memory = <&memory0>;
+			reusable;
+		};
+
+		tags1: tag-storage@...00000 {
+			compatible = "arm,mte-tag-storage";
+			reg = <0x08 0xfc000000 0x00 0x3c00000>;
+			block-size = <0x1000>;
+			tagged-memory = <&memory1>;
+			reusable;
+		};
 	};
 
 	gic: interrupt-controller@...00000 {
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ