aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2019-06-18 11:01:33 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-02 15:25:33 +1000
commit1fa6e85afac5b6af3ad117a09d32500b06718de1 (patch)
tree5d38abbad7af190413a752c8986e52d9423283ef /hw
parent6080c106e797ea8375ac164e8f53de3308d42abb (diff)
downloadskiboot-1fa6e85afac5b6af3ad117a09d32500b06718de1.zip
skiboot-1fa6e85afac5b6af3ad117a09d32500b06718de1.tar.gz
skiboot-1fa6e85afac5b6af3ad117a09d32500b06718de1.tar.bz2
occ: Add pstate corresponding to base frequency to DT
Unlike POWER8, nominal frequency is not the highest guaranteed frequency of the POWER9 chip. In POWER9, the highest guaranteed frequency is greater than the nominal frequency and is referred to as base frequency. In POWER9 base frequency is the highest frequency the processor will operate at when ALL cores are active and in ANY operating condition. This patch exports the turbo pstate as the base frequency as per OCC documentation. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> [oliver: delete ibm,pstate-base on fast reboot] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/occ.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/occ.c b/hw/occ.c
index f054379..db2744f 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -703,6 +703,7 @@ static bool add_cpu_pstate_properties(struct dt_node *power_mgt,
dt_add_property(power_mgt, "ibm,pstate-core-max", dt_cmax,
nr_cores * sizeof(u32));
+ dt_add_property_cells(power_mgt, "ibm,pstate-base", pturbo);
free(dt_cmax);
}
@@ -1747,6 +1748,7 @@ void occ_pstates_init(void)
"ibm,pstate-nominal",
"ibm,pstate-turbo",
"ibm,pstate-ultra-turbo",
+ "ibm,pstate-base",
"#address-cells",
"#size-cells",
};