[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230330224348.1006691-6-davidai@google.com>
Date: Thu, 30 Mar 2023 15:43:40 -0700
From: David Dai <davidai@...gle.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>,
Viresh Kumar <viresh.kumar@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
David Dai <davidai@...gle.com>
Cc: Saravana Kannan <saravanak@...gle.com>, kernel-team@...roid.com,
linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 5/6] dt-bindings: cpufreq: add bindings for virtual kvm cpufreq
Add devicetree bindings for a virtual kvm cpufreq driver.
Co-developed-by: Saravana Kannan <saravanak@...gle.com>
Signed-off-by: Saravana Kannan <saravanak@...gle.com>
Signed-off-by: David Dai <davidai@...gle.com>
---
.../bindings/cpufreq/cpufreq-virtual-kvm.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-virtual-kvm.yaml
diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-virtual-kvm.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-virtual-kvm.yaml
new file mode 100644
index 000000000000..31e64558a7f1
--- /dev/null
+++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-virtual-kvm.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/cpufreq/cpufreq-virtual-kvm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Virtual KVM CPUFreq
+
+maintainers:
+ - David Dai <davidai@...gle.com>
+
+description: |
+
+ KVM CPUFreq is a virtualized driver in guest kernels that sends utilization
+ of its vCPUs as a hint to the host. The host uses hint to schedule vCPU
+ threads and select CPU frequency. It enables accurate Per-Entity Load
+ Tracking for tasks running in the guest by querying host CPU frequency
+ unless a virtualized FIE exists(Like AMUs).
+
+properties:
+ compatible:
+ const: virtual,kvm-cpufreq
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ cpufreq {
+ compatible = "virtual,kvm-cpufreq";
+ };
+
+ };
--
2.40.0.348.gf938b09366-goog
Powered by blists - more mailing lists