Re: [RFC PATCH v2 3/3] lspci: Add function to display cxl1.1 device link status

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

 



Hello!

> This patch adds a function to output the link status of the CXL1.1 device
> when it is connected.
> 
> In CXL1.1, the link status of the device is included in the RCRB mapped to
> the memory mapped register area. The value of that register is outputted
> to sysfs, and based on that, displays the link status information.

I like using sysfs to access the RCRB, but since it is specific to Linux,
you cannot do it in ls-caps.c (everything in this file is platform-independent).

The right way is to extend libpci and its interface to platform-specific
back-ends to provide this functionality. However, I am not sure that we should
add special functions just for this purpose. I will think of something more
general and let you know soon.

Otherwise, please follow the coding style of the rest of the file.

				Martin




[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