U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64
@ 2023-03-13 13:54 Janne Grunau
  2023-03-13 14:31 ` Mark Kettenis
  2023-03-30  1:54 ` Tom Rini
  0 siblings, 2 replies; 5+ messages in thread
From: Janne Grunau @ 2023-03-13 13:54 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: u-boot, Janne Grunau

Apple silicon SoCs have numerous embedded co-processors with pre-loaded
firmware. The co-processors text and data sections need to be mapped via
DART iommus controlled by the main processor. Those sections are
exported as reserved-memory. Bump CONFIG_LMB_MAX_REGIONS from 8 to 64 to
deal with the large amount of reserved-memory regions.

Signed-off-by: Janne Grunau <j@jannau.net>
---
 configs/apple_m1_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/apple_m1_defconfig b/configs/apple_m1_defconfig
index b4ecf73cbc78..755560971e57 100644
--- a/configs/apple_m1_defconfig
+++ b/configs/apple_m1_defconfig
@@ -21,3 +21,4 @@ CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_NO_FB_CLEAR=y
 CONFIG_VIDEO_SIMPLE=y
 # CONFIG_GENERATE_SMBIOS_TABLE is not set
+CONFIG_LMB_MAX_REGIONS=64

---
base-commit: 6c1cdf158c4f3ccc8c5f9552f049a3386899dcd2
change-id: 20230313-apple_m1_defconfig_lmb_max_regions-a18f5612d3c3

Best regards,
-- 
Janne Grunau <j@jannau.net>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64
  2023-03-13 13:54 [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64 Janne Grunau
@ 2023-03-13 14:31 ` Mark Kettenis
  2023-03-17 16:43   ` Tom Rini
  2023-03-30  1:54 ` Tom Rini
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Kettenis @ 2023-03-13 14:31 UTC (permalink / raw)
  To: Janne Grunau; +Cc: u-boot, j

> From: Janne Grunau <j@jannau.net>
> Date: Mon, 13 Mar 2023 14:54:32 +0100
> 
> Apple silicon SoCs have numerous embedded co-processors with pre-loaded
> firmware. The co-processors text and data sections need to be mapped via
> DART iommus controlled by the main processor. Those sections are
> exported as reserved-memory. Bump CONFIG_LMB_MAX_REGIONS from 8 to 64 to
> deal with the large amount of reserved-memory regions.

We recently bumped the default for CONFIG_LMB_MAX_REGIONS from 8 to
16, but 64 would be a safer value for this platform as there are more
co-processor drivers in the pipeline that may add reserved-memory
regions.  These machines have plenty of memory.

> Signed-off-by: Janne Grunau <j@jannau.net>

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

> ---
>  configs/apple_m1_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/apple_m1_defconfig b/configs/apple_m1_defconfig
> index b4ecf73cbc78..755560971e57 100644
> --- a/configs/apple_m1_defconfig
> +++ b/configs/apple_m1_defconfig
> @@ -21,3 +21,4 @@ CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_NO_FB_CLEAR=y
>  CONFIG_VIDEO_SIMPLE=y
>  # CONFIG_GENERATE_SMBIOS_TABLE is not set
> +CONFIG_LMB_MAX_REGIONS=64
> 
> ---
> base-commit: 6c1cdf158c4f3ccc8c5f9552f049a3386899dcd2
> change-id: 20230313-apple_m1_defconfig_lmb_max_regions-a18f5612d3c3
> 
> Best regards,
> -- 
> Janne Grunau <j@jannau.net>
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64
  2023-03-13 14:31 ` Mark Kettenis
@ 2023-03-17 16:43   ` Tom Rini
  2023-03-17 18:16     ` Mark Kettenis
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2023-03-17 16:43 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: Janne Grunau, u-boot

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

On Mon, Mar 13, 2023 at 03:31:32PM +0100, Mark Kettenis wrote:
> > From: Janne Grunau <j@jannau.net>
> > Date: Mon, 13 Mar 2023 14:54:32 +0100
> > 
> > Apple silicon SoCs have numerous embedded co-processors with pre-loaded
> > firmware. The co-processors text and data sections need to be mapped via
> > DART iommus controlled by the main processor. Those sections are
> > exported as reserved-memory. Bump CONFIG_LMB_MAX_REGIONS from 8 to 64 to
> > deal with the large amount of reserved-memory regions.
> 
> We recently bumped the default for CONFIG_LMB_MAX_REGIONS from 8 to
> 16, but 64 would be a safer value for this platform as there are more
> co-processor drivers in the pipeline that may add reserved-memory
> regions.  These machines have plenty of memory.
> 
> > Signed-off-by: Janne Grunau <j@jannau.net>
> 
> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

Does this mean it's a fix we need for v2023.04, or v2023.07 is OK?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64
  2023-03-17 16:43   ` Tom Rini
@ 2023-03-17 18:16     ` Mark Kettenis
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Kettenis @ 2023-03-17 18:16 UTC (permalink / raw)
  To: Tom Rini; +Cc: j, u-boot

> Date: Fri, 17 Mar 2023 12:43:16 -0400
> From: Tom Rini <trini@konsulko.com>
> 
> On Mon, Mar 13, 2023 at 03:31:32PM +0100, Mark Kettenis wrote:
> > > From: Janne Grunau <j@jannau.net>
> > > Date: Mon, 13 Mar 2023 14:54:32 +0100
> > > 
> > > Apple silicon SoCs have numerous embedded co-processors with pre-loaded
> > > firmware. The co-processors text and data sections need to be mapped via
> > > DART iommus controlled by the main processor. Those sections are
> > > exported as reserved-memory. Bump CONFIG_LMB_MAX_REGIONS from 8 to 64 to
> > > deal with the large amount of reserved-memory regions.
> > 
> > We recently bumped the default for CONFIG_LMB_MAX_REGIONS from 8 to
> > 16, but 64 would be a safer value for this platform as there are more
> > co-processor drivers in the pipeline that may add reserved-memory
> > regions.  These machines have plenty of memory.
> > 
> > > Signed-off-by: Janne Grunau <j@jannau.net>
> > 
> > Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
> 
> Does this mean it's a fix we need for v2023.04, or v2023.07 is OK?

2023.07 is ok

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64
  2023-03-13 13:54 [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64 Janne Grunau
  2023-03-13 14:31 ` Mark Kettenis
@ 2023-03-30  1:54 ` Tom Rini
  1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2023-03-30  1:54 UTC (permalink / raw)
  To: Janne Grunau; +Cc: Mark Kettenis, u-boot

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

On Mon, Mar 13, 2023 at 02:54:32PM +0100, Janne Grunau wrote:

> Apple silicon SoCs have numerous embedded co-processors with pre-loaded
> firmware. The co-processors text and data sections need to be mapped via
> DART iommus controlled by the main processor. Those sections are
> exported as reserved-memory. Bump CONFIG_LMB_MAX_REGIONS from 8 to 64 to
> deal with the large amount of reserved-memory regions.
> 
> Signed-off-by: Janne Grunau <j@jannau.net>
> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-30  1:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13 13:54 [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64 Janne Grunau
2023-03-13 14:31 ` Mark Kettenis
2023-03-17 16:43   ` Tom Rini
2023-03-17 18:16     ` Mark Kettenis
2023-03-30  1:54 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox