[Skiboot] [PATCH v2 0/2] sensors: occ: Couple of fixes

Gautham R. Shenoy ego at linux.vnet.ibm.com
Tue Apr 28 00:56:39 AEST 2020

From: "Gautham R. Shenoy" <ego at linux.vnet.ibm.com>


This is the v2 of the series containining a couple of fixes for the
occ-sensors code.

1) Fixes the GPU detection code to ensure that systems which have
   NVLink but no GPUs do not expose the GPU sensors.

2) Fixes a bug due to which sensors whose values were 0 were being
reported incorrectly.

v1 (which got posted twice) can be found here:

The change from v1 --> v2 :
In the Patch "sensors: occ: Fix the GPU detection code", fixed the
max_gpus_per_chip to 3 (it was 2 in the earlier patch) as specified in
Section 11.1 of the "OPAL-OCC Shared Memory Interface" of the Version
0.24 of "OCC Firmware Interface Specification for POWER9"

Frederic, Vaidy,

Since the aforementioned change is a minor one, I have retained your
respective "Reviewed-by"s for this patch from v1. Please let me know
if this should be otherwise.

Gautham R. Shenoy (2):
  sensors: occ: Fix the GPU detection code
  sensors: occ: Fix a bug when sensor values are zero

 hw/occ-sensor.c | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)


More information about the Skiboot mailing list