您尚未登录。

#1 2024-04-22 20:32:31

米大粒
会员
注册时间: 2024-04-22
帖子: 8

如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

设备是华硕X16 FLow
外置显卡AMD RTX7900

neofetch:

                  .o+`                   ------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: ROG Flow X16 GV601VI_GV601VI 1.0 
               `+oooooo:                 Kernel: 6.8.7-arch1-1 
               -+oooooo+:                Uptime: 2 hours, 14 mins 
             `/:-:++oooo+:               Packages: 747 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 2560x1600, 1080x1920, 3440x1440 
          `/+++ooooooooooooo/`           WM: i3 
         ./ooosssso++osssssso+`          Theme: Adwaita [GTK3] 
        .oossssso-````/ossssss+`         Icons: Adwaita [GTK3] 
       -osssssso.      :ssssssso.        Terminal: urxvt 
      :osssssss/        osssso+++.       CPU: 13th Gen Intel i9-13900H (20) @ 5.200GHz 
     /ossssssss/        +ssssooo/-       GPU: AMD ATI Radeon RX 7900 XT/7900 XTX/7900M 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel Raptor Lake-P [Iris Xe Graphics] 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce RTX 4070 Max-Q / Mobile 
 `++:.                           `-/+/   Memory: 5876MiB / 31724MiB 

nvtop 可以看到显卡被限制在的PCIE GEN1:

Device 1 [AMD Radeon RX 7900 XTX]             PCIe GEN 1@ 4x RX: N/A TX: N/A

这是三块显卡的信息:

$ lspci -knn | grep VGA
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04)
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] [10de:2860] (rev a1)
0000:0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8)

这是扩展坞的信息:

$ lspci -knn | grep JHL7540
0000:06:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:01.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:02.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:04.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:1b:00.0 USB controller [0c03]: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] [8086:15f0] (rev 06)

dmesg里可以看到扩展坞被限制在了2.5GT/s,也就是PCIE 1X

$ sudo dmesg | grep 'PCIe bandwidth'
[    0.716116] pci 0000:06:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    0.725605] pci 0000:08:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
[    0.738151] pci 0000:0a:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
[    0.739387] pci 0000:1b:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    0.773438] pci 0000:30:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:1c.0 (capable of 4032.000 Gb/s with 64.0 GT/s PCIe x63 link)

官方wiki说amdgpu驱动要添加这个配置文件,已经添加但是无效。

/etc/modprobe.d/amd-egpu-pcie-speed.conf
options amdgpu pcie_gen_cap=0x80000

求助!

离线

#2 2024-04-22 21:55:39

BRS5672023
会员
注册时间: 2020-07-07
帖子: 132

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

米大粒 说:

设备是华硕X16 FLow
外置显卡AMD RTX7900

neofetch:

                  .o+`                   ------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: ROG Flow X16 GV601VI_GV601VI 1.0 
               `+oooooo:                 Kernel: 6.8.7-arch1-1 
               -+oooooo+:                Uptime: 2 hours, 14 mins 
             `/:-:++oooo+:               Packages: 747 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 2560x1600, 1080x1920, 3440x1440 
          `/+++ooooooooooooo/`           WM: i3 
         ./ooosssso++osssssso+`          Theme: Adwaita [GTK3] 
        .oossssso-````/ossssss+`         Icons: Adwaita [GTK3] 
       -osssssso.      :ssssssso.        Terminal: urxvt 
      :osssssss/        osssso+++.       CPU: 13th Gen Intel i9-13900H (20) @ 5.200GHz 
     /ossssssss/        +ssssooo/-       GPU: AMD ATI Radeon RX 7900 XT/7900 XTX/7900M 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel Raptor Lake-P [Iris Xe Graphics] 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce RTX 4070 Max-Q / Mobile 
 `++:.                           `-/+/   Memory: 5876MiB / 31724MiB 

nvtop 可以看到显卡被限制在的PCIE GEN1:

Device 1 [AMD Radeon RX 7900 XTX]             PCIe GEN 1@ 4x RX: N/A TX: N/A

这是三块显卡的信息:

$ lspci -knn | grep VGA
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-P [Iris Xe Graphics] [8086:a7a0] (rev 04)
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] [10de:2860] (rev a1)
0000:0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8)

这是扩展坞的信息:

$ lspci -knn | grep JHL7540
0000:06:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:01.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:02.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:07:04.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] [8086:15ef] (rev 06)
0000:1b:00.0 USB controller [0c03]: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] [8086:15f0] (rev 06)

dmesg里可以看到扩展坞被限制在了2.5GT/s,也就是PCIE 1X

$ sudo dmesg | grep 'PCIe bandwidth'
[    0.716116] pci 0000:06:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    0.725605] pci 0000:08:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
[    0.738151] pci 0000:0a:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
[    0.739387] pci 0000:1b:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0000:00:07.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    0.773438] pci 0000:30:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:1c.0 (capable of 4032.000 Gb/s with 64.0 GT/s PCIe x63 link)

官方wiki说amdgpu驱动要添加这个配置文件,已经添加但是无效。

/etc/modprobe.d/amd-egpu-pcie-speed.conf
options amdgpu pcie_gen_cap=0x80000

求助!

添加 module options 之后需要 mkinitcpio -P 然后重启,这些操作你都做了吧?

最近编辑记录 BRS5672023 (2024-04-22 21:57:05)

离线

#3 2024-04-22 22:48:56

米大粒
会员
注册时间: 2024-04-22
帖子: 8

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

BRS5672023 说:

添加 module options 之后需要 mkinitcpio -P 然后重启,这些操作你都做了吧?

是的,非常确信都做了,回帖前我又跑了一次,这是nvtop的输出

 Device 1 [AMD Radeon RX 7900 XTX]             PCIe GEN 1@ 4x RX: N/A TX: N/A
 GPU 822MHz  MEM 96MHz   TEMP  48°C FAN   0% POW  26 / 339 W
 GPU[|||||||||||                           27%] MEM[                        0.131Gi/23.984Gi]

离线

#4 2024-04-22 23:09:52

BRS5672023
会员
注册时间: 2020-07-07
帖子: 132

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

米大粒 说:
BRS5672023 说:

添加 module options 之后需要 mkinitcpio -P 然后重启,这些操作你都做了吧?

是的,非常确信都做了,回帖前我又跑了一次,这是nvtop的输出

 Device 1 [AMD Radeon RX 7900 XTX]             PCIe GEN 1@ 4x RX: N/A TX: N/A
 GPU 822MHz  MEM 96MHz   TEMP  48°C FAN   0% POW  26 / 339 W
 GPU[|||||||||||                           27%] MEM[                        0.131Gi/23.984Gi]

看来确实是有 bug 好像。。

RX 6800 XT shows as PCIe gen 1@16x in nvtop

离线

#5 2024-04-22 23:40:58

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

哇,三家显卡齐聚一堂!

离线

#6 2024-04-23 00:45:55

米大粒
会员
注册时间: 2024-04-22
帖子: 8

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

BRS5672023 说:

看来确实是有 bug 好像。。

RX 6800 XT shows as PCIe gen 1@16x in nvtop


也就是说这是nvtop的bug?那有没有什么办法测试我的AMD外置显卡坞的速率呢,我现在大部分游戏只有40~60fps,感觉和这张显卡的能力不符

离线

#7 2024-04-23 01:16:58

BRS5672023
会员
注册时间: 2020-07-07
帖子: 132

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

米大粒 说:
BRS5672023 说:

看来确实是有 bug 好像。。

RX 6800 XT shows as PCIe gen 1@16x in nvtop


也就是说这是nvtop的bug?那有没有什么办法测试我的AMD外置显卡坞的速率呢,我现在大部分游戏只有40~60fps,感觉和这张显卡的能力不符

你看一下贴子最后的内容,说是有可能在你重启或者是睡眠唤醒之后会正确地 initialize 到 pcie 4.0 的状态。。你可以按照他给的 benchmark 对比一下

最近编辑记录 BRS5672023 (2024-04-23 01:21:24)

离线

#8 2024-04-23 02:11:58

米大粒
会员
注册时间: 2024-04-22
帖子: 8

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

BRS5672023 说:

你看一下贴子最后的内容,说是有可能在你重启或者是睡眠唤醒之后会正确地 initialize 到 pcie 4.0 的状态。。你可以按照他给的 benchmark 对比一下

感谢信息,我试着跑了一下这个测试

$ echo 4 | sudo tee /sys/kernel/debug/dri/2/amdgpu_benchmark

然后在dmesg中查看结果,惨不忍睹,按文中提供的标准gen 4 speeds 要有(256 gigabits/second or 32 gigabytes/second),差了一个数量级...所以nvtop的结果是没问题的,我感觉还是显卡驱动的问题?

dmesg
[11540.530077] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 4 kB from 4 to 2 in 40 ms, throughput: 816 Mb/s or 102 MB/s
[11540.556684] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 8 kB from 4 to 2 in 26 ms, throughput: 2520 Mb/s or 315 MB/s
[11540.583783] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 16 kB from 4 to 2 in 26 ms, throughput: 5040 Mb/s or 630 MB/s
[11540.616820] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 32 kB from 4 to 2 in 32 ms, throughput: 8192 Mb/s or 1024 MB/s
[11540.660417] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 64 kB from 4 to 2 in 43 ms, throughput: 12192 Mb/s or 1524 MB/s
[11540.724421] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 128 kB from 4 to 2 in 63 ms, throughput: 16640 Mb/s or 2080 MB/s
[11540.836445] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 256 kB from 4 to 2 in 111 ms, throughput: 18888 Mb/s or 2361 MB/s
[11541.036311] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 512 kB from 4 to 2 in 199 ms, throughput: 21072 Mb/s or 2634 MB/s
[11541.472369] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 1024 kB from 4 to 2 in 435 ms, throughput: 19280 Mb/s or 2410 MB/s
[11542.229627] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 2048 kB from 4 to 2 in 756 ms, throughput: 22192 Mb/s or 2774 MB/s
[11543.741302] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 4096 kB from 4 to 2 in 1510 ms, throughput: 22216 Mb/s or 2777 MB/s
[11546.784525] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 8192 kB from 4 to 2 in 3041 ms, throughput: 22064 Mb/s or 2758 MB/s
[11552.630359] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 16384 kB from 4 to 2 in 5843 ms, throughput: 22968 Mb/s or 2871 MB/s
[11564.402252] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 32768 kB from 4 to 2 in 11767 ms, throughput: 22808 Mb/s or 2851 MB/s
[11587.458711] amdgpu 0000:0a:00.0: amdgpu: amdgpu: dma 1024 bo moves of 65536 kB from 4 to 2 in 23050 ms, throughput: 23288 Mb/s or 2911 MB/s

最近编辑记录 米大粒 (2024-04-23 02:12:57)

离线

#9 2024-04-23 09:51:34

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

咦,那我的显卡怎么最高只有 13888 MB/s。

离线

#10 2024-04-23 14:12:02

米大粒
会员
注册时间: 2024-04-22
帖子: 8

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

米大粒 说:
依云 说:

咦,那我的显卡怎么最高只有 13888 MB/s。

老哥贴一下你的数据看看,但即便如此,我只有2911 MB/s

离线

#11 2024-04-23 17:02:03

BRS5672023
会员
注册时间: 2020-07-07
帖子: 132

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

我贴一下我的 7800xt 的数据吧。。

[  811.162631] amdgpu 0000:09:00.0: amdgpu: benchmark test: 4 (VRAM to GTT, buffer size sweep, powers of 2)
[  811.180207] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 4 kB from 4 to 2 in 17 ms, throughput: 1920 Mb/s or 240 MB/s
[  811.197748] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 8 kB from 4 to 2 in 17 ms, throughput: 3848 Mb/s or 481 MB/s
[  811.214064] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 16 kB from 4 to 2 in 16 ms, throughput: 8192 Mb/s or 1024 MB/s
[  811.230223] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 32 kB from 4 to 2 in 16 ms, throughput: 16384 Mb/s or 2048 MB/s
[  811.247775] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 64 kB from 4 to 2 in 17 ms, throughput: 30840 Mb/s or 3855 MB/s
[  811.268125] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 128 kB from 4 to 2 in 20 ms, throughput: 52424 Mb/s or 6553 MB/s
[  811.292745] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 256 kB from 4 to 2 in 24 ms, throughput: 87376 Mb/s or 10922 MB/s
[  811.327498] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 512 kB from 4 to 2 in 34 ms, throughput: 123360 Mb/s or 15420 MB/s
[  811.382236] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 1024 kB from 4 to 2 in 54 ms, throughput: 155344 Mb/s or 19418 MB/s
[  811.481174] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 2048 kB from 4 to 2 in 98 ms, throughput: 171192 Mb/s or 21399 MB/s
[  811.655383] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 4096 kB from 4 to 2 in 173 ms, throughput: 193952 Mb/s or 24244 MB/s
[  811.981454] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 8192 kB from 4 to 2 in 325 ms, throughput: 206488 Mb/s or 25811 MB/s
[  812.610874] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 16384 kB from 4 to 2 in 628 ms, throughput: 213720 Mb/s or 26715 MB/s
[  813.845987] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 32768 kB from 4 to 2 in 1232 ms, throughput: 217880 Mb/s or 27235 MB/s
[  816.314670] amdgpu 0000:09:00.0: amdgpu: amdgpu: dma 1024 bo moves of 65536 kB from 4 to 2 in 2464 ms, throughput: 217880 Mb/s or 27235 MB/s

离线

#12 2024-04-23 17:06:42

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

VRAM to GTT?你的内存频率多少?我的是 3600MHz x2 双通道。

离线

#13 2024-04-23 18:01:04

BRS5672023
会员
注册时间: 2020-07-07
帖子: 132

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

依云 说:

VRAM to GTT?你的内存频率多少?我的是 3600MHz x2 双通道。

我也一样的 3600 双通道的内存。。

离线

#14 2024-04-23 18:07:32

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

那可能就是我的 6650 XT 性能差了。

离线

#15 2024-04-23 22:33:51

米大粒
会员
注册时间: 2024-04-22
帖子: 8

Re: 如何解决TH3P4G3雷电口外置显卡坞被限制PCIE 1X?

BRS5672023 说:
依云 说:

VRAM to GTT?你的内存频率多少?我的是 3600MHz x2 双通道。

我也一样的 3600 双通道的内存。。

所以,我感觉瓶颈还是在TH3P4G3上,或者是amdgpu驱动中对所有eGPU都有bug

离线

页脚