qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH 00/21] pnv: PSI, OCC, IPMI and PCI models


From: Cédric Le Goater
Subject: [Qemu-ppc] [PATCH 00/21] pnv: PSI, OCC, IPMI and PCI models
Date: Wed, 5 Apr 2017 14:41:25 +0200

Hello,

Now that we have support for the interrupt controller in the PowerNV
machine, we can start adding controllers depending on it. First of
these, is the Processor Service Interface (PSI), which handles the
external interrupt, and then a minimal model for the OCC. They have
been reviewed a couple of time and should be ready to be merged.
These first two patches give us a usable PCI-less PowerNV machine,
which is an important step to complete the overall model.

Some fixes improving support for the POWER8NVL (nvlink) and multichip
follow.

Next, we add IPMI support to the machine which is required to power
off and reboot a PowerNV system. To make use of it, a BT device and an
BMC simulator need to be defined on the command line:

    -device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10

To improve the sensor and FRU support, one can use the following
options for the simulator:

    sdrfile=./palmetto-SDR.bin,fruareasize=256,frudatafile=./palmetto-FRU.bin

Most of the IPMI patches have been discussed already on the list and
some should go through Corey Minyard's tree or Michael S. Tsirkin's if
considered ready.

Last is a PCIe host bridge model (PHB3) as found on the Power8
machines. Power9 will use a PHB4 which is very close. Nevertheless, it
is a large model and it depends on a few helpers in the PCI core which
need to be discussed. (I would need some help here)


To test, grab a kernel and a rootfs image here :

  
https://openpower.xyz/job/openpower-op-build/distro=ubuntu,target=palmetto/lastSuccessfulBuild/artifact/images/zImage.epapr
  
https://openpower.xyz/job/openpower-op-build/distro=ubuntu,target=palmetto/lastSuccessfulBuild/artifact/images/rootfs.cpio.xz

The full patchset is available here :

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

Thanks,

C.

Benjamin Herrenschmidt (7):
  ppc/pnv: Add OCC model stub with interrupt support
  ppc/pnv: Add support for POWER8+ LPC Controller
  qdev: Add a hook for a bus to device if it can add devices
  pci: Use the new pci_can_add_device() to enforce devfn_min/max
  pci: Don't call pci_irq_handler() for a negative intx
  ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge
  ppc/pnv: Create a default PCI layout

Cédric Le Goater (14):
  ppc/pnv: Add cut down PSI bridge model and hookup external interrupt
  ppc/pnv: enable only one LPC bus
  ppc: add IPMI support
  ipmi: use a file to load SDRs
  ipmi: provide support for FRUs
  ipmi: introduce an ipmi_bmc_sdr_find() API
  ipmi: introduce an ipmi_bmc_gen_event() API
  ipmi: add SET_SENSOR_READING command
  ppc/pnv: scan ISA bus to populate device tree
  ppc/pnv: populate device tree for RTC devices
  ppc/pnv: populate device tree for serial devices
  ppc/pnv: populate device tree for IPMI BT devices
  ppc/pnv: add initial IPMI sensors for the BMC simulator
  ppc/pnv: generate an OEM SEL event on shutdown

 default-configs/ppc64-softmmu.mak   |    4 +
 hw/intc/xics.c                      |    2 +-
 hw/ipmi/ipmi_bmc_sim.c              |  324 ++++++++++-
 hw/pci-host/Makefile.objs           |    1 +
 hw/pci-host/pnv_phb3.c              | 1052 +++++++++++++++++++++++++++++++++++
 hw/pci-host/pnv_phb3_msi.c          |  304 ++++++++++
 hw/pci-host/pnv_phb3_pbcq.c         |  361 ++++++++++++
 hw/pci-host/pnv_phb3_rc.c           |  134 +++++
 hw/pci/pci.c                        |   26 +-
 hw/ppc/Makefile.objs                |    2 +-
 hw/ppc/pnv.c                        |  435 ++++++++++++++-
 hw/ppc/pnv_bmc.c                    |  123 ++++
 hw/ppc/pnv_lpc.c                    |   67 ++-
 hw/ppc/pnv_occ.c                    |  136 +++++
 hw/ppc/pnv_psi.c                    |  571 +++++++++++++++++++
 hw/ppc/pnv_xscom.c                  |    5 +-
 include/hw/ipmi/ipmi.h              |    4 +
 include/hw/pci-host/pnv_phb3.h      |  156 ++++++
 include/hw/pci-host/pnv_phb3_regs.h |  506 +++++++++++++++++
 include/hw/pci/pci_bus.h            |    1 +
 include/hw/ppc/pnv.h                |   31 ++
 include/hw/ppc/pnv_lpc.h            |   11 +
 include/hw/ppc/pnv_occ.h            |   38 ++
 include/hw/ppc/pnv_psi.h            |   67 +++
 include/hw/ppc/pnv_xscom.h          |   15 +
 include/hw/ppc/xics.h               |    1 +
 include/hw/qdev-core.h              |    1 +
 qdev-monitor.c                      |   14 +-
 qemu-options.hx                     |   15 +-
 29 files changed, 4378 insertions(+), 29 deletions(-)
 create mode 100644 hw/pci-host/pnv_phb3.c
 create mode 100644 hw/pci-host/pnv_phb3_msi.c
 create mode 100644 hw/pci-host/pnv_phb3_pbcq.c
 create mode 100644 hw/pci-host/pnv_phb3_rc.c
 create mode 100644 hw/ppc/pnv_bmc.c
 create mode 100644 hw/ppc/pnv_occ.c
 create mode 100644 hw/ppc/pnv_psi.c
 create mode 100644 include/hw/pci-host/pnv_phb3.h
 create mode 100644 include/hw/pci-host/pnv_phb3_regs.h
 create mode 100644 include/hw/ppc/pnv_occ.h
 create mode 100644 include/hw/ppc/pnv_psi.h

-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]