summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSuma Hegde <suma.hegde@amd.com>2023-10-10 12:03:10 +0000
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-10-12 16:31:52 +0300
commit48173b0003c5dc556e262e1b57c25efc36db1c6a (patch)
treeeae041fbe02aa58b8a87e249aeeb440916a9720f /drivers
parent5150542b8ec5fb561be080ed0ef3bab8598154c3 (diff)
downloadlinux-48173b0003c5dc556e262e1b57c25efc36db1c6a.tar.gz
linux-48173b0003c5dc556e262e1b57c25efc36db1c6a.tar.bz2
linux-48173b0003c5dc556e262e1b57c25efc36db1c6a.zip
platform/x86/amd/hsmp: improve the error log
1. Change print message during platform init to a more meaningful clear message. 2. Return the error code returned by hsmp_test() itself, rather then returning a common EOPNOTSUPP error. Signed-off-by: Suma Hegde <suma.hegde@amd.com> Reviewed-by: Naveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20231010120310.3464066-3-suma.hegde@amd.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/amd/hsmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/amd/hsmp.c b/drivers/platform/x86/amd/hsmp.c
index af8adfbd9369..b056a5c8654a 100644
--- a/drivers/platform/x86/amd/hsmp.c
+++ b/drivers/platform/x86/amd/hsmp.c
@@ -564,10 +564,10 @@ static int __init hsmp_plt_init(void)
for (i = 0; i < plat_dev.num_sockets; i++) {
ret = hsmp_test(i, 0xDEADBEEF);
if (ret) {
- pr_err("HSMP is not supported on Fam:%x model:%x\n",
+ pr_err("HSMP test message failed on Fam:%x model:%x\n",
boot_cpu_data.x86, boot_cpu_data.x86_model);
- pr_err("Or Is HSMP disabled in BIOS ?\n");
- return -EOPNOTSUPP;
+ pr_err("Is HSMP disabled in BIOS ?\n");
+ return ret;
}
}