qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Jones <ajones@ventanamicro.com>
To: Alistair Francis <alistair23@gmail.com>
Cc: Gregor Haas <gregorhaas1997@gmail.com>,
	qemu-devel@nongnu.org,  qemu-riscv@nongnu.org,
	atishp@rivosinc.com, dbarboza@ventanamicro.com,
	 alistair.francis@wdc.com
Subject: Re: [PATCH v3 0/1] Add support for generating OpenSBI domains in the device tree
Date: Tue, 17 Sep 2024 14:45:08 +0200	[thread overview]
Message-ID: <20240917-2683603a6ea10148772d365e@orel> (raw)
In-Reply-To: <CAKmqyKM_qgc+wwrDRzZM1yda=dZziM=1rGU2_SDeJU9PTnacVg@mail.gmail.com>

On Mon, Sep 09, 2024 at 01:27:05PM GMT, Alistair Francis wrote:
> On Tue, Aug 6, 2024 at 7:05 AM Gregor Haas <gregorhaas1997@gmail.com> wrote:
> >
> > This patch series adds support for specifying OpenSBI domains on the QEMU
> > command line. A simple example of what this looks like is below, including
> > mapping the board's UART into the secondary domain:
> 
> Thanks for the patch, sorry it took me so long to look into this
> 
> >
> > qemu-system-riscv64 -machine virt -bios fw_jump.bin -cpu max -smp 2 -m 4G -nographic \
> >         -device opensbi-memregion,id=mem,base=0xBC000000,order=26,mmio=false \
> >         -device opensbi-memregion,id=uart,base=0x10000000,order=12,mmio=true,device0="/soc/serial@10000000" \
> >         -device opensbi-domain,id=domain,possible-harts=0-1,boot-hart=0x0,next-addr=0xBC000000,next-mode=1,region0=mem,perms0=0x3f,region1=uart,perms1=0x3f
> 
> This will need documentation added under docs (probably under
> docs/system/riscv) of how this should be used.
> 
> I'm not convinced this is something we want though. A user can dump
> the QEMU DTB and edit it to support OpenSBI domains if they want.
>

I also feel like this is just pushing the population of device tree
nodes from an editor of a .dts file to the QEMU command line. If some
generation is needed, then maybe we need a script, possibly one which
has the same command line inputs as proposed here. afaik, we haven't
typically taken patches which help overlay the generated devicetree
with additional nodes. For example, see [1] for one such proposal
and rejection.

[1] https://lore.kernel.org/all/20210926183410.256484-1-sjg@chromium.org/

Thanks,
drew


  parent reply	other threads:[~2024-09-17 12:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 21:04 [PATCH v3 0/1] Add support for generating OpenSBI domains in the device tree Gregor Haas
2024-08-05 21:04 ` [PATCH v3 1/1] " Gregor Haas
2024-08-22 20:29   ` Daniel Henrique Barboza
2024-08-22 21:48 ` [PATCH v3 0/1] " Daniel Henrique Barboza
2024-08-22 22:04   ` Gregor Haas
2024-09-09  3:27 ` Alistair Francis
2024-09-10 21:08   ` Gregor Haas
2024-09-11  3:53     ` Alistair Francis
2024-09-17 12:45   ` Andrew Jones [this message]
2024-09-19 21:16     ` Gregor Haas

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=20240917-2683603a6ea10148772d365e@orel \
    --to=ajones@ventanamicro.com \
    --cc=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=atishp@rivosinc.com \
    --cc=dbarboza@ventanamicro.com \
    --cc=gregorhaas1997@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).