[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 2/6] ppc/pnv: change core mask for POWER9
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH 2/6] ppc/pnv: change core mask for POWER9 |
Date: |
Mon, 15 Jan 2018 19:04:02 +0100 |
When addressed by XSCOM, the first core has the 0x20 chiplet ID but
the CPU PIR can start at 0x0.
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/ppc/pnv.c | 4 ++--
tests/pnv-xscom-test.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 536162b2747c..f9591cd41d36 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -707,9 +707,9 @@ static uint32_t pnv_chip_core_pir_p9(PnvChip *chip,
uint32_t core_id)
#define POWER8_CORE_MASK (0x7e7eull)
/*
- * POWER9 has 24 cores, ids starting at 0x20
+ * POWER9 has 24 cores, ids starting at 0x0
*/
-#define POWER9_CORE_MASK (0xffffff00000000ull)
+#define POWER9_CORE_MASK (0xffffffffffffffull)
static void pnv_chip_power8e_class_init(ObjectClass *klass, void *data)
{
diff --git a/tests/pnv-xscom-test.c b/tests/pnv-xscom-test.c
index a1a119c0912c..9d545c471813 100644
--- a/tests/pnv-xscom-test.c
+++ b/tests/pnv-xscom-test.c
@@ -49,7 +49,7 @@ static const PnvChip pnv_chips[] = {
.xscom_base = 0x000603fc00000000ull,
.xscom_core_base = 0x0ull,
.cfam_id = 0x220d104900008000ull,
- .first_core = 0x20,
+ .first_core = 0x0,
},
#endif
};
--
2.13.6
- [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 1/6] ppc/pnv: use POWER9 DD2 processor, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 2/6] ppc/pnv: change core mask for POWER9,
Cédric Le Goater <=
- [Qemu-ppc] [PATCH 3/6] ppc/pnv: introduce pnv*_is_power9() helpers, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 4/6] ppc/pnv: fix XSCOM core addressing on POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 5/6] ppc/pnv: change initrd address, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 6/6] target/ppc: add support for POWER9 HILE, Cédric Le Goater, 2018/01/15
- Re: [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, David Gibson, 2018/01/16