From: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
To: Sjoerd Simons <sjoerd@collabora.com>,
Samuel Holland <samuel.holland@sifive.com>,
Pinkesh Vaghela <pinkesh.vaghela@einfochips.com>,
Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Cc: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Min Lin <linmin@eswincomputing.com>,
Pritesh Patel <pritesh.patel@einfochips.com>,
Yangyu Chen <cyy@cyyself.name>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
Yu Chien Peter Lin <peterlin@andestech.com>,
Charlie Jenkins <charlie@rivosinc.com>,
Kanak Shilledar <kanakshilledar@gmail.com>,
Darshan Prajapati <darshan.prajapati@einfochips.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Aradhya Bhatia <a-bhatia1@ti.com>,
rafal@milecki.pl, Anup Patel <anup@brainfault.org>,
devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org,
"kernel@collabora.com" <kernel@collabora.com>
Subject: Re: [PATCH v3 10/10] riscv: dts: eswin: add HiFive Premier P550 board device tree
Date: Wed, 16 Apr 2025 16:50:51 -0300 [thread overview]
Message-ID: <b82ae3ed-442c-4a87-82be-a973cd333287@collabora.com> (raw)
In-Reply-To: <096a8318629dea9073ad6c4807a2f1dedc6b0cd6.camel@collabora.com>
Samuel, Sjoerd,
On 4/15/25 4:39 AM, Sjoerd Simons wrote:
> Hey,
>
> On Mon, 2025-04-14 at 11:00 -0500, Samuel Holland wrote:
>> Hi Ariel,
>>
>> On 2025-04-14 7:55 AM, Ariel D'Alessandro wrote:
>>> Hi Pinkesh,
>>>
>>> On 4/10/25 12:25 PM, Pinkesh Vaghela wrote:
>>>> From: Min Lin <linmin@eswincomputing.com>
>>>
> <snip>
>
>>> Although commit log says that this includes DRAM configuration, looks like
>>> it's
>>> missing? In order to test this patchset, had to add this following memory
>>> definition (picked from vendor kernel repository):
>>>
>>> L50: memory@80000000 {
>>> compatible = "sifive,axi4-mem-port", "sifive,axi4-port",
>>> "sifive,mem-port";
>>> device_type = "memory";
>>> reg = <0x0 0x80000000 0x7f 0x80000000>;
>>> sifive,port-width-bytes = <32>;
>>> };
>>
>> That is a misstatement in the commit message. The memory node is not included
>> in
>> the static devicetree because the amount of RAM installed on the board is
>> variable. It is the responsibility of firmware to provide the memory map,
>> either
>> through EFI or by patching the memory node into the DT at runtime. I believe
>> the
>> current BSP U-Boot does the former but not the latter.
>
> Amount of RAM being variable is pretty common on devices using FDT these days;
> Typically the dts still gets a memory node that's a reasonable default, with the
> expectation that e.g. u-boot will fix it up. If you look at other risc-v
> devicetrees in upstream they (almost?) all come with a pre-defined memory node.
> For the P550 board a default memory node for 16G ram seems reasonable (as that
> seems the minimal SKU?)
>
> That all being said. Indeed the sifive BSP u-boot doesn't seem to call the
> relevant `fdt_fixup_memory` to fixup the memory node, hence us having issues
> booting with u-boot directly (without going through EFI). Honestly this was a
> bit of a surprise to me as only most other architectures that's just done by
> common code, but that doesn't seem to be the case for risc-v (either upstream or
> downstream)
As Samuel mentioned, the latest BSP U-Boot is now patching/populating
the DT memory node at runtime, after commit [0]. And this indeed ends up
calling `fdt_fixup_memory()` as Sjoerd pointed out.
In conclusion, this is working properly with the current BSP U-Boot.
Feel free to add:
Tested-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Thanks!
[0]
https://github.com/eswincomputing/u-boot/commit/7fab50468f19efea72ff27ac08cb388fbf5be307
--
Ariel D'Alessandro
Software Engineer
Collabora Ltd.
Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK
Registered in England & Wales, no. 5513718
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-04-16 19:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 15:25 [PATCH v3 00/10] Basic device tree support for ESWIN EIC7700 RISC-V SoC Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 01/10] dt-bindings: riscv: Add SiFive P550 CPU compatible Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 02/10] riscv: Add Kconfig option for ESWIN platforms Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 03/10] dt-bindings: vendor-prefixes: add eswin Pinkesh Vaghela
2025-04-10 17:33 ` Rob Herring (Arm)
2025-04-11 8:09 ` Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 04/10] dt-bindings: riscv: Add SiFive HiFive Premier P550 board Pinkesh Vaghela
2025-04-26 14:38 ` Jisheng Zhang
2025-05-23 10:04 ` 林敏
2025-04-10 15:25 ` [PATCH v3 05/10] dt-bindings: cache: sifive,ccache0: Add ESWIN EIC7700 SoC compatibility Pinkesh Vaghela
2025-04-11 16:25 ` Conor Dooley
2025-04-10 15:25 ` [PATCH v3 06/10] cache: sifive_ccache: Add ESWIN EIC7700 support Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 07/10] dt-bindings: interrupt-controller: Add ESWIN EIC7700 PLIC Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 08/10] dt-bindings: timer: Add ESWIN EIC7700 CLINT Pinkesh Vaghela
2025-05-14 15:18 ` Daniel Lezcano
2025-04-10 15:25 ` [PATCH v3 09/10] riscv: dts: add initial support for EIC7700 SoC Pinkesh Vaghela
2025-04-10 15:25 ` [PATCH v3 10/10] riscv: dts: eswin: add HiFive Premier P550 board device tree Pinkesh Vaghela
2025-04-14 12:55 ` Ariel D'Alessandro
2025-04-14 16:00 ` Samuel Holland
2025-04-15 7:39 ` Sjoerd Simons
2025-04-16 19:50 ` Ariel D'Alessandro [this message]
2025-04-26 14:32 ` [PATCH v3 00/10] Basic device tree support for ESWIN EIC7700 RISC-V SoC Jisheng Zhang
2025-05-19 13:32 ` [External] " Pinkesh Vaghela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b82ae3ed-442c-4a87-82be-a973cd333287@collabora.com \
--to=ariel.dalessandro@collabora.com \
--cc=a-bhatia1@ti.com \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=charlie@rivosinc.com \
--cc=conor@kernel.org \
--cc=cyy@cyyself.name \
--cc=daniel.lezcano@linaro.org \
--cc=darshan.prajapati@einfochips.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=kanakshilledar@gmail.com \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linmin@eswincomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=peterlin@andestech.com \
--cc=pinkesh.vaghela@einfochips.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=pritesh.patel@einfochips.com \
--cc=rafal@milecki.pl \
--cc=robh@kernel.org \
--cc=samuel.holland@sifive.com \
--cc=sjoerd@collabora.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox