]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/amd/hsmp: Enhance the print messages to prevent confusion
authorSuma Hegde <suma.hegde@amd.com>
Wed, 9 Jul 2025 10:54:13 +0000 (10:54 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 9 Jul 2025 12:21:50 +0000 (15:21 +0300)
commitbde430fb669d03a0025fd90485dc26acfafd9b4f
treeecd086d2700347f6d910919712906eb1006e031d
parent428f6f3a56ac85f37a07a3fe5149b593185d5c4c
platform/x86/amd/hsmp: Enhance the print messages to prevent confusion

When the HSMP ACPI device is present, loading the amd_hsmp.ko
module incorrectly displays the message "HSMP is not supported on
Family:%x model:%x\n" despite being supported by the hsmp_acpi.ko
module, leading to confusion.

To address this issue, relocate the acpi_dev_present() check to the
beginning of the hsmp_plt_init() and revise the print message to
better reflect the current support status.

Additionally, add more error messages in the error paths and debug
messages to indicate successful probing for both hsmp_acpi.ko
and amd_hsmp.ko modules.

Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Link: https://lore.kernel.org/r/20250709105413.2487851-1-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>
drivers/platform/x86/amd/hsmp/acpi.c
drivers/platform/x86/amd/hsmp/plat.c