* [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs
@ 2025-06-19 7:06 Mihai Sain
2025-06-19 7:06 ` [PATCH v3 1/2] ARM: dts: microchip: sama7d65: Add cache configuration for cpu node Mihai Sain
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mihai Sain @ 2025-06-19 7:06 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
conor+dt, linux-arm-kernel, devicetree, linux-kernel
Cc: Mihai Sain
This patch series adds cache configuration for Microchip SAMA7D and SAMA7G MPUs.
The cache configuration is described in datasheet chapter 15.2.
Changelog:
v2 -> v3:
- Remove the l1-cache node
- Move the L1 cache properties in the cpu node
- Align with device node requirements for cpu:
https://devicetree-specification.readthedocs.io/en/latest/chapter3-devicenodes.html#internal-l1-cache-properties
v1 -> v2:
- Remove the cache-unified property from l1-cache node
Mihai Sain (2):
ARM: dts: microchip: sama7d65: Add cache configuration for cpu node
ARM: dts: microchip: sama7g5: Add cache configuration for cpu node
arch/arm/boot/dts/microchip/sama7d65.dtsi | 10 ++++++++++
arch/arm/boot/dts/microchip/sama7g5.dtsi | 10 ++++++++++
2 files changed, 20 insertions(+)
base-commit: fb4d33ab452ea254e2c319bac5703d1b56d895bf
--
2.50.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/2] ARM: dts: microchip: sama7d65: Add cache configuration for cpu node
2025-06-19 7:06 [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Mihai Sain
@ 2025-06-19 7:06 ` Mihai Sain
2025-06-19 7:06 ` [PATCH v3 2/2] ARM: dts: microchip: sama7g5: " Mihai Sain
2025-07-10 7:34 ` [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Claudiu Beznea
2 siblings, 0 replies; 4+ messages in thread
From: Mihai Sain @ 2025-06-19 7:06 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
conor+dt, linux-arm-kernel, devicetree, linux-kernel
Cc: Mihai Sain
Describe the cache memories according with datasheet chapter 15.2:
- L1 cache configuration with 32KB for both data and instruction cache.
- L2 cache configuration with 256KB unified cache.
Before this patch the kernel reported the warning:
[ 0.161955] cacheinfo: Unable to detect cache hierarchy for CPU 0
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
arch/arm/boot/dts/microchip/sama7d65.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/microchip/sama7d65.dtsi b/arch/arm/boot/dts/microchip/sama7d65.dtsi
index d08d773b1cc5..f123faaa2ef7 100644
--- a/arch/arm/boot/dts/microchip/sama7d65.dtsi
+++ b/arch/arm/boot/dts/microchip/sama7d65.dtsi
@@ -32,6 +32,16 @@ cpu0: cpu@0 {
device_type = "cpu";
clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
clock-names = "cpu";
+ d-cache-size = <0x8000>; // L1, 32 KB
+ i-cache-size = <0x8000>; // L1, 32 KB
+ next-level-cache = <&L2>;
+
+ L2: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <0x40000>; // L2, 256 KB
+ cache-unified;
+ };
};
};
--
2.50.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 2/2] ARM: dts: microchip: sama7g5: Add cache configuration for cpu node
2025-06-19 7:06 [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Mihai Sain
2025-06-19 7:06 ` [PATCH v3 1/2] ARM: dts: microchip: sama7d65: Add cache configuration for cpu node Mihai Sain
@ 2025-06-19 7:06 ` Mihai Sain
2025-07-10 7:34 ` [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Claudiu Beznea
2 siblings, 0 replies; 4+ messages in thread
From: Mihai Sain @ 2025-06-19 7:06 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
conor+dt, linux-arm-kernel, devicetree, linux-kernel
Cc: Mihai Sain
Describe the cache memories according with datasheet chapter 15.2:
- L1 cache configuration with 32KB for both data and instruction cache.
- L2 cache configuration with 256KB unified cache.
Before this patch the kernel reported the warning:
[ 0.171425] cacheinfo: Unable to detect cache hierarchy for CPU 0
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
arch/arm/boot/dts/microchip/sama7g5.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/microchip/sama7g5.dtsi b/arch/arm/boot/dts/microchip/sama7g5.dtsi
index 17bcdcf0cf4a..f28bcf6daf4e 100644
--- a/arch/arm/boot/dts/microchip/sama7g5.dtsi
+++ b/arch/arm/boot/dts/microchip/sama7g5.dtsi
@@ -38,6 +38,16 @@ cpu0: cpu@0 {
clock-names = "cpu";
operating-points-v2 = <&cpu_opp_table>;
#cooling-cells = <2>; /* min followed by max */
+ d-cache-size = <0x8000>; // L1, 32 KB
+ i-cache-size = <0x8000>; // L1, 32 KB
+ next-level-cache = <&L2>;
+
+ L2: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <0x40000>; // L2, 256 KB
+ cache-unified;
+ };
};
};
--
2.50.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs
2025-06-19 7:06 [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Mihai Sain
2025-06-19 7:06 ` [PATCH v3 1/2] ARM: dts: microchip: sama7d65: Add cache configuration for cpu node Mihai Sain
2025-06-19 7:06 ` [PATCH v3 2/2] ARM: dts: microchip: sama7g5: " Mihai Sain
@ 2025-07-10 7:34 ` Claudiu Beznea
2 siblings, 0 replies; 4+ messages in thread
From: Claudiu Beznea @ 2025-07-10 7:34 UTC (permalink / raw)
To: Mihai Sain, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
conor+dt, linux-arm-kernel, devicetree, linux-kernel
On 19.06.2025 10:06, Mihai Sain wrote:
> Mihai Sain (2):
> ARM: dts: microchip: sama7d65: Add cache configuration for cpu node
> ARM: dts: microchip: sama7g5: Add cache configuration for cpu node
Applied to at91-dt, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-10 7:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 7:06 [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Mihai Sain
2025-06-19 7:06 ` [PATCH v3 1/2] ARM: dts: microchip: sama7d65: Add cache configuration for cpu node Mihai Sain
2025-06-19 7:06 ` [PATCH v3 2/2] ARM: dts: microchip: sama7g5: " Mihai Sain
2025-07-10 7:34 ` [PATCH v3 0/2] Add cache configuration for Microchip SAMA7D and SAMA7G MPUs Claudiu Beznea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).