From: "Cédric Le Goater" <clg@kaod.org>
To: Frederic Barrat <fbarrat@linux.ibm.com>,
Daniel Henrique Barboza <danielhb413@gmail.com>,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v2 2/2] pnv/psi: Initialize the PSIHB interrupts to match hardware
Date: Mon, 3 Jul 2023 10:24:07 +0200 [thread overview]
Message-ID: <25c6a049-040d-a63c-1f9d-484b92aed83c@kaod.org> (raw)
In-Reply-To: <20230703081215.55252-3-fbarrat@linux.ibm.com>
On 7/3/23 10:12, Frederic Barrat wrote:
> On the powernv9 and powernv10 machines, the PSIHB interrupts are
> currently initialized with a PQ state of 0b01, i.e. interrupts are
> disabled. However real hardware initializes them to 0b00 for the
> PSIHB. This patch updates it, in case an hypervisor is in the mood of
> checking it.
>
> Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Thanks,
C.
> ---
> hw/ppc/pnv_psi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c
> index 46da58dff8..daaa2f0575 100644
> --- a/hw/ppc/pnv_psi.c
> +++ b/hw/ppc/pnv_psi.c
> @@ -863,6 +863,8 @@ static void pnv_psi_power9_realize(DeviceState *dev, Error **errp)
> object_property_set_int(OBJECT(xsrc), "nr-irqs", PSIHB9_NUM_IRQS,
> &error_fatal);
> object_property_set_link(OBJECT(xsrc), "xive", OBJECT(psi), &error_abort);
> + object_property_set_int(OBJECT(xsrc), "reset-pq", XIVE_ESB_RESET,
> + &error_abort);
> if (!qdev_realize(DEVICE(xsrc), NULL, errp)) {
> return;
> }
next prev parent reply other threads:[~2023-07-03 8:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 8:12 [PATCH v2 0/2] Fix PSIHB interrupts init PQ state Frederic Barrat
2023-07-03 8:12 ` [PATCH v2 1/2] pnv/xive: Add property on xive sources to define PQ state on reset Frederic Barrat
2023-07-03 8:23 ` Cédric Le Goater
2023-07-03 8:12 ` [PATCH v2 2/2] pnv/psi: Initialize the PSIHB interrupts to match hardware Frederic Barrat
2023-07-03 8:24 ` Cédric Le Goater [this message]
2023-07-03 9:50 ` [PATCH v2 0/2] Fix PSIHB interrupts init PQ state Philippe Mathieu-Daudé
2023-07-03 13:50 ` Daniel Henrique Barboza
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=25c6a049-040d-a63c-1f9d-484b92aed83c@kaod.org \
--to=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=fbarrat@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).