All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	"Cédric Le Goater" <clg@kaod.org>
Subject: [Qemu-devel] [PATCH v3 0/8] pnv: improvement of LPC support and IPMI support
Date: Tue, 11 Apr 2017 17:29:58 +0200	[thread overview]
Message-ID: <1491924606-20026-1-git-send-email-clg@kaod.org> (raw)

Hello,

The first patches improve the LPC support for the POWER8NVL (nvlink)
systems and for multichip systems. 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


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.

Changes since v2:

 - used PNV_LPC() macro to cast the 'opaque' parameter
 - introduced a pnv_chip_lpc_offset() routine to locate the LPC node
   of a chip   
 - set the "primary" property on the LPC bus of chip 0 from the machine
 - used the pnv_chip_lpc_offset() routine to scan the default LPC bus
 - removed the initializer of io_base

Changes since v1:

 - moved the IRQ handler in pnv_lpc.c and introduced pnv_lpc_isa_irq_create()
 - only add the "primary" property on the LPC bus of chip 0
 - reworked the assignement of the ISA IO base in the 'reg' array
   property
 - changed the type of the 'bmc' attribute of the machine

Benjamin Herrenschmidt (1):
  ppc/pnv: Add support for POWER8+ LPC Controller

Cédric Le Goater (7):
  ppc/pnv: enable only one LPC bus
  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

 hw/ppc/Makefile.objs     |   2 +-
 hw/ppc/pnv.c             | 228 ++++++++++++++++++++++++++++++++++++++---------
 hw/ppc/pnv_bmc.c         | 122 +++++++++++++++++++++++++
 hw/ppc/pnv_lpc.c         | 106 +++++++++++++++++++---
 include/hw/ppc/pnv.h     |  11 +++
 include/hw/ppc/pnv_lpc.h |   8 ++
 6 files changed, 425 insertions(+), 52 deletions(-)
 create mode 100644 hw/ppc/pnv_bmc.c

-- 
2.7.4

             reply	other threads:[~2017-04-11 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 15:29 Cédric Le Goater [this message]
2017-04-11 15:29 ` [Qemu-devel] [PATCH v3 1/8] ppc/pnv: Add support for POWER8+ LPC Controller Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 2/8] ppc/pnv: enable only one LPC bus Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 3/8] ppc/pnv: scan ISA bus to populate device tree Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 4/8] ppc/pnv: populate device tree for RTC devices Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 5/8] ppc/pnv: populate device tree for serial devices Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 6/8] ppc/pnv: populate device tree for IPMI BT devices Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 7/8] ppc/pnv: add initial IPMI sensors for the BMC simulator Cédric Le Goater
2017-04-11 15:30 ` [Qemu-devel] [PATCH v3 8/8] ppc/pnv: generate an OEM SEL event on shutdown Cédric Le Goater
2017-04-12  4:15 ` [Qemu-devel] [PATCH v3 0/8] pnv: improvement of LPC support and IPMI support David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491924606-20026-1-git-send-email-clg@kaod.org \
    --to=clg@kaod.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.