[Skiboot] [PATCH] plat/qemu: add BT and IPMI support
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Aug 26 18:37:26 AEST 2016
Cédric Le Goater <clg at kaod.org> writes:
> This brings the qemu platform to the level of an Open Power platform.
> It adds the BT device used to communicate with the BMC using IPMI
> messaging, power_downs and reboots the way OpenPower systems operate.
>
> The device tree is also checked for UART and RTC device nodes and
> updated if qemu has not defined them already. The initialization of
> the BT and IPMI interfaces depends on the availability of the BT
> device which needs to be explicitly defined by qemu. These tests
> enable skiboot to maintain compatibility with previous versions of
> qemu which did not update the device tree with enabled devices.
>
> Signed-off-by: Cédric Le Goater <clg at kaod.org>
> ---
>
> The only significant difference now with the ast platform is on the
> RTC device which lives under the LPC bus on qemu.
>
> Tested with the latest qemu powernv+ipmi patchset :
>
> https://github.com/legoater/qemu/tree/powernv-ipmi-2.7
>
> which is now based on a v2.7.0-rc1.
>
> Also tested with Ben's qemu for compatibility.
Merged as of dc60d645d384a51de7085518dbb4e895a5f8c3a7.
Also merged is a bump to what qemu tree CI uses to test against, which I
did with this patch:
diff --git a/opal-ci/build-qemu-powernv.sh b/opal-ci/build-qemu-powernv.sh
index 5d2536e..3b03853 100755
--- a/opal-ci/build-qemu-powernv.sh
+++ b/opal-ci/build-qemu-powernv.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-git clone --depth=1 -b qemu-powernv-for-skiboot-2 git://github.com/open-power/qemu.git
+git clone --depth=1 -b qemu-powernv-for-skiboot-3 git://github.com/open-power/qemu.git
cd qemu
git submodule update --init dtc
./configure --target-list=ppc64-softmmu --disable-werror
diff --git a/test/run_qemu-jessie-debian-installer_boot_test.sh b/test/run_qemu-jessie-debian-installer_boot_test.sh
index 0bdd869..36878a7 100755
--- a/test/run_qemu-jessie-debian-installer_boot_test.sh
+++ b/test/run_qemu-jessie-debian-installer_boot_test.sh
@@ -44,7 +44,7 @@ $QEMU_PATH/../qemu-img create -f qcow2 $D 128G 2>&1 > $T
( cat <<EOF | expect
set timeout 600
-spawn $QEMU_PATH/$QEMU_BINARY -m 2G -M powernv -kernel debian-jessie-vmlinux -initrd debian-jessie-initrd.gz -nographic -hda $D
+spawn $QEMU_PATH/$QEMU_BINARY -m 2G -M powernv -kernel debian-jessie-vmlinux -initrd debian-jessie-initrd.gz -nographic -device ipmi-bmc-sim,id=ipmi0 -device isa-ipmi-bt,bmc=ipmi0 -hda $D
expect {
timeout { send_user "\nTimeout waiting for petitboot\n"; exit 1 }
eof { send_user "\nUnexpected EOF\n;" exit 1 }
diff --git a/test/run_qemu_boot_test.sh b/test/run_qemu_boot_test.sh
index 4809810..48abafa 100755
--- a/test/run_qemu_boot_test.sh
+++ b/test/run_qemu_boot_test.sh
@@ -37,7 +37,7 @@ T=`mktemp --tmpdir skiboot_qemu_boot_test.XXXXXXXXXX`
( cat <<EOF | expect
set timeout 600
-spawn $QEMU_PATH/$QEMU_BINARY -m 1G -M powernv -kernel $SKIBOOT_ZIMAGE -nographic
+spawn $QEMU_PATH/$QEMU_BINARY -m 3G -M powernv -kernel $SKIBOOT_ZIMAGE -nographic -device ipmi-bmc-sim,id=ipmi0 -device isa-ipmi-bt,bmc=ipmi0
expect {
timeout { send_user "\nTimeout waiting for petitboot\n"; exit 1 }
eof { send_user "\nUnexpected EOF\n;" exit 1 }
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list