Skip to content

Commit 48173b0

Browse files
sumachidanandij-intel
authored andcommitted
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 <[email protected]> Reviewed-by: Naveen Krishna Chatradhi <[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 5150542 commit 48173b0

File tree

1 file changed

+3
-3
lines changed
  • drivers/platform/x86/amd

1 file changed

+3
-3
lines changed

drivers/platform/x86/amd/hsmp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ static int __init hsmp_plt_init(void)
564564
for (i = 0; i < plat_dev.num_sockets; i++) {
565565
ret = hsmp_test(i, 0xDEADBEEF);
566566
if (ret) {
567-
pr_err("HSMP is not supported on Fam:%x model:%x\n",
567+
pr_err("HSMP test message failed on Fam:%x model:%x\n",
568568
boot_cpu_data.x86, boot_cpu_data.x86_model);
569-
pr_err("Or Is HSMP disabled in BIOS ?\n");
570-
return -EOPNOTSUPP;
569+
pr_err("Is HSMP disabled in BIOS ?\n");
570+
return ret;
571571
}
572572
}
573573

0 commit comments

Comments
 (0)