diff options
author | Shyam Sundar S K <Shyam-sundar.S-k@amd.com> | 2023-12-12 04:47:04 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-12-18 15:00:16 +0300 |
commit | 10817f28e5337e5ddb873c8431d4db8d93712587 (patch) | |
tree | 044811ce182d3a5e70b2845707a04ed974f9f181 /drivers/platform/x86/amd/pmf/pmf.h | |
parent | 69e76c5af973854556625a8e156a39d1edbe8d6f (diff) | |
download | linux-10817f28e5337e5ddb873c8431d4db8d93712587.tar.xz |
platform/x86/amd/pmf: Add capability to sideload of policy binary
A policy binary is OS agnostic, and the same policies are expected to work
across the OSes. At times it becomes difficult to debug when the policies
inside the policy binaries starts to misbehave. Add a way to sideload such
policies independently to debug them via a debugfs entry.
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20231212014705.2017474-12-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/amd/pmf/pmf.h')
-rw-r--r-- | drivers/platform/x86/amd/pmf/pmf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/amd/pmf/pmf.h b/drivers/platform/x86/amd/pmf/pmf.h index 55cd2b301bbb..16999c5b334f 100644 --- a/drivers/platform/x86/amd/pmf/pmf.h +++ b/drivers/platform/x86/amd/pmf/pmf.h @@ -219,6 +219,7 @@ struct amd_pmf_dev { bool cnqf_supported; struct notifier_block pwr_src_notifier; /* Smart PC solution builder */ + struct dentry *esbin; unsigned char *policy_buf; u32 policy_sz; struct tee_context *tee_ctx; |