Loading Documentation/devicetree/bindings/arm/msm/kraitbw-l2pm.txt 0 → 100644 +18 −0 Original line number Diff line number Diff line MSM Krait L2 performance monitor counters for bandwidth measurement device krait-l2pm is a device that represents the Krait L2 PM counters that can be used to measure the bandwidth of read/write traffic from the Krait CPU subsystem. Required properties: - compatible: Must be "qcom,kraitbw-l2pm" - interrupts: Lists the L2 PM counter overflow IRQ. - qcom,bytes-per-beat: The number of bytes transferred in one data beat from the Krait CPU subsystem. Example: qcom,kraitbw-l2pm { compatible = "qcom,kraitbw-l2pm"; interrupts = <0 1 1>; qcom,bytes-per-beat = <8>; }; arch/arm/mach-msm/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -275,6 +275,7 @@ config MSM_KRAIT_TBB_ABORT_HANDLER config ARCH_MSM_KRAIT bool select ARM_L1_CACHE_SHIFT_6 select DEVFREQ_GOV_MSM_CPUBW_HWMON config MSM_CORTEX_A7 bool Loading arch/arm/mach-msm/devfreq_cpubw.c +2 −0 Original line number Diff line number Diff line Loading @@ -113,7 +113,9 @@ static struct devfreq_governor_data gov_data[] = { { .name = "powersave" }, { .name = "userspace" }, { .name = "msm_cpufreq" }, { .name = "cpubw_hwmon", .data = &gov_ab }, }; struct devfreq_dev_profile cpubw_profile = { .polling_ms = 50, .target = cpubw_target, Loading drivers/devfreq/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,17 @@ config DEVFREQ_GOV_MSM_CPUFREQ to DDR BW vote based on the current CPU frequency. This governor is unlikely to be useful for non-MSM devices. config DEVFREQ_GOV_MSM_CPUBW_HWMON tristate "HW monitor based governor for CPUBW" depends on ARCH_MSM_KRAIT help HW monitor based governor for CPU to DDR bandwidth voting. This governor currently supports only Krait L2 PM counters. Sets the CPU BW vote by using L2 PM counters to monitor the Krait's use of DDR. Since this governor uses some of the PM counters it can conflict with existing profiling tools. This governor is unlikely to be useful for other devices. comment "DEVFREQ Drivers" config ARM_EXYNOS4_BUS_DEVFREQ Loading drivers/devfreq/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ obj-$(CONFIG_DEVFREQ_GOV_POWERSAVE) += governor_powersave.o obj-$(CONFIG_DEVFREQ_GOV_USERSPACE) += governor_userspace.o obj-$(CONFIG_DEVFREQ_GOV_MSM_ADRENO_TZ) += governor_msm_adreno_tz.o obj-$(CONFIG_DEVFREQ_GOV_MSM_CPUFREQ) += governor_msm_cpufreq.o obj-$(CONFIG_DEVFREQ_GOV_MSM_CPUBW_HWMON) += governor_cpubw_hwmon.o # DEVFREQ Drivers obj-$(CONFIG_ARM_EXYNOS4_BUS_DEVFREQ) += exynos4_bus.o Loading
Documentation/devicetree/bindings/arm/msm/kraitbw-l2pm.txt 0 → 100644 +18 −0 Original line number Diff line number Diff line MSM Krait L2 performance monitor counters for bandwidth measurement device krait-l2pm is a device that represents the Krait L2 PM counters that can be used to measure the bandwidth of read/write traffic from the Krait CPU subsystem. Required properties: - compatible: Must be "qcom,kraitbw-l2pm" - interrupts: Lists the L2 PM counter overflow IRQ. - qcom,bytes-per-beat: The number of bytes transferred in one data beat from the Krait CPU subsystem. Example: qcom,kraitbw-l2pm { compatible = "qcom,kraitbw-l2pm"; interrupts = <0 1 1>; qcom,bytes-per-beat = <8>; };
arch/arm/mach-msm/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -275,6 +275,7 @@ config MSM_KRAIT_TBB_ABORT_HANDLER config ARCH_MSM_KRAIT bool select ARM_L1_CACHE_SHIFT_6 select DEVFREQ_GOV_MSM_CPUBW_HWMON config MSM_CORTEX_A7 bool Loading
arch/arm/mach-msm/devfreq_cpubw.c +2 −0 Original line number Diff line number Diff line Loading @@ -113,7 +113,9 @@ static struct devfreq_governor_data gov_data[] = { { .name = "powersave" }, { .name = "userspace" }, { .name = "msm_cpufreq" }, { .name = "cpubw_hwmon", .data = &gov_ab }, }; struct devfreq_dev_profile cpubw_profile = { .polling_ms = 50, .target = cpubw_target, Loading
drivers/devfreq/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,17 @@ config DEVFREQ_GOV_MSM_CPUFREQ to DDR BW vote based on the current CPU frequency. This governor is unlikely to be useful for non-MSM devices. config DEVFREQ_GOV_MSM_CPUBW_HWMON tristate "HW monitor based governor for CPUBW" depends on ARCH_MSM_KRAIT help HW monitor based governor for CPU to DDR bandwidth voting. This governor currently supports only Krait L2 PM counters. Sets the CPU BW vote by using L2 PM counters to monitor the Krait's use of DDR. Since this governor uses some of the PM counters it can conflict with existing profiling tools. This governor is unlikely to be useful for other devices. comment "DEVFREQ Drivers" config ARM_EXYNOS4_BUS_DEVFREQ Loading
drivers/devfreq/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ obj-$(CONFIG_DEVFREQ_GOV_POWERSAVE) += governor_powersave.o obj-$(CONFIG_DEVFREQ_GOV_USERSPACE) += governor_userspace.o obj-$(CONFIG_DEVFREQ_GOV_MSM_ADRENO_TZ) += governor_msm_adreno_tz.o obj-$(CONFIG_DEVFREQ_GOV_MSM_CPUFREQ) += governor_msm_cpufreq.o obj-$(CONFIG_DEVFREQ_GOV_MSM_CPUBW_HWMON) += governor_cpubw_hwmon.o # DEVFREQ Drivers obj-$(CONFIG_ARM_EXYNOS4_BUS_DEVFREQ) += exynos4_bus.o