PM / devfreq: Add support for QCOM devfreq firmware
Subsystems (2)
PATCH v2 1/1 PM / devfreq: Add support for QCOM devfreq firmware
The firmware present in some QCOM chipsets offloads the steps necessary for changing the frequency of some devices (Eg: L3). This driver implements the devfreq interface for this firmware so that various governors could be used to scale the frequency of these devices.
Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt create mode 100644 drivers/devfreq/devfreq_qcom_fw.c
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +41 -0
@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmware that +offloads the steps for frequency switching. It provides a table of +supported frequencies and a register to request one of the supported +freqencies. + +The qcom,devfreq-fw represents this firmware as a device. Sometimes, +multiple entities want to vote on the frequency request that is sent to the +firmware. The qcom,devfreq-fw-voter represents these voters as child +devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or "qcom,devfreq-fw-voter" +Only for qcom,devfreq-fw: +- reg: Pairs of physical base addresses and region sizes of + memory mapped registers. +- reg-names: Names of the bases for the above registers. + Required register regions are: + - "en-base": address of register to check if the + firmware is enabled. + - "ftbl-base": address region for the frequency + table. + - "perf-base": address of register to request a + frequency. + +Example: + + qcom,devfreq-l3 { + compatible = "qcom,devfreq-fw"; + reg-names = "en-base", "ftbl-base", "perf-base"; + reg = <0x18321000 0x4>, <0x18321110 0x600>, <0x18321920 0x4>; + + qcom,cpu0-l3 { + compatible = "qcom,devfreq-fw-voter"; + }; + + qcom,cpu4-l3 { + compatible = "qcom,devfreq-fw-voter"; + }; + };
drivers/devfreq/Kconfig +14 -0
@@ -121,6 +121,20 @@ config ARM_RK3399_DMC_DEVFREQ It sets the frequency for the memory controller and reads the usage counts from hardware. +config ARM_QCOM_DEVFREQ_FW + bool "Qualcomm Technologies Inc. DEVFREQ FW driver" + depends on ARCH_QCOM + select DEVFREQ_GOV_PERFORMANCE + select DEVFREQ_GOV_POWERSAVE + select DEVFREQ_GOV_USERSPACE + default n + help + The firmware present in some QCOM chipsets offloads the steps + necessary for changing the frequency of some devices (Eg: L3). This + driver implements the devfreq interface for this firmware so that + various governors could be used to scale the frequency of these + devices. + source "drivers/devfreq/event/Kconfig" endif # PM_DEVFREQ
drivers/devfreq/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_DEVFREQ_GOV_CPUFREQ) += governor_cpufreq.o obj-$(CONFIG_ARM_EXYNOS_BUS_DEVFREQ) += exynos-bus.o obj-$(CONFIG_ARM_RK3399_DMC_DEVFREQ) += rk3399_dmc.o obj-$(CONFIG_ARM_TEGRA_DEVFREQ) += tegra-devfreq.o +obj-$(CONFIG_ARM_QCOM_DEVFREQ_FW) += devfreq_qcom_fw.o # DEVFREQ Event Drivers obj-$(CONFIG_PM_DEVFREQ_EVENT) += event/
drivers/devfreq/devfreq_qcom_fw.c new file +330 -0
330 lines not on this page · raw message
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerQuoted 30 lines · Saravana Kannan
The firmware present in some QCOM chipsets offloads the steps necessary for changing the frequency of some devices (Eg: L3). This driver implements the devfreq interface for this firmware so that various governors could be used to scale the frequency of these devices.
Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
Signed-off-by Saravana Kannan <[email protected]>--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt create mode 100644 drivers/devfreq/devfreq_qcom_fw.cDocumentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +4
-0@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmware that +offloads the steps for frequency switching. It provides a table of
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 14
Quoted 10 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +10
-0+supported frequencies and a register to request one of the supported +freqencies. + +The qcom,devfreq-fw represents this firmware as a device. Sometimes, +multiple entities want to vote on the frequency request that is sent to the +firmware. The qcom,devfreq-fw-voter represents these voters as child +devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or "qcom,devfreq-fw-voter"
No versions of firmware?
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 17
Quoted 3 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+Only for qcom,devfreq-fw: +- reg: Pairs of physical base addresses and region sizes of + memory mapped registers.
Registers? Is this firmware or h/w block?
Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +8
-0+- reg-names: Names of the bases for the above registers. + Required register regions are: + - "en-base": address of register to check if the + firmware is enabled. + - "ftbl-base": address region for the frequency + table. + - "perf-base": address of register to request a + frequency.
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 35
Quoted 10 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +10
-0+ +Example: + + qcom,devfreq-l3 { + compatible = "qcom,devfreq-fw"; + reg-names = "en-base", "ftbl-base", "perf-base"; + reg = <0x18321000 0x4>, <0x18321110 0x600>, <0x18321920 0x4>; + + qcom,cpu0-l3 { + compatible = "qcom,devfreq-fw-voter";
There's no point in these nodes. They don't have any properties or resources.
Quoted 6 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +6
-0+ }; + + qcom,cpu4-l3 { + compatible = "qcom,devfreq-fw-voter"; + }; + };
Quoted 35 lines · Rob Herring
Quoted 34 lines · Saravana Kannan
The firmware present in some QCOM chipsets offloads the steps necessary for changing the frequency of some devices (Eg: L3). This driver implements the devfreq interface for this firmware so that various governors could be used to scale the frequency of these devices.
Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
Signed-off-by Saravana Kannan <[email protected]>--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+)create mode 100644
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txtcreate mode 100644drivers/devfreq/devfreq_qcom_fw.cDocumentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +8
-0@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmware that +offloads the steps for frequency switching. It provides a table of +supported frequencies and a register to request one of the supported +freqencies. + +The qcom,devfreq-fw represents this firmware as a device. Sometimes,
Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 14
Quoted 6 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +6
-0+multiple entities want to vote on the frequency request that is sent to the +firmware. The qcom,devfreq-fw-voter represents these voters as child +devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or "qcom,devfreq-fw-voter"No versions of firmware?
Sure, I can add a v1. Right now the interface has always been identical. I thought if it changed in the future I'll add -v2.
Quoted 6 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 17
Quoted 4 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+Only for qcom,devfreq-fw: +- reg: Pairs of physical base addresses and region sizes of + memory mapped registers.Registers? Is this firmware or h/w block?
It's a HW block that has its own firmware.
Quoted 14 lines
Quoted 14 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +13
-0+- reg-names: Names of the bases for the above registers. + Required register regions are: + - "en-base": address of register to check if the + firmware is enabled. + - "ftbl-base": address region for the frequency + table. + - "perf-base": address of register to request a + frequency. + +Example: + + qcom,devfreq-l3 { + compatible = "qcom,devfreq-fw";
Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 35
Quoted 5 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +5
-0+ reg-names = "en-base", "ftbl-base", "perf-base"; + reg = <0x18321000 0x4>, <0x18321110 0x600>, <0x18321920 0x4>; + + qcom,cpu0-l3 { + compatible = "qcom,devfreq-fw-voter";There's no point in these nodes. They don't have any properties or resources.
These nodes decide how many voters this device supports. Each voter would be a devfreq node that will have its own governor set. For example, one of them would use this governor:
http://lkml.iu.edu/hypermail/linux/kernel/1805.2/02474.html
You can also attach different devfreq-event devices to each one of these voter devices based on what events you want to use for scaling each voter. So, the devices are definitely needed in the larger context.
Thanks,
Saravana
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerQuoted 58 lines · Saravana Kannan
Quoted 47 lines · Rob Herring
Quoted 45 lines · Saravana Kannan
The firmware present in some QCOM chipsets offloads the steps necessary for
changing the frequency of some devices (Eg: L3). This driver implements the
devfreq interface for this firmware so that various governors could be used
to scale the frequency of these devices.Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
Signed-off-by Saravana Kannan <[email protected]>--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+)create mode 100644
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt
create mode 100644drivers/devfreq/devfreq_qcom_fw.cdiff --git
a/Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txtb/Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txtnew file mode 100644
index 0000000..f882a0bDocumentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +9
-0@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmware that +offloads the steps for frequency switching. It provides a table of +supported frequencies and a register to request one of the supported +freqencies. + +The qcom,devfreq-fw represents this firmware as a device. Sometimes, +multiple entities want to vote on the frequency request that is sent tothe
+firmware. The qcom,devfreq-fw-voter represents these voters as childQuoted 8 lines
Quoted 5 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +4
-0+devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or"qcom,devfreq-fw-voter"
No versions of firmware?
Quoted 2 lines
Sure, I can add a v1. Right now the interface has always been identical. I thought if it changed in the future I'll add -v2.
Sounds like you are making up version numbers. If you don't have real h/w or firmware version numbers, then use an SoC specific compatible string.
Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
+Only for qcom,devfreq-fw:
+- reg: Pairs of physical base addresses and region sizes
of
+ memory mapped registers.Registers? Is this firmware or h/w block?
It's a HW block that has its own firmware.
So you have 2 things that could change: the h/w interface and the firmware version. Make sure the compatible string(s) is specific enough for the OS to know the exact combination.
Quoted 25 lines
Quoted 15 lines
Quoted 15 lines
+- reg-names: Names of the bases for the above registers.
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +14
-0+ Required register regions are: + - "en-base": address of register to check if the + firmware is enabled. + - "ftbl-base": address region for the frequency + table. + - "perf-base": address of register to request a + frequency. + +Example: + + qcom,devfreq-l3 { + compatible = "qcom,devfreq-fw"; + reg-names = "en-base", "ftbl-base", "perf-base"; + reg = <0x18321000 0x4>, <0x18321110 0x600>, <0x18321920Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 35
Quoted 4 lines
0x4>;Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+ + qcom,cpu0-l3 { + compatible = "qcom,devfreq-fw-voter";There's no point in these nodes. They don't have any properties or resources.
Quoted 8 lines
These nodes decide how many voters this device supports. Each voter would be a devfreq node that will have its own governor set. For example, one of them would use this governor:
http://lkml.iu.edu/hypermail/linux/kernel/1805.2/02474.htmlYou can also attach different devfreq-event devices to each one of these voter devices based on what events you want to use for scaling each voter. So, the devices are definitely needed in the larger context.
Sorry, I still don't understand.
Rob
As mentioned on the thread that add firmware based cpufreq support, IMO these 2 bindings look too similar and can be combined or at-least aligned.
Quoted 5 lines · Saravana Kannan
The firmware present in some QCOM chipsets offloads the steps necessary for changing the frequency of some devices (Eg: L3). This driver implements the devfreq interface for this firmware so that various governors could be used to scale the frequency of these devices.
Is this firmware the same one which controls the CPUFreq described in the other thread adding cpufreq support ?
Quoted 21 lines
Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
Signed-off-by Saravana Kannan <[email protected]>--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt create mode 100644 drivers/devfreq/devfreq_qcom_fw.cDocumentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +0
-0
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 8
Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +8
-0@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmware that +offloads the steps for frequency switching. It provides a table of +supported frequencies and a register to request one of the supported +freqencies. + +The qcom,devfreq-fw represents this firmware as a device. Sometimes,
As a whole or just a part of it ? I am getting an impression that this firmware is divided into 'n' different pieces and each of them is represented as a separate device.
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 14
Quoted 6 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +6
-0+multiple entities want to vote on the frequency request that is sent to the +firmware. The qcom,devfreq-fw-voter represents these voters as child +devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or "qcom,devfreq-fw-voter"
If this is the same firmware, name it after. What do you need one name per subsystem in Linux for the same firmware ?
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 23
Quoted 9 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +9
-0+Only for qcom,devfreq-fw: +- reg: Pairs of physical base addresses and region sizes of + memory mapped registers. +- reg-names: Names of the bases for the above registers. + Required register regions are: + - "en-base": address of register to check if the + firmware is enabled. + - "ftbl-base": address region for the frequency + table.
It's called "lut-base" in the cpufreq binding and that's the only difference I see.
Quoted 3 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+ - "perf-base": address of register to request a + frequency. +
[...]
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt
Quoted 7 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +7
-0+ + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lut-base"); + if (!res) { + dev_err(dev, "Unable to find lut-base!\n"); + return -EINVAL; + } +
...but in the binding it's called "ftbl-base"
--
Regards,
Sudeep
On 2018-05-23 07:39, Rob Herring wrote:
Reviving an old thread. Sorry about the late reply. Got busy.
Quoted 78 lines · Saravana Kannan
Quoted 63 lines · Rob Herring
Quoted 52 lines · Saravana Kannan
Quoted 50 lines
The firmware present in some QCOM chipsets offloads the steps necessary for
changing the frequency of some devices (Eg: L3). This driver implements the
devfreq interface for this firmware so that various governors could be used
to scale the frequency of these devices.Each client (say cluster 0 and cluster 1) that wants to vote for a particular device's frequency (say, L3 frequency) is represented as a separate voter device (qcom,devfreq-fw-voter) that's a child of the firmware device (qcom,devfreq-fw).
Signed-off-by Saravana Kannan <[email protected]>--- .../bindings/devfreq/devfreq-qcom-fw.txt | 41 +++ drivers/devfreq/Kconfig | 14 + drivers/devfreq/Makefile | 1 + drivers/devfreq/devfreq_qcom_fw.c | 330 +++++++++++++++++++++ 4 files changed, 386 insertions(+)create mode 100644
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt
create mode 100644drivers/devfreq/devfreq_qcom_fw.cdiff --git
a/Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txtb/Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txtnew file mode 100644
index 0000000..f882a0bDocumentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0@@ -0,0 +1,41 @@ +QCOM Devfreq firmware device + +Some Qualcomm Technologies, Inc. (QTI) chipsets have a firmwarethat
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +2
-0+offloads the steps for frequency switching. It provides a table of +supported frequencies and a register to request one of thesupported
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+freqencies. + +The qcom,devfreq-fw represents this firmware as a device.Sometimes,
+multiple entities want to vote on the frequency request that is sent to
the
+firmware. The qcom,devfreq-fw-voter represents these voters as childQuoted 8 lines
Quoted 5 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +4
-0+devices of the corresponding qcom,devfreq-fw device. + +Required properties: +- compatible: Must be "qcom,devfreq-fw" or"qcom,devfreq-fw-voter"
No versions of firmware?
Quoted 2 lines
Sure, I can add a v1. Right now the interface has always been identical. I thought if it changed in the future I'll add -v2.
Sounds like you are making up version numbers. If you don't have real h/w or firmware version numbers, then use an SoC specific compatible string.
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
+Only for qcom,devfreq-fw:
+- reg: Pairs of physical base addresses and region
sizes
of
+ memory mapped registers.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Registers? Is this firmware or h/w block?
It's a HW block that has its own firmware.
So you have 2 things that could change: the h/w interface and the firmware version. Make sure the compatible string(s) is specific enough for the OS to know the exact combination.
For all practical purposes, the FW is opaque to the OS. It doesn't affect anything the OS can do with the IP block. So, the HW version is what matters. I'll figure out the actual HW version and use that.
Quoted 34 lines
Quoted 34 lines
Quoted 19 lines
Quoted 19 lines
+- reg-names: Names of the bases for the above registers.
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +2
-0+ Required register regions are: + - "en-base": address of register to check ifthe
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +2
-0+ firmware is enabled. + - "ftbl-base": address region for thefrequency
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +2
-0+ table. + - "perf-base": address of register torequest a
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +8
-0+ frequency. + +Example: + + qcom,devfreq-l3 { + compatible = "qcom,devfreq-fw"; + reg-names = "en-base", "ftbl-base", "perf-base"; + reg = <0x18321000 0x4>, <0x18321110 0x600>,<
0x18321920Quoted 8 lines
Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt line 35
Quoted 4 lines
0x4>;Documentation/devicetree/bindings/devfreq/devfreq-qcom-fw.txt new file +3
-0+ + qcom,cpu0-l3 { + compatible = "qcom,devfreq-fw-voter";There's no point in these nodes. They don't have any properties or resources.
These nodes decide how many voters this device supports. Each voter would be a devfreq node that will have its own governor set. For example, one of them would use this governor:
http://lkml.iu.edu/hypermail/linux/kernel/1805.2/02474.html
Quoted 5 lines
Quoted 3 lines
You can also attach different devfreq-event devices to each one of these voter devices based on what events you want to use for scaling each voter. So, the devices are definitely needed in the larger context.
Sorry, I still don't understand.
Ok, let me try to explain. Let's take L3 as an example. Different other IPs might have different requirements on the L3 frequency. For example, little CPUs might want L3 to run at 400 MHz, big CPUs might want L3 to run at 1000 MHz, GPU or some other peripheral might want L3 to run at 800 MHz. The L3 freq needs to be set to max of these requests -- in this case 1000 MHz. I'm trying to represent each of these "votes" on L3 as a device. Once I register these with devfreq, each of these devices will have a devfreq device created for them (devfreq framework does this) and we can have different governors for each of these voters. So, I need these child devices to represent each voter. There's no getting around needing one device per voter and having to aggregate their votes into a parent device.
Does that make sense?
Thanks,
Saravana