Message ID | 20241021111428.2676884-1-suma.hegde@amd.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [v10,01/11] platform/x86/amd/hsmp: Create hsmp/ directory | expand |
On Mon, 21 Oct 2024 11:14:18 +0000, Suma Hegde wrote: > This is in preparation to splitting ACPI and platform device drivers. > Create and move hsmp specific code into its own directory, > no logical changes. > > Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while. The list of commits applied: [01/11] platform/x86/amd/hsmp: Create hsmp/ directory commit: 9df193087b9ed58a244faa516334539661fe7f11 [02/11] platform/x86/amd/hsmp: Create wrapper function init_acpi() commit: 1e1c4c0ab3088cc94a9bafcd716e4054b3344be1 [03/11] platform/x86/amd/hsmp: Convert amd_hsmp_rdwr() to a function pointer commit: d9a621ebddf2d3351db4ae5df2547b48647d4c11 [04/11] platform/x86/amd/hsmp: Move structure and macros to header file commit: 1757d2b8dcf6810d7356d8420606df5080e36260 [05/11] platform/x86/amd/hsmp: Move platform device specific code to plat.c commit: e47c018a0ee6962fe3dd895407e2c49538cc066d [06/11] platform/x86/amd/hsmp: Move ACPI code to acpi.c commit: 969f915473d8cb0e298234ee313370b6a2da69f3 [07/11] platform/x86/amd/hsmp: Change generic plat_dev name to hsmp_pdev commit: 8e75dff56e003cdd38643024c4f5f8ba227100c8 [08/11] platform/x86/amd/hsmp: Create separate ACPI, plat and common drivers commit: f9ad7a2843a65bae3fc449bd02e894dd29eb1420 [09/11] platform/x86/amd/hsmp: Use name space while exporting module symbols commit: 5ac20e4ef7b2730a9d939d41fd5ffee005443f44 [10/11] platform/x86/amd/hsmp: Use dev_groups in the driver structure commit: 4bad0cf3e6f8fa0eaba55b6290b8b66262aa4672 [11/11] platform/x86/amd/hsmp: Make hsmp_pdev static instead of global commit: 79ac20df12f46150031c86eaa86d97f605a65521 -- i.
diff --git a/MAINTAINERS b/MAINTAINERS index d6c90161c7bf..a7d79d1f7ec1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1037,7 +1037,7 @@ S: Maintained F: Documentation/arch/x86/amd_hsmp.rst F: arch/x86/include/asm/amd_hsmp.h F: arch/x86/include/uapi/asm/amd_hsmp.h -F: drivers/platform/x86/amd/hsmp.c +F: drivers/platform/x86/amd/hsmp/ AMD IOMMU (AMD-VI) M: Joerg Roedel <joro@8bytes.org> diff --git a/drivers/platform/x86/amd/Kconfig b/drivers/platform/x86/amd/Kconfig index f88682d36447..2c671cc17d63 100644 --- a/drivers/platform/x86/amd/Kconfig +++ b/drivers/platform/x86/amd/Kconfig @@ -3,22 +3,10 @@ # AMD x86 Platform Specific Drivers # +source "drivers/platform/x86/amd/hsmp/Kconfig" source "drivers/platform/x86/amd/pmf/Kconfig" source "drivers/platform/x86/amd/pmc/Kconfig" -config AMD_HSMP - tristate "AMD HSMP Driver" - depends on AMD_NB && X86_64 && ACPI - help - The driver provides a way for user space tools to monitor and manage - system management functionality on EPYC server CPUs from AMD. - - Host System Management Port (HSMP) interface is a mailbox interface - between the x86 core and the System Management Unit (SMU) firmware. - - If you choose to compile this driver as a module the module will be - called amd_hsmp. - config AMD_WBRF bool "AMD Wifi RF Band mitigations (WBRF)" depends on ACPI diff --git a/drivers/platform/x86/amd/Makefile b/drivers/platform/x86/amd/Makefile index dcec0a46f8af..96ec24c8701b 100644 --- a/drivers/platform/x86/amd/Makefile +++ b/drivers/platform/x86/amd/Makefile @@ -5,7 +5,6 @@ # obj-$(CONFIG_AMD_PMC) += pmc/ -amd_hsmp-y := hsmp.o -obj-$(CONFIG_AMD_HSMP) += amd_hsmp.o +obj-y += hsmp/ obj-$(CONFIG_AMD_PMF) += pmf/ obj-$(CONFIG_AMD_WBRF) += wbrf.o diff --git a/drivers/platform/x86/amd/hsmp/Kconfig b/drivers/platform/x86/amd/hsmp/Kconfig new file mode 100644 index 000000000000..b55d4ed9bceb --- /dev/null +++ b/drivers/platform/x86/amd/hsmp/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# AMD HSMP Driver +# + +config AMD_HSMP + tristate "AMD HSMP Driver" + depends on AMD_NB && X86_64 && ACPI + help + The driver provides a way for user space tools to monitor and manage + system management functionality on EPYC server CPUs from AMD. + + Host System Management Port (HSMP) interface is a mailbox interface + between the x86 core and the System Management Unit (SMU) firmware. + + If you choose to compile this driver as a module the module will be + called amd_hsmp. diff --git a/drivers/platform/x86/amd/hsmp/Makefile b/drivers/platform/x86/amd/hsmp/Makefile new file mode 100644 index 000000000000..fda64906a5e8 --- /dev/null +++ b/drivers/platform/x86/amd/hsmp/Makefile @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for drivers/platform/x86/amd/hsmp +# AMD HSMP Driver +# + +obj-$(CONFIG_AMD_HSMP) += amd_hsmp.o +amd_hsmp-objs := hsmp.o diff --git a/drivers/platform/x86/amd/hsmp.c b/drivers/platform/x86/amd/hsmp/hsmp.c similarity index 100% rename from drivers/platform/x86/amd/hsmp.c rename to drivers/platform/x86/amd/hsmp/hsmp.c