Skip to content

Commit

Permalink
pnv/psi: Initialize the PSIHB interrupts to match hardware
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230703081215.55252-3-fbarrat@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
  • Loading branch information
fbarrat authored and danielhb committed Jul 7, 2023
1 parent a8da2e1 commit 4a1e944
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/ppc/pnv_psi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4a1e944

Please sign in to comment.