On Thu, Aug 05, 2021 at 12:26:57PM -0700, Tianon Gravi wrote:
> > On 2021-07-30, Adam Borowski wrote:
> > > The Unmatched has 16GB memory -- which works fine with the vendor u-boot
> > > it shipped with.  Alas, with Debian u-boot from experimental, only 8GB is
> > > visible (at 0x0000000080000000-0x000000027fffffff).

> I think it must be related to the combination of newer
> u-boot and new (upstream) kernel?

In -next there's:
commit d09560435cb712c9ec1e62b8a43a79b0af69fe77
Author: Qiu Wenbo <qiuwe...@kylinos.com.cn>
Date:   Sun Jul 4 16:34:41 2021 +0800

    riscv: dts: fix memory size for the SiFive HiFive Unmatched

    The production version of HiFive Unmatched have 16GB memory.

    Signed-off-by: Qiu Wenbo <qiuwe...@kylinos.com.cn>
    Signed-off-by: Palmer Dabbelt <palmerdabb...@google.com>

--- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
@@ -24,7 +24,7 @@ cpus {

        memory@80000000 {
                device_type = "memory";
-               reg = <0x0 0x80000000 0x2 0x00000000>;
+               reg = <0x0 0x80000000 0x4 0x00000000>;
        };

        soc {

Applying that gives me the full memory back.

> davidlt sent the following note on IRC, which I think is related:
> 
> | <davidlt> tianon, the current DT was written for a different
> revision board (A00) pre-production
> | <davidlt> tianon, I hope to send out a new DT for 3A0 and 3B0 boards

Somehow, that kernel patch applies to -a00.dts, without distinguishing
board revisions.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ How to exploit the Bible for weight loss:
⢿⡄⠘⠷⠚⠋⠀ Pr28:25: he that putteth his trust in the ʟᴏʀᴅ shall be made fat.
⠈⠳⣄⠀⠀⠀⠀

Reply via email to