linux/drivers/platform/x86/intel/pmt
David E. Box 13793c7f9e
platform/x86/intel/pmt: Unify header fetch and add ACPI source
Allow the PMT class to read discovery headers from either PCI MMIO or
ACPI-provided entries, depending on the discovery source. The new
source-aware fetch helper caches the canonical discovery header for both
paths, capping PCI MMIO reads to the mapped resource size, while keeping
the mapped PCI discovery table available for users such as crashlog.

Split intel_pmt_populate_entry() into source-specific resolvers:
  - pmt_resolve_access_pci(): handles both ACCESS_LOCAL and ACCESS_BARID
    for PCI-backed devices and sets entry->pcidev. Same existing
    functionality.
  - pmt_resolve_access_acpi(): handles only ACCESS_BARID for ACPI-backed
    devices, rejecting ACCESS_LOCAL which has no valid semantics without
    a physical discovery resource.

This maintains existing PCI behavior and makes no functional changes
for PCI devices.

Assisted-by: GitHub-Copilot:claude-opus-4.7
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://patch.msgid.link/4b33b04ffaf0943b67d330f48b5d1dfcb6d1be5d.1781294741.git.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>
2026-06-15 02:13:01 +03:00
..
class.c platform/x86/intel/pmt: Unify header fetch and add ACPI source 2026-06-15 02:13:01 +03:00
class.h platform/x86/intel/pmt: Unify header fetch and add ACPI source 2026-06-15 02:13:01 +03:00
crashlog.c platform/x86/intel/pmt/crashlog: Split init into pre-decode 2026-06-15 02:12:54 +03:00
discovery-kunit.c platform/x86/intel/pmt/discovery: Fix size_t specifiers for 32-bit 2025-07-09 11:32:37 +03:00
discovery.c platform/x86/intel/vsec: Switch exported helpers from pci_dev to device 2026-03-17 18:51:15 +02:00
features.c platform/x86/intel/pmt: Add PMT Discovery driver 2025-07-03 11:09:32 +03:00
Kconfig platform/x86/intel/pmt: fix build dependency for kunit test 2025-07-21 16:59:23 +03:00
Makefile platform/x86/intel/pmt: KUNIT test for PMT Enhanced Discovery API 2025-07-03 11:09:44 +03:00
telemetry.c platform/x86/intel/pmt: Cache the telemetry discovery header 2026-06-15 02:12:59 +03:00
telemetry.h platform/x86/intel/vsec: Switch exported helpers from pci_dev to device 2026-03-17 18:51:15 +02:00