All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Auer, Lukas" <lukas.auer@aisec.fraunhofer.de>
To: "palmer@sifive.com" <palmer@sifive.com>
Cc: "qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"kbastian@mail.uni-paderborn.de" <kbastian@mail.uni-paderborn.de>,
	"mjc@sifive.com" <mjc@sifive.com>,
	"Alistair.Francis@wdc.com" <Alistair.Francis@wdc.com>,
	"sagark@eecs.berkeley.edu" <sagark@eecs.berkeley.edu>
Subject: Re: [Qemu-riscv] [PATCH] hw/riscv/virt: re-add machine-specific compatible string to /soc/ node
Date: Tue, 19 Mar 2019 12:32:55 +0000	[thread overview]
Message-ID: <b188551e95989a7875454c89bd8a09ce5327007d.camel@aisec.fraunhofer.de> (raw)
In-Reply-To: <mhng-b12b115d-057e-4fe4-a5df-9387d86c2e02@palmer-si-x1c4>

On Tue, 2019-03-19 at 05:19 -0700, Palmer Dabbelt wrote:
> On Sun, 10 Feb 2019 12:17:26 PST (-0800), 
> lukas.auer@aisec.fraunhofer.de wrote:
> > Re-add the previous compatible string "riscv-virtio-soc" to the soc
> > device tree node to allow U-Boot and Linux to bind machine-specific
> > drivers to it. The current compatible string "simple-bus" is
> > retained.
> > 
> > This is required by U-Boot to bind devices early, as part of the
> > pre-relocation driver model.
> > 
> > Fixes: 53f54508dae6("hw/riscv/virtio: Set the soc device tree node
> > as a
> > simple-bus")
> > Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
> 
> I still had this at the top of my patch queue, but from looking at
> the thread 
> it appears the resolution here is to drop this in favor of generic
> support.  
> LMK if I missed something.

Yes, you are right. We are going to fix this from the U-Boot side, so
this patch can be dropped.

Thanks,
Lukas

> 
> > ---
> > 
> >  hw/riscv/virt.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
> > index 3e8b19c668..c53bb905ff 100644
> > --- a/hw/riscv/virt.c
> > +++ b/hw/riscv/virt.c
> > @@ -157,6 +157,7 @@ static void *create_fdt(RISCVVirtState *s,
> > const struct MemmapEntry *memmap,
> >      char *nodename;
> >      uint32_t plic_phandle, phandle = 1;
> >      int i;
> > +    const char soc_compat[] = "riscv-virtio-soc\0simple-bus";
> > 
> >      fdt = s->fdt = create_device_tree(&s->fdt_size);
> >      if (!fdt) {
> > @@ -171,7 +172,7 @@ static void *create_fdt(RISCVVirtState *s,
> > const struct MemmapEntry *memmap,
> > 
> >      qemu_fdt_add_subnode(fdt, "/soc");
> >      qemu_fdt_setprop(fdt, "/soc", "ranges", NULL, 0);
> > -    qemu_fdt_setprop_string(fdt, "/soc", "compatible", "simple-
> > bus");
> > +    qemu_fdt_setprop(fdt, "/soc", "compatible", soc_compat,
> > sizeof(soc_compat));
> >      qemu_fdt_setprop_cell(fdt, "/soc", "#size-cells", 0x2);
> >      qemu_fdt_setprop_cell(fdt, "/soc", "#address-cells", 0x2);

      reply	other threads:[~2019-03-19 12:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-10 20:17 [Qemu-devel] [PATCH] hw/riscv/virt: re-add machine-specific compatible string to /soc/ node Lukas Auer
2019-02-10 20:17 ` [Qemu-riscv] " Lukas Auer
2019-02-11 23:43 ` [Qemu-devel] " Alistair Francis
2019-02-11 23:43   ` [Qemu-riscv] " Alistair Francis
2019-03-10  1:07 ` Bin Meng
2019-03-10  1:07   ` [Qemu-riscv] " Bin Meng
2019-03-10 13:44   ` Auer, Lukas
2019-03-10 13:44     ` [Qemu-riscv] " Auer, Lukas
2019-03-10 14:57     ` Bin Meng
2019-03-10 14:57       ` [Qemu-riscv] " Bin Meng
2019-03-10 18:03       ` Auer, Lukas
2019-03-10 18:03         ` [Qemu-riscv] " Auer, Lukas
2019-03-11 15:28         ` Bin Meng
2019-03-11 15:28           ` [Qemu-riscv] " Bin Meng
2019-03-12 14:39           ` Auer, Lukas
2019-03-13  1:51             ` Bin Meng
2019-03-14 21:01               ` Auer, Lukas
2019-03-15  1:54                 ` Bin Meng
2019-03-17 18:57                   ` Auer, Lukas
2019-03-19 12:19 ` [Qemu-riscv] " Palmer Dabbelt
2019-03-19 12:32   ` Auer, Lukas [this message]

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=b188551e95989a7875454c89bd8a09ce5327007d.camel@aisec.fraunhofer.de \
    --to=lukas.auer@aisec.fraunhofer.de \
    --cc=Alistair.Francis@wdc.com \
    --cc=kbastian@mail.uni-paderborn.de \
    --cc=mjc@sifive.com \
    --cc=palmer@sifive.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=sagark@eecs.berkeley.edu \
    /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 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.