[Skiboot] [PATCH] core: detect LPAR-per-core mode and report in dt

Reza Arbab arbab at linux.ibm.com
Thu Apr 28 04:40:39 AEST 2022


On Sat, Apr 09, 2022 at 01:51:59AM +1000, Nicholas Piggin wrote:
>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.

Works fine, tested by a quick run on a fused core machine, but the patch 
breaks `make check`:

	[ HOSTCC ]  hdata/test/hdata_to_dt.c
/usr/bin/ld: /tmp/ccAhUZmz.o: in function `add_core_common':
/build/hdata/test/../cpu-common.c:130: undefined reference to `lpar_per_core'

-- 
Reza Arbab


More information about the Skiboot mailing list