Re: [RFC Patch 1/1] lspci: Add basic decode support for Compute eXpress Link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 08, 2020 at 02:12:45PM -0700, Sean V Kelley wrote:
> On 8 Apr 2020, at 9:56, Bjorn Helgaas wrote:
> > On Tue, Apr 07, 2020 at 05:09:59PM -0700, Sean V Kelley wrote:

> > > +#define PCI_EVNDR_CXL_ID	0
> > 
> > Unused in this patch.  Is this the DVSEC Vendor ID as described in
> > PCIe r5.0, sec 7.9.6.2?  Is 0 really the ID assigned for CXL?
> 
> It is as described in the PCIe Spec.  The DVSEC ID is set to 0x0 here to
> advertise that this is a Flex Bus feature capability structure. It’s
> assigned in table 58 “PCI Express DVSEC Register Settings for Flex Bus
> Device” of the CXL 1.1 spec.

It sounds like it's the "DVSEC ID" (not the "DVSEC Vendor ID") that is
zero.  That would make sense to me because the "DVSEC ID" is
completely under vendor control.

I would expect the "DVSEC Vendor ID" to be assigned by the PCI-SIG,
and I would be surprised if they assigned zero to CXL.

So I assume you'll eventually #define both IDs here and I won't be
confused any more :)

Thanks for proactively working on this support in lspci!

Bjorn



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux