cxl: remove CONFIG_CXL_PMU entry in drivers/cxl/Kconfig
PATCH 1/1 cxl: remove CONFIG_CXL_PMU entry in drivers/cxl/Kconfig
Commit 5d7107c72796 ("perf: CXL Performance Monitoring Unit driver") added the config entries for CXL_PMU in drivers/cxl/Kconfig and drivers/perf/Kconfig, so it can be toggled from multiple locations:
[1] Device Drivers
-> PCI support
-> CXL (Compute Expres Link) Devices
-> CXL Performance Monitoring Unit[2] Device Drivers
-> Performance monitor support
-> CXL Performance Monitoring UnitThis complicates things, and nobody else does this.
I kept the one in drivers/perf/Kconfig because CONFIG_CXL_PMU controls the compilation of drivers/perf/cxl_pmu.c.
---
drivers/cxl/Kconfig | 13 ------------- 1 file changed, 13 deletions(-)
drivers/cxl/Kconfig +0 -13
@@ -144,17 +144,4 @@ config CXL_REGION_INVALIDATION_TEST If unsure, or if this kernel is meant for production environments, say N. -config CXL_PMU - tristate "CXL Performance Monitoring Unit" - default CXL_BUS - depends on PERF_EVENTS - help - Support performance monitoring as defined in CXL rev 3.0 - section 13.2: Performance Monitoring. CXL components may have - one or more CXL Performance Monitoring Units (CPMUs). - - Say 'y/m' to enable a driver that will attach to performance - monitoring units and provide standard perf based interfaces. - - If unsure say 'm'. endif
Signature · 1 line
2.40.1
Quoted 13 lines · On Sun, 4 Feb 2024 18:46:13 +0900 Masahiro Yamada <[email protected]> wrote:
Commit
5d7107c72796("perf: CXL Performance Monitoring Unit driver") added the config entries forCXL_PMUindrivers/cxl/Kconfiganddrivers/perf/Kconfig, so it can be toggled from multiple locations:[1] Device Drivers
-> PCI support -> CXL (Compute Expres Link) Devices -> CXL Performance Monitoring Unit[2] Device Drivers
-> Performance monitor support -> CXL Performance Monitoring Unit
Quoted 6 lines
This complicates things, and nobody else does this.
I kept the one in
drivers/perf/KconfigbecauseCONFIG_CXL_PMUcontrols the compilation ofdrivers/perf/cxl_pmu.c.Signed-off-by Masahiro Yamada <[email protected]>
oops.
Thanks
Jonathan
Quoted 27 lines
---
drivers/cxl/Kconfig | 13 ------------- 1 file changed, 13 deletions(-)drivers/cxl/Kconfig +0
-13@@ -144,17 +144,4 @@ config CXL_REGION_INVALIDATION_TEST If unsure, or if this kernel is meant for production environments, say N. -config CXL_PMU - tristate "CXL Performance Monitoring Unit" - default CXL_BUS - depends on PERF_EVENTS - help - Support performance monitoring as defined in CXL rev 3.0 - section 13.2: Performance Monitoring. CXL components may have - one or more CXL Performance Monitoring Units (CPMUs). - - Say 'y/m' to enable a driver that will attach to performance - monitoring units and provide standard perf based interfaces. - - If unsure say 'm'. endif
Quoted 13 lines · Masahiro Yamada
Commit
5d7107c72796("perf: CXL Performance Monitoring Unit driver") added the config entries forCXL_PMUindrivers/cxl/Kconfiganddrivers/perf/Kconfig, so it can be toggled from multiple locations:[1] Device Drivers
-> PCI support -> CXL (Compute Expres Link) Devices -> CXL Performance Monitoring Unit[2] Device Drivers
-> Performance monitor support -> CXL Performance Monitoring Unit
Quoted 6 lines
This complicates things, and nobody else does this.
I kept the one in
drivers/perf/KconfigbecauseCONFIG_CXL_PMUcontrols the compilation ofdrivers/perf/cxl_pmu.c.Signed-off-by Masahiro Yamada <[email protected]>
Quoted 27 lines
---
drivers/cxl/Kconfig | 13 ------------- 1 file changed, 13 deletions(-)drivers/cxl/Kconfig +0
-13@@ -144,17 +144,4 @@ config CXL_REGION_INVALIDATION_TEST If unsure, or if this kernel is meant for production environments, say N. -config CXL_PMU - tristate "CXL Performance Monitoring Unit" - default CXL_BUS - depends on PERF_EVENTS - help - Support performance monitoring as defined in CXL rev 3.0 - section 13.2: Performance Monitoring. CXL components may have - one or more CXL Performance Monitoring Units (CPMUs). - - Say 'y/m' to enable a driver that will attach to performance - monitoring units and provide standard perf based interfaces. - - If unsure say 'm'. endif
Quoted 9 lines · Masahiro Yamada
Commit
5d7107c72796("perf: CXL Performance Monitoring Unit driver") added the config entries forCXL_PMUindrivers/cxl/Kconfiganddrivers/perf/Kconfig, so it can be toggled from multiple locations:[1] Device Drivers
-> PCI support -> CXL (Compute Expres Link) Devices -> CXL Performance Monitoring Unit
Quoted 8 lines
[2] Device Drivers
-> Performance monitor support -> CXL Performance Monitoring UnitThis complicates things, and nobody else does this.
I kept the one in
drivers/perf/KconfigbecauseCONFIG_CXL_PMUcontrols the compilation ofdrivers/perf/cxl_pmu.c.
Completely agree. In general we should try to keep config options minimal where possible.
Quoted 32 lines
Signed-off-by Masahiro Yamada <[email protected]>---
drivers/cxl/Kconfig| 13 -------------1 file changed, 13 deletions(-)drivers/cxl/Kconfig +0
-13@@ -144,17 +144,4 @@ config CXL_REGION_INVALIDATION_TEST If unsure, or if this kernel is meant for production environments, say N. -config CXL_PMU - tristate "CXL Performance Monitoring Unit" - default CXL_BUS - depends on PERF_EVENTS - help - Support performance monitoring as defined in CXL rev 3.0 - section 13.2: Performance Monitoring. CXL components may have - one or more CXL Performance Monitoring Units (CPMUs). - - Say 'y/m' to enable a driver that will attach to performance - monitoring units and provide standard perf based interfaces. - - If unsure say 'm'.endif
--
2.40.1