qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christoffer Dall <christoffer.dall@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Eric Auger <eric.auger@linaro.org>
Subject: Re: [Qemu-devel] [PATCH 3/3] target-arm: Add the GICv2m to the virt board
Date: Mon, 27 Apr 2015 18:06:04 +0200	[thread overview]
Message-ID: <20150427160604.GA23335@cbox> (raw)
In-Reply-To: <CAFEAcA9GLXT60dwCRnCur7A=EUhcwXrFb_2U8VGHX87R4ng4Xg@mail.gmail.com>

On Tue, Apr 21, 2015 at 03:47:13PM +0100, Peter Maydell wrote:

[...]

> > @@ -340,9 +357,31 @@ static void fdt_add_gic_node(VirtBoardInfo *vbi)
> >                                       2, vbi->memmap[VIRT_GIC_DIST].size,
> >                                       2, vbi->memmap[VIRT_GIC_CPU].base,
> >                                       2, vbi->memmap[VIRT_GIC_CPU].size);
> > +    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#address-cells", 0x2);
> > +    qemu_fdt_setprop_cell(vbi->fdt, "/intc", "#size-cells", 0x2);
> > +    qemu_fdt_setprop(vbi->fdt, "/intc", "ranges", NULL, 0);
> >
> 
> Why do we need an empty ranges attribute?
> 

Without it, Linux fails to make things work.  I suspect this is related
to specifically setting the #address-cells and #size-cells.

I forgot by now, but I think when I originally wrote this patch I traced
through the Linux code and found out that it was required somewhere.

I also think the AMD GICv2m FDT has the empty ranges property.

-Christoffer

  parent reply	other threads:[~2015-04-27 16:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 21:20 [Qemu-devel] [PATCH 0/3] Add support for for GICv2m and MSIs to arm-virt Christoffer Dall
2015-04-08 21:20 ` [Qemu-devel] [PATCH 1/3] target-arm: Add GIC phandle to VirtBoardInfo Christoffer Dall
2015-04-21 13:56   ` Peter Maydell
2015-04-08 21:20 ` [Qemu-devel] [PATCH 2/3] arm_gicv2m: Add GICv2m widget to support MSIs Christoffer Dall
2015-04-10  9:16   ` Eric Auger
2015-04-10  9:58     ` Christoffer Dall
2015-04-10 10:34       ` Eric Auger
2015-04-10 10:39         ` Christoffer Dall
2015-04-21 14:11       ` Peter Maydell
2015-04-21 14:40   ` Peter Maydell
2015-04-27 13:41     ` Christoffer Dall
2015-04-27 13:43       ` Peter Maydell
2015-04-27 13:50         ` Christoffer Dall
2015-04-08 21:21 ` [Qemu-devel] [PATCH 3/3] target-arm: Add the GICv2m to the virt board Christoffer Dall
2015-04-21 14:47   ` Peter Maydell
2015-04-27 13:51     ` Christoffer Dall
2015-04-27 16:06     ` Christoffer Dall [this message]
2015-04-27 16:18       ` Peter Maydell
2015-04-08 21:31 ` [Qemu-devel] [PATCH 0/3] Add support for for GICv2m and MSIs to arm-virt Peter Maydell
2015-04-09  8:11   ` Christoffer Dall
2015-04-08 22:01 ` Nikolay Nikolaev
2015-04-09  8:03   ` Christoffer Dall

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=20150427160604.GA23335@cbox \
    --to=christoffer.dall@linaro.org \
    --cc=eric.auger@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@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).