From: Peter Maydell <peter.maydell@linaro.org>
To: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Cc: "Alistair Francis" <alistair@alistair23.me>,
"QEMU Developers" <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
"Anthony Liguori" <anthony@codemonkey.ws>,
"Edgar E . Iglesias" <edgar.iglesias@gmail.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [PATCH v2 2/3] cpu/a9mpcore: Set number of GIC priority bits to 5
Date: Fri, 21 Feb 2020 15:30:35 +0000 [thread overview]
Message-ID: <CAFEAcA9HuShAc_8=8HtAeTpw=OQTR-a0av=8RaXrtgOAv0c8Dw@mail.gmail.com> (raw)
In-Reply-To: <1582270927-2568-3-git-send-email-sai.pavan.boddu@xilinx.com>
On Fri, 21 Feb 2020 at 07:46, Sai Pavan Boddu
<sai.pavan.boddu@xilinx.com> wrote:
>
> All A9 CPUs have a GIC with 5 bits of priority.
>
> Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> hw/cpu/a9mpcore.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c
> index 1f8bc8a..b4f6a7e 100644
> --- a/hw/cpu/a9mpcore.c
> +++ b/hw/cpu/a9mpcore.c
> @@ -16,6 +16,8 @@
> #include "hw/qdev-properties.h"
> #include "hw/core/cpu.h"
>
> +#define A9_GIC_NUM_PRIORITY_BITS 5
> +
> static void a9mp_priv_set_irq(void *opaque, int irq, int level)
> {
> A9MPPrivState *s = (A9MPPrivState *)opaque;
> @@ -68,6 +70,8 @@ static void a9mp_priv_realize(DeviceState *dev, Error **errp)
> gicdev = DEVICE(&s->gic);
> qdev_prop_set_uint32(gicdev, "num-cpu", s->num_cpu);
> qdev_prop_set_uint32(gicdev, "num-irq", s->num_irq);
> + qdev_prop_set_uint32(gicdev, "num-priority-bits",
> + A9_GIC_NUM_PRIORITY_BITS);
>
> /* Make the GIC's TZ support match the CPUs. We assume that
> * either all the CPUs have TZ, or none do.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
next prev parent reply other threads:[~2020-02-21 15:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1582270927-2568-1-git-send-email-sai.pavan.boddu@xilinx.com>
2020-02-21 7:42 ` [PATCH v2 1/3] arm_gic: Mask the un-supported priority bits Sai Pavan Boddu
2020-02-21 15:30 ` Peter Maydell
2020-02-24 9:36 ` Sai Pavan Boddu
2020-02-21 7:42 ` [PATCH v2 2/3] cpu/a9mpcore: Set number of GIC priority bits to 5 Sai Pavan Boddu
2020-02-21 15:30 ` Peter Maydell [this message]
2020-02-21 7:42 ` [PATCH v2 3/3] cpu/arm11mpcore: Set number of GIC priority bits to 4 Sai Pavan Boddu
2020-02-21 15:30 ` Peter Maydell
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='CAFEAcA9HuShAc_8=8HtAeTpw=OQTR-a0av=8RaXrtgOAv0c8Dw@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=afaerber@suse.de \
--cc=alistair@alistair23.me \
--cc=anthony@codemonkey.ws \
--cc=edgar.iglesias@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sai.pavan.boddu@xilinx.com \
/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).