* [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G)
@ 2024-06-15 9:34 Frank Wunderlich
2024-06-26 21:16 ` Frank Wunderlich
2024-06-28 19:51 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Frank Wunderlich @ 2024-06-15 9:34 UTC (permalink / raw)
To: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream
Cc: Frank Wunderlich, u-boot
From: Frank Wunderlich <frank-w@public-files.de>
RAM init on mt7622 based bananapi R64 is broken since v2023.10.
Increasing the mem-map does not help here, so i reduced the maximum
available ram in get_ram_size call from 2G to 1G (board has only 1G).
Fixes: 5fd6d4c7b3ad ("arm: mediatek: retrieve ram_base from dts node for armv8 platform")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
arch/arm/mach-mediatek/mt7622/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mt7622/init.c b/arch/arm/mach-mediatek/mt7622/init.c
index 00d3eb9ce7a4..1f32ff947dcd 100644
--- a/arch/arm/mach-mediatek/mt7622/init.c
+++ b/arch/arm/mach-mediatek/mt7622/init.c
@@ -28,7 +28,7 @@ int dram_init(void)
if (ret)
return ret;
- gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_2G);
+ gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_1G);
return 0;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G)
2024-06-15 9:34 [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G) Frank Wunderlich
@ 2024-06-26 21:16 ` Frank Wunderlich
2024-06-28 19:51 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Frank Wunderlich @ 2024-06-26 21:16 UTC (permalink / raw)
To: Frank Wunderlich, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream
Cc: u-boot
Am 15. Juni 2024 11:34:56 MESZ schrieb Frank Wunderlich <linux@fw-web.de>:
>From: Frank Wunderlich <frank-w@public-files.de>
>
>RAM init on mt7622 based bananapi R64 is broken since v2023.10.
>
>Increasing the mem-map does not help here, so i reduced the maximum
>available ram in get_ram_size call from 2G to 1G (board has only 1G).
>
>Fixes: 5fd6d4c7b3ad ("arm: mediatek: retrieve ram_base from dts node for armv8 platform")
>Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
>---
> arch/arm/mach-mediatek/mt7622/init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/arch/arm/mach-mediatek/mt7622/init.c b/arch/arm/mach-mediatek/mt7622/init.c
>index 00d3eb9ce7a4..1f32ff947dcd 100644
>--- a/arch/arm/mach-mediatek/mt7622/init.c
>+++ b/arch/arm/mach-mediatek/mt7622/init.c
>@@ -28,7 +28,7 @@ int dram_init(void)
> if (ret)
> return ret;
>
>- gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_2G);
>+ gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_1G);
>
> return 0;
> }
Hi Tom,
Can you pick this fix for 2024.7?
regards Frank
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G)
2024-06-15 9:34 [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G) Frank Wunderlich
2024-06-26 21:16 ` Frank Wunderlich
@ 2024-06-28 19:51 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2024-06-28 19:51 UTC (permalink / raw)
To: Ryder Lee, Weijie Gao, Chunfeng Yun, GSS_MTK_Uboot_upstream,
Frank Wunderlich
Cc: Frank Wunderlich, u-boot
On Sat, 15 Jun 2024 11:34:56 +0200, Frank Wunderlich wrote:
> RAM init on mt7622 based bananapi R64 is broken since v2023.10.
>
> Increasing the mem-map does not help here, so i reduced the maximum
> available ram in get_ram_size call from 2G to 1G (board has only 1G).
>
>
Applied to u-boot/master, thanks!
--
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-28 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-15 9:34 [PATCH] arm: mediatek: fix ram init for mt7622 (decrease to 1G) Frank Wunderlich
2024-06-26 21:16 ` Frank Wunderlich
2024-06-28 19:51 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.