mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
Separate the probes for HSMP ACPI and platform device drivers. Provide a Kconfig option to choose between ACPI or the platform device based driver. The common code which is the core part of the HSMP driver maintained at hsmp.c is guarded by AMD_HSMP config and is selected by these two driver configs. This will be built into separate hsmp_common.ko module and acpi as hsmp_acpi and plat as amd_hsmp respectively. Also add "|| COMPILE_TEST" clause in Kconfig to get build coverage for HSMP. Signed-off-by: Suma Hegde <suma.hegde@amd.com> Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com> Link: https://lore.kernel.org/r/20241021111428.2676884-8-suma.hegde@amd.com [ij: Fixed doc to use pre-formatted text for the ACPI dump.] Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# AMD HSMP Driver
|
|
#
|
|
|
|
config AMD_HSMP
|
|
tristate
|
|
|
|
menu "AMD HSMP Driver"
|
|
depends on AMD_NB || COMPILE_TEST
|
|
|
|
config AMD_HSMP_ACPI
|
|
tristate "AMD HSMP ACPI device driver"
|
|
depends on ACPI
|
|
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"
|
|
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
|