mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

When CONFIG_HWMON is built as a loadable module, the HSMP drivers
cannot be built-in:
ERROR: modpost: "hsmp_create_sensor" [drivers/platform/x86/amd/hsmp/amd_hsmp.ko] undefined!
ERROR: modpost: "hsmp_create_sensor" [drivers/platform/x86/amd/hsmp/hsmp_acpi.ko] undefined!
Enforce that through the usual Kconfig dependnecy trick.
Fixes: 92c025db52
("platform/x86/amd/hsmp: Report power via hwmon sensors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250522144422.2824083-1-arnd@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# AMD HSMP Driver
|
|
#
|
|
|
|
config AMD_HSMP
|
|
tristate
|
|
|
|
menu "AMD HSMP Driver"
|
|
depends on AMD_NODE || COMPILE_TEST
|
|
|
|
config AMD_HSMP_ACPI
|
|
tristate "AMD HSMP ACPI device driver"
|
|
depends on ACPI
|
|
depends on HWMON || !HWMON
|
|
select AMD_HSMP
|
|
help
|
|
Host System Management Port (HSMP) interface is a mailbox interface
|
|
between the x86 core and the System Management Unit (SMU) firmware.
|
|
The driver provides a way for user space tools to monitor and manage
|
|
system management functionality on EPYC and MI300A server CPUs
|
|
from AMD.
|
|
|
|
This option supports ACPI based probing.
|
|
You may enable this, if your platform BIOS provides an ACPI object
|
|
as described in amd_hsmp.rst document.
|
|
|
|
If you choose to compile this driver as a module the module will be
|
|
called hsmp_acpi.
|
|
|
|
config AMD_HSMP_PLAT
|
|
tristate "AMD HSMP platform device driver"
|
|
depends on HWMON || !HWMON
|
|
select AMD_HSMP
|
|
help
|
|
Host System Management Port (HSMP) interface is a mailbox interface
|
|
between the x86 core and the System Management Unit (SMU) firmware.
|
|
The driver provides a way for user space tools to monitor and manage
|
|
system management functionality on EPYC and MI300A server CPUs
|
|
from AMD.
|
|
|
|
This option supports platform device based probing.
|
|
You may enable this, if your platform BIOS does not provide
|
|
HSMP ACPI object.
|
|
|
|
If you choose to compile this driver as a module the module will be
|
|
called amd_hsmp.
|
|
|
|
endmenu
|