* [PATCH v2 1/6] ARM: dts: tacoma: Fix node vs reg mismatch for flash memory
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-11-19 5:16 ` Joel Stanley
2020-10-22 1:47 ` [PATCH v2 2/6] ARM: dts: tacoma: Zero-pad flash memory region length Andrew Jeffery
` (4 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
The mismatch lead to a miscalculation of regions in another patch, and
shouldn't be mismatched anyway, so make them consistent.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 4d070d6ba09f..e86c22ce6d12 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -26,7 +26,7 @@ reserved-memory {
#size-cells = <1>;
ranges;
- flash_memory: region@ba000000 {
+ flash_memory: region@b8000000 {
no-map;
reg = <0xb8000000 0x4000000>; /* 64M */
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/6] ARM: dts: tacoma: Fix node vs reg mismatch for flash memory
2020-10-22 1:47 ` [PATCH v2 1/6] ARM: dts: tacoma: Fix node vs reg mismatch for flash memory Andrew Jeffery
@ 2020-11-19 5:16 ` Joel Stanley
0 siblings, 0 replies; 10+ messages in thread
From: Joel Stanley @ 2020-11-19 5:16 UTC (permalink / raw)
To: Andrew Jeffery
Cc: devicetree, Rob Herring, linux-aspeed, Linux ARM,
Linux Kernel Mailing List
On Thu, 22 Oct 2020 at 01:48, Andrew Jeffery <andrew@aj.id.au> wrote:
>
> The mismatch lead to a miscalculation of regions in another patch, and
> shouldn't be mismatched anyway, so make them consistent.
>
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Fixes: 575640201e66 ("ARM: dts: aspeed: tacoma: Use 64MB for firmware memory")
Reviewed-by: Joel Stanley <joel@jms.id.au>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> index 4d070d6ba09f..e86c22ce6d12 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> @@ -26,7 +26,7 @@ reserved-memory {
> #size-cells = <1>;
> ranges;
>
> - flash_memory: region@ba000000 {
> + flash_memory: region@b8000000 {
> no-map;
> reg = <0xb8000000 0x4000000>; /* 64M */
> };
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 2/6] ARM: dts: tacoma: Zero-pad flash memory region length
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 1/6] ARM: dts: tacoma: Fix node vs reg mismatch for flash memory Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 3/6] ARM: dts: rainier,tacoma: Fix size comment whitespace Andrew Jeffery
` (3 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
Makes it easier to understand the magnitude at a glance.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index e86c22ce6d12..67ab57ad4d8d 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -28,7 +28,7 @@ reserved-memory {
flash_memory: region@b8000000 {
no-map;
- reg = <0xb8000000 0x4000000>; /* 64M */
+ reg = <0xb8000000 0x04000000>; /* 64M */
};
vga_memory: region@bf000000 {
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/6] ARM: dts: rainier,tacoma: Fix size comment whitespace
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 1/6] ARM: dts: tacoma: Fix node vs reg mismatch for flash memory Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 2/6] ARM: dts: tacoma: Zero-pad flash memory region length Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 4/6] ARM: dts: rainier, tacoma: Comment reserved memory regions Andrew Jeffery
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
Rainier had multiple spaces, Tacoma used a tab. Let's go with a single
space.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 2 +-
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index 21ae880c7530..136ff156a512 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -55,7 +55,7 @@ flash_memory: region@B8000000 {
vga_memory: region@bf000000 {
no-map;
compatible = "shared-dma-pool";
- reg = <0xbf000000 0x01000000>; /* 16M */
+ reg = <0xbf000000 0x01000000>; /* 16M */
};
};
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 67ab57ad4d8d..52f5876c08cf 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -34,7 +34,7 @@ flash_memory: region@b8000000 {
vga_memory: region@bf000000 {
no-map;
compatible = "shared-dma-pool";
- reg = <0xbf000000 0x01000000>; /* 16M */
+ reg = <0xbf000000 0x01000000>; /* 16M */
};
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/6] ARM: dts: rainier, tacoma: Comment reserved memory regions
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
` (2 preceding siblings ...)
2020-10-22 1:47 ` [PATCH v2 3/6] ARM: dts: rainier,tacoma: Fix size comment whitespace Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops Andrew Jeffery
2020-10-22 1:47 ` [PATCH v2 6/6] ARM: dts: tacoma: " Andrew Jeffery
5 siblings, 0 replies; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
There are some nuances to their address and size, so lets try document
that a bit better to reveal the hole between the reserved memory for the
LPC FW cycle bridge and the reserved memory for the VGA device.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 4 ++++
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index 136ff156a512..802027a3c43c 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -47,11 +47,15 @@ reserved-memory {
#size-cells = <1>;
ranges;
+ /* LPC FW cycle bridge region requires natural alignment */
flash_memory: region@B8000000 {
no-map;
reg = <0xB8000000 0x04000000>; /* 64M */
};
+ /* 48MB region from the end of flash to start of vga memory */
+
+ /* VGA region is dictated by hardware strapping */
vga_memory: region@bf000000 {
no-map;
compatible = "shared-dma-pool";
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 52f5876c08cf..09b561429579 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -26,11 +26,15 @@ reserved-memory {
#size-cells = <1>;
ranges;
+ /* LPC FW cycle bridge region requires natural alignment */
flash_memory: region@b8000000 {
no-map;
reg = <0xb8000000 0x04000000>; /* 64M */
};
+ /* 48MB region from the end of flash to start of vga memory */
+
+ /* VGA region is dictated by hardware strapping */
vga_memory: region@bf000000 {
no-map;
compatible = "shared-dma-pool";
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
` (3 preceding siblings ...)
2020-10-22 1:47 ` [PATCH v2 4/6] ARM: dts: rainier, tacoma: Comment reserved memory regions Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-11-19 5:17 ` Joel Stanley
2020-10-22 1:47 ` [PATCH v2 6/6] ARM: dts: tacoma: " Andrew Jeffery
5 siblings, 1 reply; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
Reserve a 1.5MiB region of memory to record kmsg dumps, console and
userspace message state into 16kiB ring-buffer slots. The sizing allows
for up to 16 dumps to be captured and read out.
Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index 802027a3c43c..8431cf1b32e6 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -55,6 +55,15 @@ flash_memory: region@B8000000 {
/* 48MB region from the end of flash to start of vga memory */
+ ramoops@bc000000 {
+ compatible = "ramoops";
+ reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
+ record-size = <0x8000>;
+ console-size = <0x8000>;
+ pmsg-size = <0x8000>;
+ max-reason = <3>; /* KMSG_DUMP_EMERG */
+ };
+
/* VGA region is dictated by hardware strapping */
vga_memory: region@bf000000 {
no-map;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops
2020-10-22 1:47 ` [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops Andrew Jeffery
@ 2020-11-19 5:17 ` Joel Stanley
0 siblings, 0 replies; 10+ messages in thread
From: Joel Stanley @ 2020-11-19 5:17 UTC (permalink / raw)
To: Andrew Jeffery
Cc: devicetree, Rob Herring, linux-aspeed, Linux ARM,
Linux Kernel Mailing List
On Thu, 22 Oct 2020 at 01:48, Andrew Jeffery <andrew@aj.id.au> wrote:
>
> Reserve a 1.5MiB region of memory to record kmsg dumps, console and
> userspace message state into 16kiB ring-buffer slots. The sizing allows
> for up to 16 dumps to be captured and read out.
>
> Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots.
>
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
> ---
> arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
> index 802027a3c43c..8431cf1b32e6 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
> @@ -55,6 +55,15 @@ flash_memory: region@B8000000 {
>
> /* 48MB region from the end of flash to start of vga memory */
>
> + ramoops@bc000000 {
> + compatible = "ramoops";
> + reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
> + record-size = <0x8000>;
> + console-size = <0x8000>;
> + pmsg-size = <0x8000>;
> + max-reason = <3>; /* KMSG_DUMP_EMERG */
> + };
> +
> /* VGA region is dictated by hardware strapping */
> vga_memory: region@bf000000 {
> no-map;
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 6/6] ARM: dts: tacoma: Add reserved memory for ramoops
2020-10-22 1:47 [PATCH v2 0/6] ARM: dts: Enable ramoops for Rainier and Tacoma Andrew Jeffery
` (4 preceding siblings ...)
2020-10-22 1:47 ` [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops Andrew Jeffery
@ 2020-10-22 1:47 ` Andrew Jeffery
2020-11-19 5:18 ` Joel Stanley
5 siblings, 1 reply; 10+ messages in thread
From: Andrew Jeffery @ 2020-10-22 1:47 UTC (permalink / raw)
To: joel; +Cc: devicetree, robh+dt, linux-aspeed, linux-arm-kernel, linux-kernel
Reserve a 1.5MiB region of memory to record kmsg dumps, console and
userspace message state into 16kiB ring-buffer slots. The sizing allows
for up to 16 dumps to be captured and read out.
Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 09b561429579..04efabe70d9f 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -34,6 +34,15 @@ flash_memory: region@b8000000 {
/* 48MB region from the end of flash to start of vga memory */
+ ramoops@bc000000 {
+ compatible = "ramoops";
+ reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
+ record-size = <0x8000>;
+ console-size = <0x8000>;
+ pmsg-size = <0x8000>;
+ max-reason = <3>; /* KMSG_DUMP_EMERG */
+ };
+
/* VGA region is dictated by hardware strapping */
vga_memory: region@bf000000 {
no-map;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 6/6] ARM: dts: tacoma: Add reserved memory for ramoops
2020-10-22 1:47 ` [PATCH v2 6/6] ARM: dts: tacoma: " Andrew Jeffery
@ 2020-11-19 5:18 ` Joel Stanley
0 siblings, 0 replies; 10+ messages in thread
From: Joel Stanley @ 2020-11-19 5:18 UTC (permalink / raw)
To: Andrew Jeffery
Cc: devicetree, Rob Herring, linux-aspeed, Linux ARM,
Linux Kernel Mailing List
On Thu, 22 Oct 2020 at 01:48, Andrew Jeffery <andrew@aj.id.au> wrote:
>
> Reserve a 1.5MiB region of memory to record kmsg dumps, console and
> userspace message state into 16kiB ring-buffer slots. The sizing allows
> for up to 16 dumps to be captured and read out.
>
> Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots.
>
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> index 09b561429579..04efabe70d9f 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> @@ -34,6 +34,15 @@ flash_memory: region@b8000000 {
>
> /* 48MB region from the end of flash to start of vga memory */
>
> + ramoops@bc000000 {
> + compatible = "ramoops";
> + reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
> + record-size = <0x8000>;
> + console-size = <0x8000>;
> + pmsg-size = <0x8000>;
> + max-reason = <3>; /* KMSG_DUMP_EMERG */
> + };
> +
> /* VGA region is dictated by hardware strapping */
> vga_memory: region@bf000000 {
> no-map;
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread