[PATCH v2 6/9] PCI: Add pci_find_dvsec_capability to find designated VSEC

Andrew Donnellan ajd at linux.ibm.com
Tue Sep 28 15:50:27 AEST 2021


On 24/9/21 3:26 am, Ben Widawsky wrote:
> Add pci_find_dvsec_capability to locate a Designated Vendor-Specific
> Extended Capability with the specified DVSEC ID.
> 
> The Designated Vendor-Specific Extended Capability (DVSEC) allows one or
> more vendor specific capabilities that aren't tied to the vendor ID of
> the PCI component.
> 
> DVSEC is critical for both the Compute Express Link (CXL) driver as well
> as the driver for OpenCAPI coherent accelerator (OCXL).
> 
> Cc: David E. Box <david.e.box at linux.intel.com>
> Cc: Jonathan Cameron <Jonathan.Cameron at huawei.com>
> Cc: Bjorn Helgaas <bhelgaas at google.com>
> Cc: Dan Williams <dan.j.williams at intel.com>
> Cc: linux-pci at vger.kernel.org
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: Andrew Donnellan <ajd at linux.ibm.com>
> Cc: Lu Baolu <baolu.lu at linux.intel.com>
> Reviewed-by: Frederic Barrat <fbarrat at linux.ibm.com>
> Signed-off-by: Ben Widawsky <ben.widawsky at intel.com>

Looks good to me, it's essentially identical to the existing 
implementation in ocxl.

Reviewed-by: Andrew Donnellan <ajd at linux.ibm.com>

-- 
Andrew Donnellan              OzLabs, ADL Canberra
ajd at linux.ibm.com             IBM Australia Limited


More information about the Linuxppc-dev mailing list