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

When INTEL_PMT_TELEMETRY is in a loadable module, the discovery
test cannot be built-in:
x86_64-linux-ld: drivers/platform/x86/intel/pmt/discovery-kunit.o: in function `test_intel_pmt_get_regions_by_feature':
discovery-kunit.c:(.text+0x29d): undefined reference to `intel_pmt_get_regions_by_feature'
x86_64-linux-ld: discovery-kunit.c:(.text+0x2c3): undefined reference to `intel_pmt_put_feature_group'
Add a Kconfig dependency to prevent this.
Fixes: b9707d46a9
("platform/x86/intel/pmt: KUNIT test for PMT Enhanced Discovery API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250714081559.4056777-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>
68 lines
2.4 KiB
Text
68 lines
2.4 KiB
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Intel Platform Monitoring Technology drivers
|
|
#
|
|
|
|
config INTEL_PMT_CLASS
|
|
tristate
|
|
help
|
|
The Intel Platform Monitoring Technology (PMT) class driver provides
|
|
the basic sysfs interface and file hierarchy used by PMT devices.
|
|
|
|
For more information, see:
|
|
<file:Documentation/ABI/testing/sysfs-class-intel_pmt>
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called intel_pmt_class.
|
|
|
|
config INTEL_PMT_TELEMETRY
|
|
tristate "Intel Platform Monitoring Technology (PMT) Telemetry driver"
|
|
depends on INTEL_VSEC
|
|
select INTEL_PMT_DISCOVERY
|
|
select INTEL_PMT_CLASS
|
|
help
|
|
The Intel Platform Monitory Technology (PMT) Telemetry driver provides
|
|
access to hardware telemetry metrics on devices that support the
|
|
feature.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called intel_pmt_telemetry.
|
|
|
|
config INTEL_PMT_CRASHLOG
|
|
tristate "Intel Platform Monitoring Technology (PMT) Crashlog driver"
|
|
depends on INTEL_VSEC
|
|
select INTEL_PMT_CLASS
|
|
help
|
|
The Intel Platform Monitoring Technology (PMT) crashlog driver provides
|
|
access to hardware crashlog capabilities on devices that support the
|
|
feature.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called intel_pmt_crashlog.
|
|
|
|
config INTEL_PMT_DISCOVERY
|
|
tristate "Intel Platform Monitoring Technology (PMT) Discovery driver"
|
|
depends on INTEL_VSEC
|
|
select INTEL_PMT_CLASS
|
|
help
|
|
The Intel Platform Monitoring Technology (PMT) discovery driver provides
|
|
access to details about the various PMT features and feature specific
|
|
attributes.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called pmt_discovery.
|
|
|
|
config INTEL_PMT_KUNIT_TEST
|
|
tristate "KUnit tests for Intel PMT driver"
|
|
depends on INTEL_PMT_DISCOVERY
|
|
depends on INTEL_PMT_TELEMETRY || !INTEL_PMT_TELEMETRY
|
|
depends on KUNIT
|
|
help
|
|
Enable this option to compile and run a suite of KUnit tests for the Intel
|
|
Platform Monitoring Technology (PMT) driver. These tests are designed to
|
|
validate the driver's functionality, error handling, and overall stability,
|
|
helping developers catch regressions and ensure code quality during changes.
|
|
|
|
This option is intended for development and testing environments. It is
|
|
recommended to disable it in production builds. To compile this driver as a
|
|
module, choose M here: the module will be called pmt-discovery-kunit.
|