aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2.c
diff options
context:
space:
mode:
authorAbhishek Goel <huntbag@linux.vnet.ibm.com>2018-10-16 06:02:10 -0500
committerStewart Smith <stewart@linux.ibm.com>2019-02-25 23:04:00 -0600
commitb821f8c2a8e38c18b0dd976b15f699d243a6099f (patch)
tree4487b266643b83ddd95fcbd813fe2352948a9bce /hw/npu2.c
parent8b26e29acbc84e8bd5e18af194efd693b8b70912 (diff)
downloadskiboot-b821f8c2a8e38c18b0dd976b15f699d243a6099f.zip
skiboot-b821f8c2a8e38c18b0dd976b15f699d243a6099f.tar.gz
skiboot-b821f8c2a8e38c18b0dd976b15f699d243a6099f.tar.bz2
power-mgmt : occ : Add 'freq-domain-mask' DT property
Add a new device-tree property freq-domain-indicator to define group of CPUs which would share same frequency. This property has been added under power-mgmt node. It is a bitmask. Bitwise AND is taken between this bitmask value and PIR of cpu. All the CPUs lying in the same frequency domain will have same result for AND. For example, For POWER9, 0xFFF0 indicates quad wide frequency domain. Taking AND with the PIR of CPUs will yield us frequency domain which is quad wise distribution as last 4 bits have been masked which represent the cores. Similarly, 0xFFF8 will represent core wide frequency domain for P8. Also, Add a new device-tree property domain-runs-at which will denote the strategy OCC is using to change the frequency of a frequency-domain. There can be two strategy - FREQ_MOST_RECENTLY_SET and FREQ_MAX_IN_DOMAIN. FREQ_MOST_RECENTLY_SET : the OCC sets the frequency of the quad to the most recent frequency value requested by the CPUs in the quad. FREQ_MAX_IN_DOMAIN : the OCC sets the frequency of the CPUs in the Quad to the maximum of the latest frequency requested by each of the component cores. Signed-off-by: Abhishek Goel <huntbag@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2.c')
0 files changed, 0 insertions, 0 deletions