Skip to content

Commit 651aa90

Browse files
committed
Merge branch 'pci/doe'
- Rename DOE 'protocol' to 'feature' to follow spec terminology (Alistair Francis) - Expose supported DOE features via sysfs (Alistair Francis) - Allow DOE support to be enabled even if CXL isn't enabled (Alistair Francis) * pci/doe: PCI/DOE: Allow enabling DOE without CXL PCI/DOE: Expose DOE features via sysfs PCI/DOE: Rename Discovery Response Data Object Contents to type PCI/DOE: Rename DOE protocol to feature
2 parents 67b9f18 + 6fc6ded commit 651aa90

File tree

8 files changed

+252
-49
lines changed

8 files changed

+252
-49
lines changed

Documentation/ABI/testing/sysfs-bus-pci

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,32 @@ Description:
583583
enclosure-specific indications "specific0" to "specific7",
584584
hence the corresponding led class devices are unavailable if
585585
the DSM interface is used.
586+
587+
What: /sys/bus/pci/devices/.../doe_features
588+
Date: March 2025
589+
Contact: Linux PCI developers <[email protected]>
590+
Description:
591+
This directory contains a list of the supported Data Object
592+
Exchange (DOE) features. The features are the file name.
593+
The contents of each file is the raw Vendor ID and data
594+
object feature values.
595+
596+
The value comes from the device and specifies the vendor and
597+
data object type supported. The lower (RHS of the colon) is
598+
the data object type in hex. The upper (LHS of the colon)
599+
is the vendor ID.
600+
601+
As all DOE devices must support the DOE discovery feature,
602+
if DOE is supported you will at least see the doe_discovery
603+
file, with this contents:
604+
605+
# cat doe_features/doe_discovery
606+
0001:00
607+
608+
If the device supports other features you will see other
609+
files as well. For example if CMA/SPDM and secure CMA/SPDM
610+
are supported the doe_features directory will look like
611+
this:
612+
613+
# ls doe_features
614+
0001:01 0001:02 doe_discovery

drivers/pci/Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ config PCI_ATS
122122
bool
123123

124124
config PCI_DOE
125-
bool
125+
bool "Enable PCI Data Object Exchange (DOE) support"
126+
help
127+
Say Y here if you want be able to communicate with PCIe DOE
128+
mailboxes.
126129

127130
config PCI_ECAM
128131
bool

0 commit comments

Comments
 (0)