linux_dsm_epyc7002/arch/arm64/boot/dts/hisilicon
Valentin Schneider 9a9760dede arm64: dts: hisilicon: Add hi3660 cpu capacity-dmips-mhz information
The following dt entries are added:
 cpus [0-3] (Cortex A53):
   - capacity-dmips-mhz = <592>;

 cpus [4-7] (Cortex A73):
   - capacity-dmips-mhz = <1024>;

Those values were obtained by running dhrystone 2.1 on a
HiKey960 with the following procedure:
- Offline all CPUs but CPU0 (A53)
- Set CPU0 frequency to maximum
- Run Dhrystone 2.1 for 20 seconds

- Offline all CPUs but CPU4 (A73)
- set CPU4 frequency to maximum
- Run Dhrystone 2.1 for 20 seconds

The results are as follows:
A53: 129633887 loops
A73: 287034147 loops

By scaling those values so that the A73s use 1024, we end up with 462
for the A53s. However, they have different maximum frequencies:
1.844GHz for A53s and 2.362GHz for A73s. Thus, we can scale the A53
value to truly represent dmips per MHz, and we end up with 592.

The impact of this change can be verified on HiKey960:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
1844000
1844000
1844000
1844000
2362000
2362000
2362000
2362000

$ cat /sys/devices/system/cpu/cpu*/cpu_capacity
462
462
462
462
1024
1024
1024
1024

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
2017-12-22 09:11:42 +00:00
..
hi3660-hikey960.dts ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00
hi3660.dtsi arm64: dts: hisilicon: Add hi3660 cpu capacity-dmips-mhz information 2017-12-22 09:11:42 +00:00
hi3798cv200-poplar.dts arm64: dts: hi3798cv200: add SD card support 2017-12-20 14:59:39 +00:00
hi3798cv200.dtsi arm64: dts: hi3798cv200: add SD card support 2017-12-20 14:59:39 +00:00
hi6220-coresight.dtsi arm64: dts: hi6220: add coresight dt nodes 2017-10-10 14:58:11 +01:00
hi6220-hikey.dts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hi6220.dtsi ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00
hikey960-pinctrl.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hikey-pinctrl.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hip05-d02.dts arm64: dts: fix unit-address leading 0s 2017-10-20 00:37:56 +02:00
hip05.dtsi arm64: dts: hip05: kill hip05_hns.dtsi 2016-08-24 16:19:37 +01:00
hip06-d03.dts arm64: dts: fix unit-address leading 0s 2017-10-20 00:37:56 +02:00
hip06.dtsi arm64: dts: hisi: add refclk node to hip06 dts files for SAS 2016-11-15 10:58:41 +00:00
hip07-d05.dts arm64: dts: hisi: add PCIe host controller node for hip07 SoC 2017-08-14 15:25:39 +01:00
hip07.dtsi arm64: dts: hisi: add PCIe host controller node for hip07 SoC 2017-08-14 15:25:39 +01:00
Makefile DeviceTree for 4.15: 2017-11-14 18:25:40 -08:00