[Skiboot] [PATCH] plat/qemu: use the common OpenPOWER routines to initialize

Stewart Smith stewart at linux.vnet.ibm.com
Tue Dec 11 17:27:39 AEDT 2018

Joel Stanley <joel at jms.id.au> writes:
> On Mon, 3 Dec 2018 at 23:08, Cédric Le Goater <clg at kaod.org> wrote:
>> Back in 2016, we did not have a large support of the PowerNV devices
>> under QEMU and we were using our own custom ones. This has changed and
>> we can now use all the common init routines of the OpenPOWER
>> platforms.
>> Signed-off-by: Cédric Le Goater <clg at kaod.org>
> Reviewed-by: Joel Stanley <joel at jms.id.au>
> This fixes the bt device when running with a power9 powernv machine
> type, which in turn fixes shutting down the guest.
> qemu-system-ppc64 -M powernv -m 3G -device ipmi-bmc-sim,id=bmc0
> -device isa-ipmi-bt,bmc=bmc0,irq=10 \
>  -nographic -kernel arch/powerpc/boot/zImage.epapr  ~/rootfs.cpio.xz
> -L /scratch/joel/skiboot -cpu power9
> I gave this a spin on Qemu 2.12 (which ships with Ubuntu and Debian)
> and it successfully loads a kernel on a p8 powernv machine. Given that
> is the oldest version that is practical for skiboot powernv testing,
> we can safely apply this to skiboot and not regress.
> I suggest we merge this one to master and the stable tree.

I've pulled it into master as of
8340a9642bba297a481d3d07ee06d84bff3f9aa8 even though we see some test
failures with it. The failures seem to be "op-test could do better"
rather than anything else, so I'll submit patches there.

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list