diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-05-24 19:16:37 +1000 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2022-06-13 09:57:42 -0500 |
commit | 2ab647c894e8525a94c7837db2df91afacb65951 (patch) | |
tree | c497748ec7766bdf4a15a9272935d4dfd71e9911 /include | |
parent | 5133e1efc9470781fb5ccf553460ecb8b3dccbc7 (diff) | |
download | skiboot-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 'include')
-rw-r--r-- | include/skiboot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index db08f45..b0b75a4 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -103,6 +103,8 @@ enum proc_gen { }; extern enum proc_gen proc_gen; +extern bool lpar_per_core; + extern unsigned int pcie_max_link_speed; /* Convert a 4-bit number to a hex char */ |