aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-08-04 12:51:09 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-08-06 12:25:22 +0530
commit004f0a7a1a6cf99a95d56007e8d7428953751f31 (patch)
tree4c2e3dce0aed6cfb58b33dcffaad849064740d0c /hw
parentcc26e890ca556716349089f34d80706010901f9a (diff)
downloadskiboot-004f0a7a1a6cf99a95d56007e8d7428953751f31.zip
skiboot-004f0a7a1a6cf99a95d56007e8d7428953751f31.tar.gz
skiboot-004f0a7a1a6cf99a95d56007e8d7428953751f31.tar.bz2
psi/p10: Activate 64K ESB pages
Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/psi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/psi.c b/hw/psi.c
index 26677a3..991ea3b 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -753,8 +753,7 @@ static void psi_init_p10_interrupts(struct psi *psi)
{
struct proc_chip *chip;
u64 val;
- /* TODO (clg) : fix ESB page size to 64k when ready */
- uint32_t esb_shift = 12;
+ uint32_t esb_shift = 16;
/* Grab chip */
chip = get_chip(psi->chip_id);
@@ -764,10 +763,12 @@ static void psi_init_p10_interrupts(struct psi *psi)
/* Configure the CI BAR */
phys_map_get(chip->id, PSIHB_ESB, 0, &val, NULL);
val |= PSIHB_ESB_CI_VALID;
+ if (esb_shift == 16)
+ val |= PSIHB10_ESB_CI_64K;
out_be64(psi->regs + PSIHB_ESB_CI_BASE, val);
val = in_be64(psi->regs + PSIHB_ESB_CI_BASE);
- psi->esb_mmio = (void *)(val & ~PSIHB_ESB_CI_VALID);
+ psi->esb_mmio = (void *)(val & ~(PSIHB_ESB_CI_VALID|PSIHB10_ESB_CI_64K));
prlog(PR_DEBUG, "PSI[0x%03x]: ESB MMIO at @%p\n",
psi->chip_id, psi->esb_mmio);