All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] ppc/pnv: Add PNOR support
@ 2019-10-21 13:12 Cédric Le Goater
  2019-10-21 13:12 ` [PATCH 1/5] ppc/pnv: Add a PNOR model Cédric Le Goater
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Cédric Le Goater @ 2019-10-21 13:12 UTC (permalink / raw)
  To: David Gibson
  Cc: qemu-devel, Greg Kurz, qemu-ppc, Joel Stanley, Marty E . Plummer,
	Cédric Le Goater

Hello,

On a POWERPC PowerNV system, the host firmware is stored in a PNOR
flash chip which contents is mapped on the LPC bus. This model adds a
simple dummy device to map the contents of a block device in the host
address space and activates HIOMAP support on the QEMU PowerNV machine
to let the host negotiate with the BMC the access to the mapping.

The command options to activate these models in QEMU:

  -device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10 \
  -drive file=./witherspoon.pnor,format=raw,if=mtd

The last two patches add the logic to load in the machine memory the
PAYLOAD partition (skiboot) from an OpenPOWER firmware file. These
should be considered as RFCs as the firmware file could have a
different format. Something to discuss.


Thanks,

C. 

Cédric Le Goater (5):
  ppc/pnv: Add a PNOR model
  ipmi: Add support to customize OEM functions
  ppc/pnv: Add HIOMAP commands
  libxz: Add XZ Embedded library for PPC
  ppc/pnv: Read the PNOR partition table

 include/hw/ipmi/ipmi.h    |   36 ++
 include/hw/ppc/ffs.h      |  150 +++++
 include/hw/ppc/pnv.h      |    4 +
 include/hw/ppc/pnv_pnor.h |   36 ++
 libxz/xz.h                |  304 ++++++++++
 libxz/xz_config.h         |  124 ++++
 libxz/xz_lzma2.h          |  204 +++++++
 libxz/xz_private.h        |  156 +++++
 libxz/xz_stream.h         |   62 ++
 hw/ipmi/ipmi_bmc_sim.c    |   41 +-
 hw/ppc/pnv.c              |   48 +-
 hw/ppc/pnv_bmc.c          |  101 ++++
 hw/ppc/pnv_lpc.c          |   13 +
 hw/ppc/pnv_pnor.c         |  291 +++++++++
 libxz/xz_crc32.c          |   59 ++
 libxz/xz_dec_lzma2.c      | 1171 +++++++++++++++++++++++++++++++++++++
 libxz/xz_dec_stream.c     |  847 +++++++++++++++++++++++++++
 hw/ppc/Makefile.objs      |    4 +-
 libxz/Makefile.objs       |    1 +
 target/ppc/Makefile.objs  |    1 +
 20 files changed, 3606 insertions(+), 47 deletions(-)
 create mode 100644 include/hw/ppc/ffs.h
 create mode 100644 include/hw/ppc/pnv_pnor.h
 create mode 100644 libxz/xz.h
 create mode 100644 libxz/xz_config.h
 create mode 100644 libxz/xz_lzma2.h
 create mode 100644 libxz/xz_private.h
 create mode 100644 libxz/xz_stream.h
 create mode 100644 hw/ppc/pnv_pnor.c
 create mode 100644 libxz/xz_crc32.c
 create mode 100644 libxz/xz_dec_lzma2.c
 create mode 100644 libxz/xz_dec_stream.c
 create mode 100644 libxz/Makefile.objs

-- 
2.21.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-11-22  3:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 13:12 [PATCH 0/5] ppc/pnv: Add PNOR support Cédric Le Goater
2019-10-21 13:12 ` [PATCH 1/5] ppc/pnv: Add a PNOR model Cédric Le Goater
2019-10-27 17:46   ` David Gibson
2019-10-21 13:12 ` [PATCH 2/5] ipmi: Add support to customize OEM functions Cédric Le Goater
2019-10-21 14:30   ` Corey Minyard
2019-10-27 17:47     ` David Gibson
2019-10-27 18:33       ` Corey Minyard
2019-11-07 17:00         ` David Gibson
2019-11-07 17:14           ` Cédric Le Goater
2019-11-07 17:25             ` Corey Minyard
2019-11-07 17:29               ` Cédric Le Goater
2019-11-22  2:22   ` Corey Minyard
2019-11-22  3:40     ` David Gibson
2019-10-21 13:12 ` [PATCH 3/5] ppc/pnv: Add HIOMAP commands Cédric Le Goater
2019-10-23  6:01   ` Joel Stanley
2019-10-21 13:12 ` [PATCH 4/5] libxz: Add XZ Embedded library for PPC Cédric Le Goater
2019-10-21 13:12 ` [PATCH 5/5] ppc/pnv: Read the PNOR partition table Cédric Le Goater
2019-10-21 21:17 ` [PATCH 0/5] ppc/pnv: Add PNOR support no-reply

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.