OSDN Git Service

pnv/psi: Allow access to PSI registers through xscom
authorFrederic Barrat <fbarrat@linux.ibm.com>
Fri, 30 Jun 2023 10:26:09 +0000 (12:26 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 7 Jul 2023 07:18:26 +0000 (04:18 -0300)
commitb5ea6754e8f913c82197dc26973d7d7ee4aef91f
treeaa420490e1a082bcaba850585683f0ea321259e6
parent97c81ef4b8e203d9620fd46e7eb77004563e3675
pnv/psi: Allow access to PSI registers through xscom

skiboot only uses mmio to access the PSI registers (once the BAR is
set) but we don't have any reason to block the accesses through
xscom. This patch enables xscom access to the PSI registers. It
converts the xscom addresses to mmio addresses, which requires a bit
of care for the PSIHB, then reuse the existing mmio ops.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230630102609.193214-1-fbarrat@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/pnv_psi.c