[Skiboot] [RFC 00/12] NX 842 PowerNV kernel driver

Dan Streetman ddstreet at ieee.org
Tue Mar 10 14:58:30 AEDT 2015


These are the patches to add support for the NX-842 coproc on PowerNV.

Of particular note, this exports the opal_xscom_read/write() functions,
and the powernv nx-842 driver checks some of the xscom registers for
coprocessor status and errors, with more error checking/handling to
be added later.  The question there is, should the xscom r/w be done
in skiboot, and remove any xscom r/w from the kernel driver?

Any other comments are welcome also.

Dan Streetman (12):
  export of_get_ibm_chip_id function
  export xscom read/write
  Add ICSWX instruction
  add software 842 decompression
  move nx-842.c to nx-842-pseries.c
  add NX-842 platform frontend driver
  add nx842 constraints
  add PowerNV platform NX-842 driver
  simplify pSeries nx842 driver
  remove LZO fallback from crypto 842
  rewrite crypto 842 to use nx842 constraints
  add crypto compression sefltest

 MAINTAINERS                           |    5 +-
 arch/powerpc/include/asm/icswx.h      |  184 ++++
 arch/powerpc/include/asm/ppc-opcode.h |   13 +
 arch/powerpc/kernel/prom.c            |    1 +
 arch/powerpc/platforms/powernv/opal.c |    2 +
 crypto/842.c                          |  477 ++++++++--
 crypto/Kconfig                        |   13 +-
 crypto/Makefile                       |    1 +
 crypto/comp_selftest.c                |  928 +++++++++++++++++++
 drivers/crypto/Kconfig                |    6 +-
 drivers/crypto/nx/Kconfig             |   39 +-
 drivers/crypto/nx/Makefile            |    4 +
 drivers/crypto/nx/nx-842-powernv.c    |  690 ++++++++++++++
 drivers/crypto/nx/nx-842-pseries.c    | 1126 +++++++++++++++++++++++
 drivers/crypto/nx/nx-842-xscom.h      |  265 ++++++
 drivers/crypto/nx/nx-842.c            | 1623 +++------------------------------
 drivers/crypto/nx/nx-842.h            |  131 +++
 include/linux/nx842.h                 |   17 +-
 include/linux/sw842.h                 |    7 +
 lib/842/842_decompress.c              |  413 +++++++++
 lib/842/Makefile                      |    1 +
 lib/Kconfig                           |    3 +
 lib/Makefile                          |    1 +
 23 files changed, 4314 insertions(+), 1636 deletions(-)
 create mode 100644 arch/powerpc/include/asm/icswx.h
 create mode 100644 crypto/comp_selftest.c
 create mode 100644 drivers/crypto/nx/nx-842-powernv.c
 create mode 100644 drivers/crypto/nx/nx-842-pseries.c
 create mode 100644 drivers/crypto/nx/nx-842-xscom.h
 create mode 100644 drivers/crypto/nx/nx-842.h
 create mode 100644 include/linux/sw842.h
 create mode 100644 lib/842/842_decompress.c
 create mode 100644 lib/842/Makefile

-- 
2.1.0



More information about the Skiboot mailing list