aboutsummaryrefslogtreecommitdiff
path: root/hw/occ-sensor.c
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.ibm.com>2021-08-04 12:50:51 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-08-06 11:51:26 +0530
commitc8c36ada1d9a07be1120663ab02dc87798362cb8 (patch)
treedefdc01f722c83ed99dd10bac610bbca8803c51f /hw/occ-sensor.c
parentd91829a85472769ad2ed0caca1cde6796ec5fe98 (diff)
downloadskiboot-c8c36ada1d9a07be1120663ab02dc87798362cb8.zip
skiboot-c8c36ada1d9a07be1120663ab02dc87798362cb8.tar.gz
skiboot-c8c36ada1d9a07be1120663ab02dc87798362cb8.tar.bz2
occ: Add POWER10 support
Add support for parsing OCC on Power10 to populate the pstate information. Also enables OCC on P10 Denali system. Co-authored-by: Pratik R. Sampat <psampat@linux.ibm.com> Co-authored-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com> Signed-off-by: Pratik R. Sampat <psampat@linux.ibm.com> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw/occ-sensor.c')
-rw-r--r--hw/occ-sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/occ-sensor.c b/hw/occ-sensor.c
index 8605c40..6efaf90 100644
--- a/hw/occ-sensor.c
+++ b/hw/occ-sensor.c
@@ -500,8 +500,8 @@ bool occ_sensors_init(void)
int occ_num = 0, i;
bool has_gpu = false;
- /* OCC inband sensors is only supported in P9 */
- if (proc_gen != proc_gen_p9)
+ /* OCC inband sensors is only supported in P9/10 */
+ if (proc_gen < proc_gen_p9)
return false;
/* Sensors are copied to BAR2 OCC Common Area */