Skip to content

platform/x86/intel/vsec: Prep for ACPI PMT discovery

David E. Box dri-devel intel-xe lkml platform-driver-x86 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 3 repliesIn review
  2. v66 patches 0 repliesSuperseded
  3. v56 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v46 patches1 replySuperseded
v36 patches2 repliesSuperseded
v26 patches0 repliesSuperseded
v14 patches6 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6platform/x86/intel/vsec: Refactor base_addr handlingdrivers/platform/x86/intel/vsec.c+10 -131 reply
2/6platform/x86/intel/vsec: Make driver_data info constdrivers/platform/x86/intel/vsec.c include/linux/intel_vsec.h+12 -121 reply
3/6platform/x86/intel/vsec: Decouple add/link helpers from PCIdrivers/platform/x86/intel/vsec.c drivers/platform/x86/intel/vsec_tpmi.c include/linux/intel_vsec.h+11 -61 reply
4/6platform/x86/intel/vsec: Switch exported helpers from pci_dev to devicedrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_hwmon.c drivers/gpu/drm/xe/xe_vsec.c +12 more+71 -600 replies
5/6platform/x86/intel/vsec: Return real error codes from registration pathdrivers/platform/x86/intel/vsec.c+6 -100 replies
6/6platform/x86/intel/vsec: Plumb ACPI PMT discovery tables through vsecdrivers/platform/x86/intel/vsec.c include/linux/intel_vsec.h+42 -10 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchIlpo JärvinenRodrigo ViviMichael J. Ruhl
1/6R-b
2/6R-b
3/6R-b R-b
4/6A-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/6] platform/x86/intel/vsec: Prep for ACPI PMT discovery

This series updates intel_vsec to improve const-correctness, decouple helper APIs from PCI, enhance error handling, and plumb ACPI-based Intel Platform Monitoring Technology (PMT) discovery through the vsec layer. It is preparatory infrastructure for follow-on PMT core/telemetry and PMC/SSRAM series that add ACPI discovery and support for new platforms.

The series is organized as follows:

Patches 1-2 refactor and improve const-correctness of base_addr handling. Patch 1 makes base_addr an explicit parameter throughout the call chain, clarifying ownership and removing conditional logic. Patch 2 then makes the platform info data structure read-only, preventing unintended modifications to shared driver data.

Patches 3-4 decouple the vsec layer from PCI-specific types, updating helper APIs and data structures to use generic struct device instead of struct pci_dev. This enables vsec to work with both PCI and ACPI parent devices.

Patch 5 enhances error visibility by returning meaningful error codes from the registration path instead of collapsing to boolean success/failure.

Patch 6 adds infrastructure for ACPI-based PMT discovery, allowing client drivers to consume discovery data from either PCI or ACPI sources.

Changes in v7:

Fix but found from incorrect struct device * passed to intel_vsec_add_aux(). When the unused first parameter was originally removed, the remaining device argument was inadvertently changed from the aux device to the PCI device. Patch 3 restores &vsec_dev->auxdev.dev, and patch 4 drops a follow-on change that would have reverted it back to the PCI device.

David E. Box (6):
platform/x86/intel/vsec: Refactor base_addr handling platform/x86/intel/vsec: Make driver_data info const platform/x86/intel/vsec: Decouple add/link helpers from PCI platform/x86/intel/vsec: Switch exported helpers from pci_dev to
device
platform/x86/intel/vsec: Return real error codes from registration
path
platform/x86/intel/vsec: Plumb ACPI PMT discovery tables through vsec

 drivers/gpu/drm/xe/xe_debugfs.c               |   2 +-
 drivers/gpu/drm/xe/xe_hwmon.c                 |   2 +-
 drivers/gpu/drm/xe/xe_vsec.c                  |   7 +-
 drivers/gpu/drm/xe/xe_vsec.h                  |   4 +-
 drivers/platform/x86/intel/pmc/core.c         |   4 +-
 .../platform/x86/intel/pmc/ssram_telemetry.c  |   2 +-
 drivers/platform/x86/intel/pmt/class.c        |   8 +-
 drivers/platform/x86/intel/pmt/class.h        |   5 +-
 drivers/platform/x86/intel/pmt/discovery.c    |   4 +-
 drivers/platform/x86/intel/pmt/telemetry.c    |  13 +-
 drivers/platform/x86/intel/pmt/telemetry.h    |  12 +-
 drivers/platform/x86/intel/sdsi.c             |   5 +-
 drivers/platform/x86/intel/vsec.c             | 121 +++++++++++-------
 drivers/platform/x86/intel/vsec_tpmi.c        |   8 +-
 include/linux/intel_vsec.h                    |  39 ++++--
 15 files changed, 143 insertions(+), 93 deletions(-)
Signature · 1 line
2.43.0