[Skiboot] [PATCH 0/6] plat/qemu: add support of BT device

Cédric Le Goater clg at fr.ibm.com
Thu Apr 7 02:30:06 AEST 2016


Hello,

Here is a small patchset modifying the qemu platform in skiboot in
order to use the recent BT device which has been merged in version 2.6
of qemu. This is a significant change for PowerNV guests as it brings
in IPMI support and gets them a little closer to a real OpenPower
system.

The BT device is defined on the command line of qemu. Different
backends can be a linked to it, a simulator or an external (real)
BMC. For the moment, only the simulator has been experimented but we
could imagine linking a PowerNV qemu guest with an ast2400 qemu guest
in a close future.

The PowerNV platform is not merged in qemu yet. Work is in progress.
If you want to give it a try, here's a branch on top of qemu-2.6-rc1
which contains a port of Ben's patchset and some patches of mine for
the IPMI support :

  https://github.com/legoater/qemu/commits/powernv-ipmi

I should update when version 2.6 is out.


To run, use :

  qemu-system-ppc64 -m 2G -M powernv \
    -device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10 \
    -bios skiboot.lid -kernel zImage.epapr -initrd rootfs.cpio.xz \
    -nographic -nodefaults -serial stdio

If you can access files containing raw definitions of SDRs and FRUs
for a palmetto system, add sdrfile= and frudatafile= options to the
BMC similator, to have qemu load them before guest startup :

    -device ipmi-bmc-sim,sdrfile=./palmetto-SDR.bin,fruareasize=256,frudatafile=./palmetto-FRU.bin,id=bmc0

Skibootly yours,

C.


Cédric Le Goater (6):
  plat/qemu: move platform definition to astbmc
  plat/astbmc: introduce astbmc_get_primary_lpc()
  plat/qemu: use astbmc_fixup_dt_uart()
  plat/qemu: use astbmc_ext_irq_serirq_cpld()
  plat/qemu: initialize as an astbmc if a bt device is available
  plat/qemu: check device tree for RTC definitions

 platforms/Makefile.inc        |   3 +-
 platforms/astbmc/Makefile.inc |   4 +-
 platforms/astbmc/astbmc.h     |   2 +
 platforms/astbmc/common.c     |  11 +++-
 platforms/astbmc/qemu.c       | 125 +++++++++++++++++++++++++++++++++++
 platforms/qemu/Makefile.inc   |   6 --
 platforms/qemu/qemu.c         | 148 ------------------------------------------
 7 files changed, 140 insertions(+), 159 deletions(-)
 create mode 100644 platforms/astbmc/qemu.c
 delete mode 100644 platforms/qemu/Makefile.inc
 delete mode 100644 platforms/qemu/qemu.c

-- 
2.1.4



More information about the Skiboot mailing list