LM/PCIe Trouble Shooting: Difference between revisions

From Fundamental Ramen
< LM
Jump to navigation Jump to search
No edit summary
Line 39: Line 39:
cat /sys/bus/pci/devices/0000:03:00.0/max_link_width
cat /sys/bus/pci/devices/0000:03:00.0/max_link_width
cat /sys/bus/pci/devices/0000:03:00.0/max_link_speed
cat /sys/bus/pci/devices/0000:03:00.0/max_link_speed
</syntaxhighlight>
== Intel only ==
<syntaxhighlight lang="bash">
xpu-smi discovery
  Device ID    Device Information
  0            Device Name: Intel(R) Arc(TM) Pro B70 Graphics
                Device State: normal
                Vendor Name: Intel(R) Corporation
                SOC UUID: 00000000-0000-0003-0000-0000e2238086
                PCI BDF Address: 0000:03:00.0
                DRM Device: /dev/dri/card0
                Function Type: physical
xpu-smi config --device 0
  Device Type    Device ID/Tile ID    Configuration
  GPU            0                      Power domain card:
                                          sustain(w): N/A
                                          burst(w): 230
                                          peak(w): 460
                                        Power domain package:
                                          sustain(w): N/A
                                          burst(w): N/A
                                          peak(w): N/A
                                        Memory ECC:
                                          Current: disabled
                                          Pending: disabled
                                        PCIe Gen4 Downgrade:
                                          Current: N/A
                                        Fan (Mode / Speed %):
                                          Fan 0: N/A / 0%
  GPU            0/0                    GPU Min Frequency (MHz): 400
                                        GPU Max Frequency (MHz): 2800
                                          Valid Options: 400, 450, 500, 550, 600, 650, ...
                                            850, 900, 950, 1000, 1050, 1100, 1150, 1200...
                                            1350, 1400, 1450, 1500, 1550, 1600, 1650, 1...
                                            1800, 1850, 1900, 1950, 2000, 2050, 2100, 2...
                                            2250, 2300, 2350, 2400, 2450, 2500, 2550, 2...
                                            2700, 2750, 2800
                                        Standby Mode: N/A
                                          Valid Options: default, never
                                        Scheduler Mode: timeslice
                                          Timeout (us): N/A
                                          Interval (us): 1000
                                          Yield Timeout (us): 640000
$ xpu-smi health --device 0
[Error] Failed to get core temperature: 0x78000003 (ZE_RESULT_ERROR_UNSUPPORTED_FEATURE)
[Error] Health check failed for device id: 0
  Component    Value
  Device ID    0
</syntaxhighlight>
</syntaxhighlight>

Revision as of 03:11, 3 September 2026

List all GPUs

lspci | grep 'VGA'

List PCIe tree for CPU & chipset

lspci -tv | sed '/+-03\.0/,$d'
-[0000:00]-+-00.0  Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Root Complex
           +-00.2  Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge IOMMU
           +-01.0  Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
           +-01.1-[01-04]----00.0-[02-04]--+-01.0-[03]----00.0  Intel Corporation Battlemage G31 [Intel Graphics]
           |                               \-02.0-[04]----00.0  Intel Corporation Device e2f7
           +-01.2-[05]----00.0  Kingston Technology Company, Inc. KC2000/KC2500 NVMe SSD [SM2262EN]
           +-01.3-[06]--+-00.0  NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate]
           |            \-00.1  NVIDIA Corporation GA106 High Definition Audio Controller
           +-02.0  Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
           +-02.1-[07-0e]----00.0-[08-0e]--+-00.0-[09]--
           |                               +-08.0-[0a]----00.0  Realtek Semiconductor Co., Ltd. RTL8126 5GbE Controller
           |                               +-09.0-[0b]----00.0  Intel Corporation Wi-Fi 6E(802.11ax) AX210/AX1675* 2x2 [Typhoon Peak]
           |                               +-0a.0-[0c]----00.0  Realtek Semiconductor Co., Ltd. RTL8126 5GbE Controller
           |                               +-0c.0-[0d]----00.0  Advanced Micro Devices, Inc. [AMD] 800 Series Chipset USB 3.x XHCI Controller
           |                               \-0d.0-[0e]----00.0  Advanced Micro Devices, Inc. [AMD] 600 Series Chipset SATA Controller

Verify link speed & width

sudo lspci -vvv -s 03:00 | grep 'Lnk'

cat /sys/bus/pci/devices/0000:03:00.0/current_link_width
cat /sys/bus/pci/devices/0000:03:00.0/current_link_speed

cat /sys/bus/pci/devices/0000:03:00.0/max_link_width
cat /sys/bus/pci/devices/0000:03:00.0/max_link_speed

Intel only

xpu-smi discovery

  Device ID     Device Information
  0             Device Name: Intel(R) Arc(TM) Pro B70 Graphics
                Device State: normal
                Vendor Name: Intel(R) Corporation
                SOC UUID: 00000000-0000-0003-0000-0000e2238086
                PCI BDF Address: 0000:03:00.0
                DRM Device: /dev/dri/card0
                Function Type: physical

xpu-smi config --device 0

  Device Type     Device ID/Tile ID     Configuration
  GPU             0                      Power domain card:
                                          sustain(w): N/A
                                          burst(w): 230
                                          peak(w): 460
                                         Power domain package:
                                          sustain(w): N/A
                                          burst(w): N/A
                                          peak(w): N/A

                                         Memory ECC:
                                          Current: disabled
                                          Pending: disabled

                                         PCIe Gen4 Downgrade:
                                          Current: N/A

                                         Fan (Mode / Speed %):
                                          Fan 0: N/A / 0%

  GPU             0/0                    GPU Min Frequency (MHz): 400
                                         GPU Max Frequency (MHz): 2800
                                          Valid Options: 400, 450, 500, 550, 600, 650, ...
                                            850, 900, 950, 1000, 1050, 1100, 1150, 1200...
                                            1350, 1400, 1450, 1500, 1550, 1600, 1650, 1...
                                            1800, 1850, 1900, 1950, 2000, 2050, 2100, 2...
                                            2250, 2300, 2350, 2400, 2450, 2500, 2550, 2...
                                            2700, 2750, 2800

                                         Standby Mode: N/A
                                          Valid Options: default, never

                                         Scheduler Mode: timeslice
                                          Timeout (us): N/A
                                          Interval (us): 1000
                                          Yield Timeout (us): 640000
$ xpu-smi health --device 0
[Error] Failed to get core temperature: 0x78000003 (ZE_RESULT_ERROR_UNSUPPORTED_FEATURE)
[Error] Health check failed for device id: 0

  Component     Value
  Device ID     0