OSDN Git Service

ppc/xive: Handle END triggers between chips with MMIOs
authorCédric Le Goater <clg@kaod.org>
Tue, 29 Aug 2023 14:32:35 +0000 (16:32 +0200)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (11:19 +0200)
commitf2c1e591fa3adb964337daa85be1f86cd7a20a0a
tree33e489c2f0073b378d2699474e1baf2349d799c5
parent56e08e77dee92269e80727ff4692fb1931d3dab1
ppc/xive: Handle END triggers between chips with MMIOs

The notify page of the interrupt controller can either be used to
receive trigger events from the HW controllers (PHB, PSI) or to
reroute interrupts between Interrupt Controllers. In which case, the
VSD table is used to determine the address of the notify page of the
remote IC and the store data is forwarded.

Today, our model grabs the remote VSD (EAS, END, NVT) address using
pnv_xive_get_remote() helper. Be more precise and implement remote END
triggers using a store on the remote IC notify page.

We still have a shortcut in the model for the NVT accesses which we
will address later.

Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/intc/pnv_xive.c
hw/intc/pnv_xive_regs.h