aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/telemetry.c
diff options
context:
space:
mode:
authorDavid E. Box <[email protected]>2025-07-03 02:28:28 +0000
committerIlpo Järvinen <[email protected]>2025-07-03 08:09:40 +0000
commit86fc85c75bcd9b0f28afadd60c9f890669b42ba4 (patch)
tree1927169ee3e8304b0db7c51575e3e5192e4f0859 /drivers/platform/x86/intel/pmt/telemetry.c
parentplatform/x86/intel/tpmi: Get OOBMSM CPU mapping from TPMI (diff)
downloadkernel-86fc85c75bcd9b0f28afadd60c9f890669b42ba4.tar.gz
kernel-86fc85c75bcd9b0f28afadd60c9f890669b42ba4.zip
platform/x86/intel/pmt/discovery: Get telemetry attributes
Add intel_pmt_get_features() in PMT Discovery to enable the PMT Telemetry driver to obtain attributes of the aggregated telemetry spaces it enumerates. The function gathers feature flags and associated data (like the number of RMIDs) from each PMT entry, laying the groundwork for a future kernel interface that will allow direct access to telemetry regions based on their capabilities. Signed-off-by: David E. Box <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/telemetry.c')
-rw-r--r--drivers/platform/x86/intel/pmt/telemetry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/pmt/telemetry.c b/drivers/platform/x86/intel/pmt/telemetry.c
index ac3a9bdf5601..58d06749e417 100644
--- a/drivers/platform/x86/intel/pmt/telemetry.c
+++ b/drivers/platform/x86/intel/pmt/telemetry.c
@@ -9,11 +9,14 @@
*/
#include <linux/auxiliary_bus.h>
+#include <linux/intel_pmt_features.h>
#include <linux/intel_vsec.h>
#include <linux/kernel.h>
+#include <linux/kref.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
+#include <linux/types.h>
#include <linux/uaccess.h>
#include <linux/overflow.h>
@@ -311,6 +314,8 @@ static int pmt_telem_probe(struct auxiliary_device *auxdev, const struct auxilia
continue;
priv->num_entries++;
+
+ intel_pmt_get_features(entry);
}
return 0;