From: Alistair Francis <alistair.francis@xilinx.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Alistair Francis <alistair.francis@xilinx.com>,
Peter Crosthwaite <crosthwaitepeter@gmail.com>,
qemu-arm <qemu-arm@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 2/6] cadence_gem: Add the num-priority-queues property
Date: Tue, 26 Jul 2016 09:10:33 -0700 [thread overview]
Message-ID: <CAKmqyKOGuvjLzv0fmfg8W8_VKigEoALf68b=UQkSSDcgmUX61g@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA_1-_+LmbMmZH3F7idZxfTerveUh8bQFHsUivMVP+ggqw@mail.gmail.com>
On Tue, Jul 26, 2016 at 4:47 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 26 July 2016 at 01:12, Alistair Francis <alistair.francis@xilinx.com> wrote:
>> The Cadence GEM hardware supports N number priority queues, this patch is a
>> step towards that by adding the property to set the queues. At the moment
>> behaviour doesn't change as we only use queue 0.
>>
>> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
>> ---
>
>> @@ -1218,7 +1220,7 @@ static void gem_realize(DeviceState *dev, Error **errp)
>> {
>> CadenceGEMState *s = CADENCE_GEM(dev);
>>
>> - sysbus_init_irq(SYS_BUS_DEVICE(dev), &s->irq);
>> + sysbus_init_irq(SYS_BUS_DEVICE(dev), &s->irq[0]);
>>
>> qemu_macaddr_default_if_unset(&s->conf.macaddr);
>
> At some point realize() needs to error-check the num-priority-queues
> property (ie check it isn't >8). Do you do that later in the series?
> (if so fine, if not, this patch is as good a place as any to put it.)
I'll add it in here.
>
>> @@ -1243,13 +1245,15 @@ static void gem_init(Object *obj)
>> static const VMStateDescription vmstate_cadence_gem = {
>> .name = "cadence_gem",
>> .version_id = 2,
>> - .minimum_version_id = 2,
>> + .minimum_version_id = 3,
>
> You need to bump .version_id too.
Yep, I misread it and thought it was a a.b version format. I'll fix up
the other one as well.
>
> Otherwise
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Thanks!
Alistair
>
> thanks
> -- PMM
>
next prev parent reply other threads:[~2016-07-26 16:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 0:12 [Qemu-devel] [PATCH v2 0/6] Add support for Cadence GEM priority queues Alistair Francis
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 1/6] cadence_gem: QOMify Cadence GEM Alistair Francis
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 2/6] cadence_gem: Add the num-priority-queues property Alistair Francis
2016-07-26 11:47 ` Peter Maydell
2016-07-26 16:10 ` Alistair Francis [this message]
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 3/6] cadence_gem: Add support for screening Alistair Francis
2016-07-26 12:01 ` Peter Maydell
2016-07-26 16:42 ` Alistair Francis
2016-07-26 16:55 ` Peter Maydell
2016-07-26 17:33 ` Alistair Francis
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 4/6] cadence_gem: Add queue support Alistair Francis
2016-07-26 12:06 ` Peter Maydell
2016-07-26 16:22 ` Alistair Francis
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 5/6] cadence_gem: Correct indentation Alistair Francis
2016-07-26 0:12 ` [Qemu-devel] [PATCH v2 6/6] xlnx-zynqmp: Set the number of priority queues Alistair Francis
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='CAKmqyKOGuvjLzv0fmfg8W8_VKigEoALf68b=UQkSSDcgmUX61g@mail.gmail.com' \
--to=alistair.francis@xilinx.com \
--cc=crosthwaitepeter@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.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).