Skip to content

Expose VMD BIOS domain info

Jon Derrick linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: vmd: Add helpers to access device config spacedrivers/pci/controller/vmd.c+24 -120 replies
2/3PCI: vmd: Expose VMD details from BIOSdrivers/pci/controller/vmd.c+77 -214 replies
3/3PCI: vmd: Restore domain info during resets/unloadsdrivers/pci/controller/vmd.c+32 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Expose VMD BIOS domain info

In order to provide better VMD userspace management support, VMD needs to know its instance number in the platform. VMDs can be enabled or disabled, so a simple enumeration can't explicitly determine the instance number of the VMD.

To assist userspace with management tasks, VMD BIOS writes the VMD instance number and socket number into the first enabled root port's IO Base/Limit registers prior to OS handoff. VMD driver can capture this information and expose it to userspace.

This set exposes hardware-specific details of the VMD configuration as written by the VMD-enabled BIOS. This data is restored to the same location on reset or module unload. This set reuses the serialized child device configuration accessors for proper ordering and write flushing.

Jon Derrick (3):
PCI: vmd: Add helpers to access device config space
PCI: vmd: Expose VMD details from BIOS
PCI: vmd: Restore domain info during resets/unloads

 drivers/pci/controller/vmd.c | 147 ++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 133 insertions(+), 14 deletions(-)
Signature · 1 line
1.8.3.1