PCI/DOE: Support discovery version 2
authorAlexey Kardashevskiy <aik@amd.com>
Thu, 7 Mar 2024 02:20:06 +0000 (13:20 +1100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Apr 2024 14:33:15 +0000 (09:33 -0500)
commiteebab7e3eb4bb906a8ebc3b70d28059ff1d9271c
tree01fba836c89e82072a9c9f71d4b30ed61cb1357d
parent4cece764965020c22cff7665b18a012006359095
PCI/DOE: Support discovery version 2

PCIe r6.1, sec 6.30.1.1 defines a "DOE Discovery Version" field in
the DOE Discovery Request Data Object Contents (3rd DW) as:

15:8 DOE Discovery Version – must be 02h if the Capability Version in
the Data Object Exchange Extended Capability is 02h or greater.

Add support for the version on devices with the DOE v2 capability.

Link: https://lore.kernel.org/r/20240307022006.3657433-1-aik@amd.com
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
drivers/pci/doe.c
include/uapi/linux/pci_regs.h