mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
The limited number of link-encryption (IDE) streams that a given set of host bridges supports is a platform specific detail. Provide pci_ide_init_nr_streams() as a generic facility for either platform TSM drivers, or PCI core native IDE, to report the number available streams. After invoking pci_ide_init_nr_streams() an "available_secure_streams" attribute appears in PCI host bridge sysfs to convey that count. Introduce a device-type, @pci_host_bridge_type, now that both a release method and sysfs attribute groups are being specified for all 'struct pci_host_bridge' instances. Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Lukas Wunner <lukas@wunner.de> Cc: Samuel Ortiz <sameo@rivosinc.com> Cc: Alexey Kardashevskiy <aik@amd.com> Cc: Xu Yilun <yilun.xu@linux.intel.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20251031212902.2256310-9-dan.j.williams@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
What: /sys/devices/pciDDDD:BB
|
|
/sys/devices/.../pciDDDD:BB
|
|
Contact: linux-pci@vger.kernel.org
|
|
Description:
|
|
A PCI host bridge device parents a PCI bus device topology. PCI
|
|
controllers may also parent host bridges. The DDDD:BB format
|
|
conveys the PCI domain (ACPI segment) number and root bus number
|
|
(in hexadecimal) of the host bridge. Note that the domain number
|
|
may be larger than the 16-bits that the "DDDD" format implies
|
|
for emulated host-bridges.
|
|
|
|
What: pciDDDD:BB/firmware_node
|
|
Contact: linux-pci@vger.kernel.org
|
|
Description:
|
|
(RO) Symlink to the platform firmware device object "companion"
|
|
of the host bridge. For example, an ACPI device with an _HID of
|
|
PNP0A08 (/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00). See
|
|
/sys/devices/pciDDDD:BB entry for details about the DDDD:BB
|
|
format.
|
|
|
|
What: pciDDDD:BB/streamH.R.E
|
|
Contact: linux-pci@vger.kernel.org
|
|
Description:
|
|
(RO) When a platform has established a secure connection, PCIe
|
|
IDE, between two Partner Ports, this symlink appears. A stream
|
|
consumes a Stream ID slot in each of the Host bridge (H), Root
|
|
Port (R) and Endpoint (E). The link points to the Endpoint PCI
|
|
device in the Selective IDE Stream pairing. Specifically, "R"
|
|
and "E" represent the assigned Selective IDE Stream Register
|
|
Block in the Root Port and Endpoint, and "H" represents a
|
|
platform specific pool of stream resources shared by the Root
|
|
Ports in a host bridge. See /sys/devices/pciDDDD:BB entry for
|
|
details about the DDDD:BB format.
|
|
|
|
What: pciDDDD:BB/available_secure_streams
|
|
Contact: linux-pci@vger.kernel.org
|
|
Description:
|
|
(RO) When a host bridge has Root Ports that support PCIe IDE
|
|
(link encryption and integrity protection) there may be a
|
|
limited number of Selective IDE Streams that can be used for
|
|
establishing new end-to-end secure links. This attribute
|
|
decrements upon secure link setup, and increments upon secure
|
|
link teardown. The in-use stream count is determined by counting
|
|
stream symlinks. See /sys/devices/pciDDDD:BB entry for details
|
|
about the DDDD:BB format.
|