diff options
| author | Shyam Sundar S K <[email protected]> | 2025-03-05 04:58:41 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-03-05 11:33:38 +0000 |
| commit | 9ba93cb8212d62bccd8b41b8adb6656abf37280a (patch) | |
| tree | d269755d86d977caaf6a4b54fe2e81ef8e646e32 | |
| parent | platform/x86/intel/vsec: Add Diamond Rapids support (diff) | |
| download | kernel-9ba93cb8212d62bccd8b41b8adb6656abf37280a.tar.gz kernel-9ba93cb8212d62bccd8b41b8adb6656abf37280a.zip | |
platform/x86/amd/pmf: Propagate PMF-TA return codes
In the amd_pmf_invoke_cmd_init() function within the PMF driver ensure
that the actual result from the PMF-TA is returned rather than a generic
EIO. This change allows for proper handling of errors originating from the
PMF-TA.
Reviewed-by: Mario Limonciello <[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]>
| -rw-r--r-- | drivers/platform/x86/amd/pmf/tee-if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd/pmf/tee-if.c b/drivers/platform/x86/amd/pmf/tee-if.c index 8c88769ea1d8..b404764550c4 100644 --- a/drivers/platform/x86/amd/pmf/tee-if.c +++ b/drivers/platform/x86/amd/pmf/tee-if.c @@ -323,7 +323,7 @@ static int amd_pmf_start_policy_engine(struct amd_pmf_dev *dev) } else { dev_err(dev->dev, "ta invoke cmd init failed err: %x\n", res); dev->smart_pc_enabled = false; - return -EIO; + return res; } return 0; |
