diff options
author | Vaidyanathan Srinivasan <svaidy@linux.ibm.com> | 2021-08-04 12:50:51 +0530 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2021-08-06 11:51:26 +0530 |
commit | c8c36ada1d9a07be1120663ab02dc87798362cb8 (patch) | |
tree | defdc01f722c83ed99dd10bac610bbca8803c51f /hw/occ-sensor.c | |
parent | d91829a85472769ad2ed0caca1cde6796ec5fe98 (diff) | |
download | skiboot-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.c | 4 |
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 */ |