Commit 68a8e2d
committed
nvidia-gpu: add support for PCIe port telemetry
Add xyz.openbmc_project.Inventory.Connector.Port Interface for each PCIe
port of a ConnectX device.
PDI patches to extend the xyz.openbmc_project.Inventory.Connector.Port
Interface -
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/84653
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/84652
Tested: Build an image for nvl32-obmc machine with the following patch
cherry picked.
https://gerrit.openbmc.org/c/openbmc/openbmc/+/85490
The patch cherry-picks the following patches that are currently under
review.
```
1. device tree
https://lore.kernel.org/all/aRbLqH8pLWCQryhu@molberding.nvidia.com/
2. mctpd patches
CodeConstruct/mctp#85
3. u-boot changes
https://lore.kernel.org/openbmc/20251121-msx4-v1-0-fc0118b666c1@nvidia.com/T/#t
4. kernel changes as specified in the openbmc patch (for espi)
5. entity-manager changes
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/85455
6. platform-init changes
https://gerrit.openbmc.org/c/openbmc/platform-init/+/85456
7. spi changes
https://lore.kernel.org/all/20251121-w25q01jv_fixup-v1-1-3d175050db73@nvidia.com/
```
```
root@nvl32-obmc:~# busctl tree xyz.openbmc_project.GpuSensor
`- /xyz
`- /xyz/openbmc_project
|- /xyz/openbmc_project/inventory
| `- /xyz/openbmc_project/inventory/pcie_devices
| |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_0
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_0/DOWN_0
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_0/DOWN_1
| | `- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_0/UP_0
| |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1/DOWN_0
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1/DOWN_1
| | `- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1/UP_0
| |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_2
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_2/DOWN_0
| | |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_2/DOWN_1
| | `- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_2/UP_0
| `- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_3
| |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_3/DOWN_0
| |- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_3/DOWN_1
| `- /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_3/UP_0
`- /xyz/openbmc_project/sensors
root@nvl32-obmc:~# busctl -l introspect xyz.openbmc_project.GpuSensor /xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1/DOWN_0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Association.Definitions interface - - -
.Associations property a(sss) 1 "connected_to" "connecting" "/xyz/openbmc_project/inventory/pcie_devices/Nvidia_ConnectX_1" emits-change
xyz.openbmc_project.Inventory.Connector.Port interface - - -
.PortProtocol property s "xyz.openbmc_project.Inventory.Connector.Port.PortProtocol.PCIe" emits-change
.PortType property s "xyz.openbmc_project.Inventory.Connector.Port.PortType.DownstreamPort" emits-change
.Speed property t 34359738368 emits-change
.Width property u 16 emits-change
```
Change-Id: I2845f090ac92c8ff6a742ec83c23073e6ea4e1b6
Signed-off-by: Harshit Aghera <haghera@nvidia.com>1 parent b4f775c commit 68a8e2d
8 files changed
Lines changed: 802 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | | - | |
568 | | - | |
| 568 | + | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
572 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
573 | 667 | | |
574 | 668 | | |
575 | 669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
179 | 192 | | |
180 | 193 | | |
181 | 194 | | |
| |||
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
258 | 278 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
20 | 24 | | |
| 25 | + | |
21 | 26 | | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
37 | 102 | | |
38 | 103 | | |
39 | 104 | | |
| |||
42 | 107 | | |
43 | 108 | | |
44 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
45 | 134 | | |
46 | 135 | | |
47 | 136 | | |
| |||
52 | 141 | | |
53 | 142 | | |
54 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
55 | 149 | | |
56 | 150 | | |
57 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
47 | 62 | | |
48 | 63 | | |
49 | 64 | | |
| |||
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
65 | 83 | | |
| 84 | + | |
| 85 | + | |
66 | 86 | | |
0 commit comments