From patchwork Thu Oct 6 15:38:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1687054 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mjwbs4ZyRz20Pd for ; Fri, 7 Oct 2022 02:39:37 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ogSy9-0002Ui-AO; Thu, 06 Oct 2022 15:39:29 +0000 Received: from mail-pj1-f43.google.com ([209.85.216.43]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ogSy7-0002Rf-Ac for kernel-team@lists.ubuntu.com; Thu, 06 Oct 2022 15:39:27 +0000 Received: by mail-pj1-f43.google.com with SMTP id fw14so2062909pjb.3 for ; Thu, 06 Oct 2022 08:39:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date; bh=A1bFgnG3momcvA0bgrKLIZY0I0AcDmB/7KMmHQRYyic=; b=ZuLu47IRg90xhjoBOd9v6TjmwW1Y802ncXTBZEnu8fHbpQwdWPybqMjT7c+jgDDHbb mIX/tsktS+3cNSESjGBwHd1G7Seeptea7vAE+5Wag66n0QLHdVhJFCmtsNr6AiorYf47 IoIL4S5Bwfxofd+nAElQm8VDrhjqB7M1i2vaA7nUJdO79mDy2JbupPfMyBp9Y1MgIPAb 3RnzV8Pw6H4QRpAY0wBmEtTQl/1qHvKSubX29y3OXLbgFnsrbROwgMAaIYAIQCSqchnO oJdQjUO/4vx8CKIiYe/lpNnfodcgkVURZHOEMfMayzGVbdHZPStcPfMaCDiYUiZtp5// llYg== X-Gm-Message-State: ACrzQf0ZqdLYQAGjsDyhtVTs4JYI2JUeeCuxkwBCxJkpIPZJZjqvnVPF l4RLhm4bePXiBY0IXHizF/rqHg7DjMo= X-Google-Smtp-Source: AMsMyM7iWS/GVEX/atDpVJWZeCnaBoHYRCe+eDkC76UkdZQ5Rky9jkbvTi9WMStKVBvqS8hRSmnWIA== X-Received: by 2002:a17:902:ef89:b0:17f:8097:83bb with SMTP id iz9-20020a170902ef8900b0017f809783bbmr105854plb.20.1665070764995; Thu, 06 Oct 2022 08:39:24 -0700 (PDT) Received: from localhost.localdomain (61-227-97-62.dynamic-ip.hinet.net. [61.227.97.62]) by smtp.gmail.com with ESMTPSA id t7-20020a170902e84700b0017829f986a5sm12723872plg.133.2022.10.06.08.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 08:39:24 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/3][SRU][OEM-6.0/Unstable] Documentation/ABI/testing/sysfs-amd-pmf: Add ABI doc for AMD PMF Date: Thu, 6 Oct 2022 23:38:34 +0800 Message-Id: <20221006153834.573628-4-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221006153834.573628-1-vicamo.yang@canonical.com> References: <20221006153834.573628-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.43; envelope-from=vicamo@gmail.com; helo=mail-pj1-f43.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Shyam Sundar S K BugLink: https://bugs.launchpad.net/bugs/1991609 AMD PMF driver provides the flexibility to turn "on" or "off" CnQF feature (introduced in the earlier patch). Add corresponding ABI documentation for the new sysfs node and also update MAINTAINERS file with this new information Reviewed-by: Hans de Goede Signed-off-by: Shyam Sundar S K Link: https://lore.kernel.org/r/20220922131202.56529-4-Shyam-sundar.S-k@amd.com Signed-off-by: Hans de Goede (cherry picked from commit 1590ac2c6615329d30e25753e03c295cdaf2ae44 linux-next) Signed-off-by: You-Sheng Yang (vicamo) --- Documentation/ABI/testing/sysfs-amd-pmf | 13 +++++++++++++ MAINTAINERS | 1 + 2 files changed, 14 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-amd-pmf diff --git a/Documentation/ABI/testing/sysfs-amd-pmf b/Documentation/ABI/testing/sysfs-amd-pmf new file mode 100644 index 000000000000..7fc0e1c2b76b --- /dev/null +++ b/Documentation/ABI/testing/sysfs-amd-pmf @@ -0,0 +1,13 @@ +What: /sys/devices/platform/*/cnqf_enable +Date: September 2022 +Contact: Shyam Sundar S K +Description: Reading this file tells if the AMD Platform Management(PMF) + Cool n Quiet Framework(CnQF) feature is enabled or not. + + This feature is not enabled by default and gets only turned on + if OEM BIOS passes a "flag" to PMF ACPI function (index 11 or 12) + or in case the user writes "on". + + To turn off CnQF user can write "off" to the sysfs node. + Note: Systems that support auto mode will not have this sysfs file + available. diff --git a/MAINTAINERS b/MAINTAINERS index 5c50ea8b8389..c3c29610526f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1038,6 +1038,7 @@ AMD PMF DRIVER M: Shyam Sundar S K L: platform-driver-x86@vger.kernel.org S: Maintained +F: Documentation/ABI/testing/sysfs-amd-pmf F: drivers/platform/x86/amd/pmf/ AMD HSMP DRIVER