Skip to content

Commit 233f78e

Browse files
Shyam Sundar S Kij-intel
authored andcommitted
platform/x86/amd/pmf: Disable debugfs support for querying power thermals
The GET interface to receive the active power thermal information from the PMFW has been deprecated. Hence drop the debugfs support from version2 onwards. Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Co-developed-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Shyam Sundar S K <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent a33e9e1 commit 233f78e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/platform/x86/amd/pmf/core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ static void amd_pmf_dbgfs_unregister(struct amd_pmf_dev *dev)
113113
static void amd_pmf_dbgfs_register(struct amd_pmf_dev *dev)
114114
{
115115
dev->dbgfs_dir = debugfs_create_dir("amd_pmf", NULL);
116-
debugfs_create_file("current_power_limits", 0644, dev->dbgfs_dir, dev,
117-
&current_power_limits_fops);
116+
if (dev->pmf_if_version == PMF_IF_V1)
117+
debugfs_create_file("current_power_limits", 0644, dev->dbgfs_dir, dev,
118+
&current_power_limits_fops);
118119
}
119120

120121
int amd_pmf_get_power_source(void)

drivers/platform/x86/amd/pmf/pmf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ struct cookie_header {
8787
#define TA_OUTPUT_RESERVED_MEM 906
8888
#define MAX_OPERATION_PARAMS 4
8989

90+
#define PMF_IF_V1 1
91+
9092
/* AMD PMF BIOS interfaces */
9193
struct apmf_verify_interface {
9294
u16 size;

0 commit comments

Comments
 (0)