aboutsummaryrefslogtreecommitdiff
path: root/hdata/test
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-05-24 19:16:37 +1000
committerReza Arbab <arbab@linux.ibm.com>2022-06-13 09:57:42 -0500
commit2ab647c894e8525a94c7837db2df91afacb65951 (patch)
treec497748ec7766bdf4a15a9272935d4dfd71e9911 /hdata/test
parent5133e1efc9470781fb5ccf553460ecb8b3dccbc7 (diff)
downloadskiboot-2ab647c894e8525a94c7837db2df91afacb65951.zip
skiboot-2ab647c894e8525a94c7837db2df91afacb65951.tar.gz
skiboot-2ab647c894e8525a94c7837db2df91afacb65951.tar.bz2
core: detect LPAR-per-core mode and report in dt
Some firmware configurations boot in LPAR-per-core mode, which is not compatible with KVM on POWER9 and later machines. Detect which LPAR mode the boot core is in (all others will be set the same way), and if booted in LPAR-per-core mode then print a warning and add a device-tree entry that the OS can test for. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'hdata/test')
-rw-r--r--hdata/test/hdata_to_dt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index 1729f1c..ead6e3c 100644
--- a/hdata/test/hdata_to_dt.c
+++ b/hdata/test/hdata_to_dt.c
@@ -104,6 +104,8 @@ static unsigned long fake_pvr = PVR_P8;
unsigned int cpu_thread_count = 8;
+bool lpar_per_core;
+
static inline unsigned long mfspr(unsigned int spr)
{
assert(spr == SPR_PVR);