public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] lspci: Display cxl1.1 device link status
@ 2023-12-20  5:07 KobayashiDaisuke
  2023-12-20  5:07 ` [RFC PATCH 1/3] Add function to display " KobayashiDaisuke
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: KobayashiDaisuke @ 2023-12-20  5:07 UTC (permalink / raw)
  To: linux-pci; +Cc: linux-cxl, y-goto, KobayashiDaisuke

Hello.

This patch series adds a feature to lspci that displays the link status
of the CXL1.1 device.

CXL devices are extensions of PCIe. Therefore, from CXL2.0 onwards,
the link status can be output in the same way as traditional PCIe.
However, unlike devices from CXL2.0 onwards, CXL1.1 requires a
different method to obtain the link status from traditional PCIe.
This is because the link status of the CXL1.1 device is not mapped
in the configuration space (as per cxl3.0 specification 8.1).
Instead, the configuration space containing the link status is mapped
to the memory mapped register region (as per cxl3.0 specification 8.2,
Table 8-18). Therefore, the current lspci has a problem where it does
not display the link status of the CXL1.1 device. 
This patch solves these issues.

The method of acquisition is in the order of obtaining the device UID,
obtaining the base address from CEDT, and then obtaining the link
status from memory mapped register. Considered outputting with the cxl
command due to the scope of the CXL specification, but devices from
CXL2.0 onwards can be output in the same way as traditional PCIe.
Therefore, it would be better to make the lspci command compatible with
the CXL1.1 device for compatibility reasons.

I look forward to any comments you may have.

KobayashiDaisuke (3):
  Add function to display cxl1.1 device link status
  Implement a function to get cxl1.1 device uid
  Implement a function to get a RCRB Base address

 ls-caps.c | 216 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lspci.h   |  35 +++++++++
 2 files changed, 251 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-01-18  5:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20  5:07 [RFC PATCH 0/3] lspci: Display cxl1.1 device link status KobayashiDaisuke
2023-12-20  5:07 ` [RFC PATCH 1/3] Add function to display " KobayashiDaisuke
2023-12-20  5:07 ` [RFC PATCH 2/3] Implement a function to get cxl1.1 device uid KobayashiDaisuke
2023-12-20  5:07 ` [RFC PATCH 3/3] Implement a function to get a RCRB Base address KobayashiDaisuke
2024-01-09 15:57 ` [RFC PATCH 0/3] lspci: Display cxl1.1 device link status Jonathan Cameron
2024-01-11  1:11   ` Dan Williams
2024-01-12 11:24     ` Jonathan Cameron
2024-01-15  9:09       ` Daisuke Kobayashi (Fujitsu)
2024-01-16 21:29         ` Dan Williams
2024-01-17  9:23           ` Daisuke Kobayashi (Fujitsu)
2024-01-17 12:10 ` Martin Mareš
2024-01-18  5:07   ` Daisuke Kobayashi (Fujitsu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox