platform/x86/intel/pmt/discovery: Get telemetry attributes
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 3 Jul 2025 02:28:28 +0000 (19:28 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 3 Jul 2025 08:09:40 +0000 (11:09 +0300)
commit86fc85c75bcd9b0f28afadd60c9f890669b42ba4
tree1927169ee3e8304b0db7c51575e3e5192e4f0859
parentc9699057521834862616ce159a47bd33920f0d9f
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 <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20250703022832.1302928-14-david.e.box@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmt/Kconfig
drivers/platform/x86/intel/pmt/class.h
drivers/platform/x86/intel/pmt/discovery.c
drivers/platform/x86/intel/pmt/telemetry.c
include/linux/intel_vsec.h