[Skiboot] [PATCH V7 0/3] Support for parsing pstate table version 0x90

Shilpasri G Bhat shilpa.bhat at linux.vnet.ibm.com
Tue Feb 14 07:31:39 AEDT 2017


This series provides support for parsing the new pstate table layout
of OCC_OPAL shared memory region for P9.

Thanks and Regards,

Changes from V6:
- Remove all the macro definitions for code blocks.
- Retain the links to OCC pstate table header file
- Define OPAL_DYNAMIC_DATA_OFFSET and remove the large padding between
  static and dynamic table to keep the structure definition consistent
  between OCC and OPAL code.
- Use malloc() followed by assert()
- Move pstate-core-max property back to "power-mgt"node
- Add documentation for device-tree properties

Changes from V5:
- Rebased on master

Changes from v4:
- Fixed turbo and ultra_turbo pstate comparison.
- s/prerror/prlog(PR_ERR) which have fwts-annotations
- Removed fwts_annotations in macro definitions
- Added out-of-bound sanity checks for nominal and turbo pstate
- Added size to the "reg" property of /ibm,opal/power-mgt/occ

Changes from v3:
- Rebased on skiboot/master

Changes from v2:
- s/abs()/labs()
- Included test case for labs()
- Added C-style doc for struct occ_pstate_table and struct occ_dynamic_data

Shilpasri G Bhat (3):
  libc: Add labs() to stdlib
  occ: Fix Pstate ordering for P9
  occ: Add support for Version 0x90 OCC_OPAL shared memory region

 doc/device-tree/ibm,opal/power-mgt.rst     |  20 +-
 doc/device-tree/ibm,opal/power-mgt/occ.rst |  38 ++
 hw/occ.c                                   | 677 ++++++++++++++++++++++-------
 libc/include/stdlib.h                      |   1 +
 libc/stdlib/Makefile.inc                   |   2 +-
 libc/stdlib/labs.c                         |  25 ++
 libc/test/run-stdlib.c                     |   7 +
 7 files changed, 590 insertions(+), 180 deletions(-)
 create mode 100644 doc/device-tree/ibm,opal/power-mgt/occ.rst
 create mode 100644 libc/stdlib/labs.c


More information about the Skiboot mailing list