Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp417207rwl; Thu, 30 Mar 2023 18:46:14 -0700 (PDT) X-Google-Smtp-Source: AK7set8zRgRy8F78UNH1hTWjL7k6hvHs7933UJSEBuipUvwrJWD+OF3lYKgltLvNN62P5wlXLZYW X-Received: by 2002:a05:6a20:5499:b0:db:7789:237e with SMTP id i25-20020a056a20549900b000db7789237emr29137628pzk.4.1680227174594; Thu, 30 Mar 2023 18:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680227174; cv=none; d=google.com; s=arc-20160816; b=b4mrMPjuvMHj9b5AdTzT4NvYomFyPxSPZyCYLLkv3SmoC443JH55NANsllglLgiGvn sb27O6zrIwFWDc2hQx3MFwXZpPRhfXPQcVVNnwznU55lned+9yfwnhhqSk5sD8eNqbMR 4zJS+JvdWypSIM/ozhckwM/iytWIpm87weXHAnBXdCTx6KSmgOL2L1OcFqs9xtkX342H mrZ9IYNRP1nb8hCDRJSQv2Y5Qm6lclr1/nHhqgdAvqXPK5V3qaiBOdo6nwNhG/wa+X1/ 2uaZE5ohej2KfUIJVSzc7geeW0636SY1CxCTShg1aDgk5VNe6XQdHSLaZUdMcFTUrgvd AIiw== 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=Ea5Lp86ouwYKqQy9XR3spimAQd5EJcVQ9d5xRaVmaG7inooGjUfOzXrMLpb5KcfuOd IYlk6Elhe9fX5JKHBqVHuS38Pod6fMrQJBcpuQ19jn5gEvMpQy7n7zDJm9iVLO3vyRvQ 1kXmvez4FitzT/4ptaf62fiWIDw7dq+lXBJRNwPmBrdryzmtns8FC8NnqSul7++Zd9Sx +6Vvxc2d/UJAXp73fTuHT2KXrxh6cBfl5+nwNvCF7XoRdxegzUeSb3TkFAIvhO/oF8JO gk4J/VbbPo+Ls+APimbVG4svstBGzmpyCmwZc7tQF4ek1FS2eP4hDJJNa4NXphVyoqQb by2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="M/Dq0K05"; 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 c20-20020a6566d4000000b0050fabb82891si1115419pgw.255.2023.03.30.18.46.03; Thu, 30 Mar 2023 18:46:14 -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="M/Dq0K05"; 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 S229832AbjCaBpW (ORCPT + 99 others); Thu, 30 Mar 2023 21:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbjCaBpR (ORCPT ); Thu, 30 Mar 2023 21:45:17 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDF7EB72 for ; Thu, 30 Mar 2023 18:44:59 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id g5-20020a25a485000000b009419f64f6afso20530031ybi.2 for ; Thu, 30 Mar 2023 18:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680227097; 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=M/Dq0K05dn7RZdEyBco1zZW8o9aWbWD0tOGYp2aROenD9B8zG0YkXNU+ypXcmNaQHy 4te0VdM4kG75aRgDJAiNeipUhfEk+8e/2sx5TS12tTIKnwevTbmQxo+lHWm8c4GqVIme 9obizM0C3ozNmYHsi7lUhQIGaKT/Br4nuLulq8WoaCHOkuqxJMA1bY+CMXCC0ew5OUZ4 1jdQ0A+60hb3BK31NK4oiYIATEqSpKYaYoTbaF3+E58KDNOd+GbOm3KRIRxTxJKRucQs fJJk6ss0ykBavcFxwDBDlUhiJ9dG27uWdOFRP7shyzkO7Uda44T+RDaamnaXQVhGcf2m ufIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680227097; 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=ok//XudeRAO+KXFA4k4pIopFVTOZk+dp+3AYAeFxdugG3vUiq7jMEk2eTafRpBDdzr LrIRIDOaQgf82n4NlAX/HexBbBj4adGPggGApSQHLy8FGQ1d0+uGxSrA2x2bK1fDgg12 ghH/bYD7RZHV7Nd3FtPCfRX6DMje2hbCvyvEcU/gxozVO3Ov43oAd65Yrq+hWoJlgEGu menbzj1t4zOGHN4j5YIwHxDuUj82PBP7qAmDK4V93tFh6VfMjk47PmflGN+cKZPRI0QH crge4DrxxcKVjj56beafVlfhMMt18Pdcuk/P8ZyGt9HTtEIRFUE7ogzPsE6YzvhDAiLa QrZA== X-Gm-Message-State: AAQBX9eQA6XEzknnsNR/ZpCFb3/Yo+lqeO9BRYzBW01GWPEGgpRD7vT2 TpWI1B98S4mWJVyW9fpCGHZiGvWzxjzq X-Received: from davidai2.mtv.corp.google.com ([2620:15c:211:201:c162:24e8:ec5e:d520]) (user=davidai job=sendgmr) by 2002:a25:344:0:b0:b27:4632:f651 with SMTP id 65-20020a250344000000b00b274632f651mr12517637ybd.3.1680227097054; Thu, 30 Mar 2023 18:44:57 -0700 (PDT) Date: Thu, 30 Mar 2023 18:43:49 -0700 In-Reply-To: <20230331014356.1033759-1-davidai@google.com> Mime-Version: 1.0 References: <20230331014356.1033759-1-davidai@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230331014356.1033759-6-davidai@google.com> Subject: [RFC PATCH v2 5/6] dt-bindings: cpufreq: add bindings for virtual kvm cpufreq From: David Dai To: "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Paolo Bonzini , Jonathan Corbet , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , David Dai Cc: Saravana Kannan , kernel-team@android.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev 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