Commit 7427aee
committed
nvidia-gpu: add ConnectX Ethernet Port Metrics
Add xyz.openbmc_project.Metric.Value interface for each of the following
Ethernet port metrics of a ConnectX device.
- TXBytes
- RXBytes
- RXMulticastFrames
- TXMulticastFrames
- RXUnicastFrames
- TXUnicastFrames
- RXBroadcastFrames
- TXBroadcastFrames
- RXFCSErrors
- RXFrameAlignmentErrors
- RXFalseCarrierErrors
- RXUndersizeFrames
- RXOversizeFrames
- RXPauseXONFrames
- RXPauseXOFFFrames
- TXPauseXONFrames
- TXPauseXOFFFrames
- TXSingleCollisions
- TXMultipleCollisions
- TXLateCollisions
- TXExcessiveCollisions
PDI Patch -
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/84847
Tested: Build an image for nvl32-obmc machine with the following patch
cherry picked.
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/84257
https://gerrit.openbmc.org/c/openbmc/openbmc/+/85490
The openbmc 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/Nvidia_ConnectX_0_NIC
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_NIC/Port_1
| | `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_NIC/Port_2
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_PCIe
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_PCIe/DOWN_0
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_PCIe/DOWN_1
| | `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_0_PCIe/UP_0
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_NIC
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_NIC/Port_1
| | `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_NIC/Port_2
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_PCIe
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_PCIe/DOWN_0
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_PCIe/DOWN_1
| | `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_2_PCIe/UP_0
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_NIC
| | |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_NIC/Port_1
| | `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_NIC/Port_2
| `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_PCIe
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_PCIe/DOWN_0
| |- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_PCIe/DOWN_1
| `- /xyz/openbmc_project/inventory/Nvidia_ConnectX_3_PCIe/UP_0
|- /xyz/openbmc_project/metric
| |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1
| | `- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_broadcast_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_bytes
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_false_carrier_errors
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_fcs_errors
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_frame_alignment_errors
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_multicast_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_oversize_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_pause_xoff_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_pause_xon_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_undersize_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/rx_unicast_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_broadcast_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_bytes
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_excessive_collisions
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_late_collisions
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_multicast_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_multiple_collisions
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_pause_xoff_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_pause_xon_frames
| | |- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_single_collisions
| | `- /xyz/openbmc_project/metric/port_Nvidia_ConnectX_0_NIC_Port_1/nic/tx_unicast_frames
root@nvl32-obmc:~# busctl introspect xyz.openbmc_project.GpuSensor /xyz/openbmc_project/metric/port_Nvidia_ConnectX_3_NIC_Port_2/nic/rx_bytes
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 "measuring" "measured_by" "/xyz/ope... emits-change
xyz.openbmc_project.Metric.Value interface - - -
.Unit property s "xyz.openbmc_project.Metric.Value.Uni... emits-change
.Value property d 0 emits-change
```
Change-Id: I30123e35b759182039cb6f25526fafe733c0f354
Signed-off-by: Harshit Aghera <haghera@nvidia.com>1 parent 1180ed4 commit 7427aee
12 files changed
Lines changed: 1335 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 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 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 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 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments