Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp265071rwl; Thu, 30 Mar 2023 15:47:29 -0700 (PDT) X-Google-Smtp-Source: AKy350bxxJ7Ncv4niGepx7ukPl0bIznvAH94MFiO5dj/i2hVPdXfly9ggCqd8vzICo+JtaGKmzN1 X-Received: by 2002:a17:902:834a:b0:19d:1e21:7f59 with SMTP id z10-20020a170902834a00b0019d1e217f59mr21271406pln.0.1680216448830; Thu, 30 Mar 2023 15:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680216448; cv=none; d=google.com; s=arc-20160816; b=dFvAm7csuJ/gNmpW/q29rn8a5CYvGuxirhv1ncAd7Zfu+VyjPuTbDfl+D5fxxfN4TN 1GIzyDa9HiY4pQjO1/XgeQNhDoUugPm+kI+cy2rWrvZf3L73YLvJV2chiXSDVgEUANpT R2aHMKm9iAZi0JYdsRsYOAQcqc0f0ItEekCaHress3fwuUqPmxDzrPcfYgrC4B88jg8h nRM4ngCohlRRfoRnpQx7cDFCIAsiEwmhJrO83nmbaNoCsRiC47nFCuCTWkB9phQvizP6 0R7jXwgW5JfjTujxKuJRYszBzaXTR0WNJkd1NgFfpkTiqiqY8Nmb3JqscKwGyXakpE7+ AYmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=mcnJNCHDCGQ7Pzom/y/MQEMC0VEcznZRpNuHkAP16dM=; b=Pns291+cOQjQ6/VyXH/rj+qM4d74jEF9xR2nT1fdhCIldhFQc574fP9WMZu9CYPbMr /Hype7uk2dUzkap4ZnM7zyeR0s18Rv4pyRKxDoBD+HfKikPO2x2DlspBbRZoAERZieM5 vaVTG8fUx7Wj4qFsgH628m23ME/SsXJDTQE3JSYvroPsky8SPB7P6nWEgjGOJTrA0C6g dUalIW0f22csC7JDx7l+IJISqE8TONw0ggD2OJfFU5bGGPFVk1cfMhQMVALTgd5qUWQY ULXOL1qa8EhW6asn9zp2A8cifjt5kRDVWgBI0bK6iKkupDD+08yELWwGCfeegJ/Yo266 UNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h+fWFQgF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk16-20020a17090b33d000b0023ff7fa0970si3002503pjb.169.2023.03.30.15.47.15; Thu, 30 Mar 2023 15:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h+fWFQgF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjC3WpB (ORCPT + 99 others); Thu, 30 Mar 2023 18:45:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbjC3Wod (ORCPT ); Thu, 30 Mar 2023 18:44:33 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C285811EAB for ; Thu, 30 Mar 2023 15:44:29 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 4-20020a251904000000b00b7f75c3cafdso5000323ybz.16 for ; Thu, 30 Mar 2023 15:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680216269; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=mcnJNCHDCGQ7Pzom/y/MQEMC0VEcznZRpNuHkAP16dM=; b=h+fWFQgFgIewRQ/oEBbhup3NdEkI7VTVNsuOE+DEbbkPezfcqmPxt821KjIEBRuQbG l0zjD5y2da69givEVl5sGT/LrKzZ3TjBHss675g7X6otDgYpfdh+qN2+RTa4QLDKNv9g PDcFoEuUC2taY6ePkBcT1Z7N0RA9q3bwXricL/gDzEv4dXafQDmGXlIKBeyXeR2sEz8o E9FH3ufwR/fPbEciGQgLYG6zQkSaBSw0BtOfmnkR4YfxaB7/7EETD5gleyNZwM9ywyrO n+i0UKoKt4E+CXqxkN8hBn0e4jSHrCNiFCw+gjvKmBdlUar6F84Pyzh3o9haY+aKhz2B Wi9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680216269; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mcnJNCHDCGQ7Pzom/y/MQEMC0VEcznZRpNuHkAP16dM=; b=q/HijtyBwAHs0E/tmqkgYSU0as7djtXg/mL25rS9PwsX8o2mLYJ/pmuHXI0hHwt41t 4Utbw7UjtpnXqPqOJ3hBhD46iapOhLyD4g+Z6YnO/feW/S8odTd1nlMi+PwdIznBE3A7 +QwhlBTvY17hthA4N15ZBhp7jPaefCeqTrJcRkMLr9W96ZlzpwbbKQ5oUFX+s0lobtYT Mq+J9ee0SZHiNQ1ky2kkVvYLObFdzE0w4g3xSbbslziH6Xbzszv5f/0meu2jmXrT6gzJ OLgSH7X8ndwW5Hp2Sa3tC7/wyrkakH3WprKofTprD7CJoiA4+loCk8mssFr/2ZKNR/6G K9kQ== X-Gm-Message-State: AAQBX9dTRuvW81N51Y0TdtxfOj4ogjxfscbjmRa3fi5reY6zSGLm3ZsZ 8cMPWHmTizcW2sCUDCjKH5ghT5mC78PY X-Received: from davidai2.mtv.corp.google.com ([2620:15c:211:201:c162:24e8:ec5e:d520]) (user=davidai job=sendgmr) by 2002:a25:c58f:0:b0:b7d:87f:ce3e with SMTP id v137-20020a25c58f000000b00b7d087fce3emr8231840ybe.6.1680216269063; Thu, 30 Mar 2023 15:44:29 -0700 (PDT) Date: Thu, 30 Mar 2023 15:43:40 -0700 In-Reply-To: <20230330224348.1006691-1-davidai@google.com> Mime-Version: 1.0 References: <20230330224348.1006691-1-davidai@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230330224348.1006691-6-davidai@google.com> Subject: [RFC PATCH 5/6] dt-bindings: cpufreq: add bindings for virtual kvm cpufreq From: David Dai To: "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , David Dai Cc: Saravana Kannan , kernel-team@android.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree bindings for a virtual kvm cpufreq driver. Co-developed-by: Saravana Kannan Signed-off-by: Saravana Kannan Signed-off-by: David Dai --- .../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 + +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