Project

General

Profile

Actions

Feature #14928

closed

pcieadm rc event collector association decoding

Added by Robert Mustacchi 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

For a long time a PCIe root complex event collector could declare associated endpoints that it can receive and send messages on behalf of. With the advent of more going on with CXL, this is seeing increased usage. We should decode the basics of this right now.

Actions #1

Updated by Electric Monk 4 months ago

  • Gerrit CR set to 2319
Actions #2

Updated by Robert Mustacchi 3 months ago

To test this I decoded this on a system. While the next / last bus are all zero here, I believe that's because there were no CXL devices on this system.

rm@beowulf:~$ for f in ~/pci/*.pci; do echo $f; ./pcieadm show-cfgspace -f $f rcecea 2>/dev/null; done
...
/home/rm/pci/00-00-03.pci
Root Complex Event Collector Endpoint Association Capability (0x7)
  Capability Header: 0x20007
    |--> Capability ID: 0x7
    |--> Capability Version: 0x2
    |--> Next Capability Offset: 0x0
  Association Bitmap for RCiEPs: 0x1
  RCEC Associated Bus Numbers: 0x0
    |--> RCEC Next Bus: 0x0
    |--> RCEC Last Bus: 0x0
...
/home/rm/pci/40-00-03.pci
Root Complex Event Collector Endpoint Association Capability (0x7)
  Capability Header: 0x20007
    |--> Capability ID: 0x7
    |--> Capability Version: 0x2
    |--> Next Capability Offset: 0x0
  Association Bitmap for RCiEPs: 0x1
  RCEC Associated Bus Numbers: 0x0
    |--> RCEC Next Bus: 0x0
    |--> RCEC Last Bus: 0x0
...
/home/rm/pci/80-00-03.pci
Root Complex Event Collector Endpoint Association Capability (0x7)
  Capability Header: 0x20007
    |--> Capability ID: 0x7
    |--> Capability Version: 0x2
    |--> Next Capability Offset: 0x0
  Association Bitmap for RCiEPs: 0x1
  RCEC Associated Bus Numbers: 0x0
    |--> RCEC Next Bus: 0x0
    |--> RCEC Last Bus: 0x0
...
/home/rm/pci/c0-00-03.pci
Root Complex Event Collector Endpoint Association Capability (0x7)
  Capability Header: 0x20007
    |--> Capability ID: 0x7
    |--> Capability Version: 0x2
    |--> Next Capability Offset: 0x0
  Association Bitmap for RCiEPs: 0x1
  RCEC Associated Bus Numbers: 0x0
    |--> RCEC Next Bus: 0x0
    |--> RCEC Last Bus: 0x0
Actions #3

Updated by Electric Monk 3 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 62ed517217a113e80b963702c4e1344505df8d27

commit  62ed517217a113e80b963702c4e1344505df8d27
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2022-09-07T17:35:05.000Z

    14928 pcieadm rc event collector association decoding
    Reviewed by: Benjamin Naecker <bnaecker@fastmail.com>
    Approved by: Dan McDonald <danmcd@mnx.io>

Actions

Also available in: Atom PDF