Skip to content

sync opal.h with firmware

Stewart Smith linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18powerpc/powernv: sync OPAL API tokens with skibootarch/powerpc/include/asm/opal.h+2 -20 replies
2/18powerpc/powernv: synchronize OPAL calls and return codes with firmwarearch/powerpc/include/asm/opal.h+8 -10 replies
3/18powerpc/powernv: s/OPAL_PCI_SET_PHB_CXL_MODE/OPAL_PCI_SET_PHB_CAPI_MODE/ to match firmwarearch/powerpc/include/asm/opal.h arch/powerpc/platforms/powernv/opal-wrappers.S arch/powerpc/platforms/powernv/pci-ioda.c+5 -51 reply
4/18powerpc/powernv: relocate struct opal_sg_entry in opal.h to same place it is in firmwarearch/powerpc/include/asm/opal.h+23 -250 replies
5/18powerpc/powernv: synchronize opal.h whitespace with firmwarearch/powerpc/include/asm/opal.h+25 -260 replies
6/18powerpc/powernv: move OPAL_DUMP_REGION defines in opal.h to same place as in firmware opal.harch/powerpc/include/asm/opal.h+7 -70 replies
7/18powerpc/powernv: make whitespace for OPAL_PM_* defines match firmwarearch/powerpc/include/asm/opal.h+4 -40 replies
8/18powerpc/powernv: Move OpalSysparamPerm,OpalMessageType in opal.h to match firmwarearch/powerpc/include/asm/opal.h+16 -160 replies
9/18powerpc/powernv: match enum OpalMessageType with firmwarearch/powerpc/include/asm/opal.h+2 -10 replies
10/18powerpc/powernv: move OPAL API prototypes to opal-api.harch/powerpc/include/asm/opal-api.h arch/powerpc/include/asm/opal.h arch/powerpc/kernel/prom.c +28 more+269 -2250 replies
11/18powerpc/powernv: make whitespace in enum OpalSysparamPerm match firmwarearch/powerpc/include/asm/opal.h+3 -30 replies
12/18powerpc/powernv: add CAPI and EPOW parts to opal.harch/powerpc/include/asm/opal.h+52 -00 replies
13/18powerpc/powernv: add remaining missing enums to opal.harch/powerpc/include/asm/opal.h+18 -20 replies
14/18powerpc/powernv: sync comments and whitespace in opal.h with firmwarearch/powerpc/include/asm/opal.h+16 -90 replies
15/18powerpc/powernv: sync #includes in opal.h with firmwarearch/powerpc/include/asm/opal.h+6 -20 replies
16/18powerpc/powernv: move SG_ENTRIES_PER_NODE to linux-specific opal-api.harch/powerpc/include/asm/opal-api.h arch/powerpc/include/asm/opal.h+4 -40 replies
17/18powerpc/powernv: s/u8/uint8_t/ to match firmware in opal.harch/powerpc/include/asm/opal.h+2 -20 replies
18/18powerpc/powernv: s/OpalM64EnableAction/OpalM64Action/ and __be64 annotationarch/powerpc/include/asm/opal.h+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/18] sync opal.h with firmware

This patch series takes a careful step-by-step process to sync the opal.h header file (definition of interface to OPAL firmware) with opal.h in firmware.

Each patch is designed to be as obvious as possible so that it's easy for someone else to prove that I haven't messed it up anywhere.

In the process of doing this, I fixed a few things in firmware too, so this matches skiboot at 4681ed9, which is a little after the most recent skiboot release (4.1.1).

The biggest change is moving the function prototypes for API calls out to opal-api.h.

Stewart Smith (18):
powerpc/powernv: sync OPAL API tokens with skiboot powerpc/powernv: synchronize OPAL calls and return codes with
firmware
powerpc/powernv:
s/OPAL_PCI_SET_PHB_CXL_MODE/OPAL_PCI_SET_PHB_CAPI_MODE/ to match firmware
powerpc/powernv: relocate struct opal_sg_entry in opal.h to same
place it is in firmware
powerpc/powernv: synchronize opal.h whitespace with firmware powerpc/powernv: move OPAL_DUMP_REGION defines in opal.h to same
place as in firmware opal.h
powerpc/powernv: make whitespace for OPAL_PM_* defines match firmware powerpc/powernv: Move OpalSysparamPerm,OpalMessageType in opal.h to
match firmware
powerpc/powernv: match enum OpalMessageType with firmware powerpc/powernv: move OPAL API prototypes to opal-api.h powerpc/powernv: make whitespace in enum OpalSysparamPerm match
firmware
powerpc/powernv: add CAPI and EPOW parts to opal.h powerpc/powernv: add remaining missing enums to opal.h powerpc/powernv: sync comments and whitespace in opal.h with firmware powerpc/powernv: sync #includes in opal.h with firmware powerpc/powernv: move SG_ENTRIES_PER_NODE to linux-specific
opal-api.h
powerpc/powernv: s/u8/uint8_t/ to match firmware in opal.h powerpc/powernv: s/OpalM64EnableAction/OpalM64Action/ and __be64
annotation

 arch/powerpc/include/asm/opal-api.h                |  244 ++++++++++
 arch/powerpc/include/asm/opal.h                    |  492 +++++++-------------
 arch/powerpc/kernel/prom.c                         |    1 +
 arch/powerpc/platforms/powernv/eeh-ioda.c          |    1 +
 arch/powerpc/platforms/powernv/eeh-powernv.c       |    1 +
 arch/powerpc/platforms/powernv/opal-async.c        |    1 +
 arch/powerpc/platforms/powernv/opal-dump.c         |    1 +
 arch/powerpc/platforms/powernv/opal-elog.c         |    1 +
 arch/powerpc/platforms/powernv/opal-flash.c        |    1 +
 arch/powerpc/platforms/powernv/opal-hmi.c          |    1 +
 arch/powerpc/platforms/powernv/opal-lpc.c          |    1 +
 .../powerpc/platforms/powernv/opal-memory-errors.c |    1 +
 arch/powerpc/platforms/powernv/opal-msglog.c       |    1 +
 arch/powerpc/platforms/powernv/opal-nvram.c        |    1 +
 arch/powerpc/platforms/powernv/opal-rtc.c          |    1 +
 arch/powerpc/platforms/powernv/opal-sensor.c       |    1 +
 arch/powerpc/platforms/powernv/opal-sysparam.c     |    1 +
 arch/powerpc/platforms/powernv/opal-wrappers.S     |    2 +-
 arch/powerpc/platforms/powernv/opal-xscom.c        |    1 +
 arch/powerpc/platforms/powernv/opal.c              |    1 +
 arch/powerpc/platforms/powernv/pci-ioda.c          |    5 +-
 arch/powerpc/platforms/powernv/pci-p5ioc2.c        |    1 +
 arch/powerpc/platforms/powernv/pci.c               |    1 +
 arch/powerpc/platforms/powernv/setup.c             |    1 +
 arch/powerpc/platforms/powernv/smp.c               |    1 +
 arch/powerpc/platforms/powernv/subcore.c           |    1 +
 arch/powerpc/sysdev/xics/ics-opal.c                |    1 +
 drivers/char/ipmi/ipmi_powernv.c                   |    2 +-
 drivers/hwmon/ibmpowernv.c                         |    1 +
 drivers/i2c/busses/i2c-opal.c                      |    1 +
 drivers/rtc/rtc-opal.c                             |    1 +
 drivers/tty/hvc/hvc_opal.c                         |    1 +
 32 files changed, 450 insertions(+), 322 deletions(-)
 create mode 100644 arch/powerpc/include/asm/opal-api.h
Signature · 1 line
1.7.10.4