Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DearthnVader

Suspended
Original poster
Dec 17, 2015
2,207
6,392
Red Springs, NC
@joevt

I'm having trouble with setting 5.0 GT/s via pciutils on Catalina.

First, I can't update the PCI ID's database as /usr is readonly:

Code:
sudo ./update-pciids
/usr/local/share/pci.ids.gz is read-only, exiting.

Is there a way to redirect the update command to use a directory that isn't read only?

Next I don't fully understand how to convert the output of lspci to the proper format for setepci:

Code:
sudo /Users/jam/Downloads/opt/pciutils/sbin/lspci
00:00.0 Class 0600: Device 8086:4003 (rev 20)
00:01.0 Class 0604: Device 8086:4021 (rev 20)
00:05.0 Class 0604: Device 8086:4025 (rev 20)
00:09.0 Class 0604: Device 8086:4029 (rev 20)
00:0f.0 Class 0880: Device 8086:402f (rev 20)
00:10.0 Class 0600: Device 8086:4030 (rev 20)
00:10.1 Class 0600: Device 8086:4030 (rev 20)
00:10.2 Class 0600: Device 8086:4030 (rev 20)
00:10.3 Class 0600: Device 8086:4030 (rev 20)
00:10.4 Class 0600: Device 8086:4030 (rev 20)
00:11.0 Class 0600: Device 8086:4031 (rev 20)
00:15.0 Class 0600: Device 8086:4035 (rev 20)
00:15.1 Class 0600: Device 8086:4035 (rev 20)
00:16.0 Class 0600: Device 8086:4036 (rev 20)
00:16.1 Class 0600: Device 8086:4036 (rev 20)
00:1b.0 Class 0403: Device 8086:269a (rev 09)
00:1c.0 Class 0604: Device 8086:2690 (rev 09)
00:1c.1 Class 0604: Device 8086:2692 (rev 09)
00:1c.2 Class 0604: Device 8086:2694 (rev 09)
00:1c.3 Class 0604: Device 8086:2696 (rev 09)
00:1d.0 Class 0c03: Device 8086:2688 (rev 09)
00:1d.1 Class 0c03: Device 8086:2689 (rev 09)
00:1d.2 Class 0c03: Device 8086:268a (rev 09)
00:1d.3 Class 0c03: Device 8086:268b (rev 09)
00:1d.7 Class 0c03: Device 8086:268c (rev 09)
00:1e.0 Class 0604: Device 8086:244e (rev d9)
00:1f.0 Class 0601: Device 8086:2670 (rev 09)
00:1f.1 Class 0101: Device 8086:269e (rev 09)
00:1f.2 Class 0106: Device 8086:2681 (rev 09)
00:1f.3 Class 0c05: Device 8086:269b (rev 09)
02:00.0 Class 0300: Device 1002:67df (rev e7) //trying to set my RX580 to 5 GT/s
02:00.1 Class 0403: Device 1002:aaf0
03:00.0 Class 0604: Device 8086:3500 (rev 01)
03:00.3 Class 0604: Device 8086:350c (rev 01)
04:00.0 Class 0604: Device 8086:3510 (rev 01)
04:01.0 Class 0604: Device 8086:3514 (rev 01)
04:02.0 Class 0604: Device 8086:3518 (rev 01)
05:00.0 Class 0c03: Device 1b73:1100 (rev 10)
06:00.0 Class 0108: Device 144d:a804
07:00.0 Class 0200: Device 8086:1096 (rev 01)
07:00.1 Class 0200: Device 8086:1096 (rev 01)
0b:00.0 Class 0604: Device 104c:823e
0c:00.0 Class 0c00: Device 104c:823f
0d:00.0 Class 0280: Device 14e4:4328 (rev 03)
jam@jamess-Mac-Pro ~ % cd /Users/jam/Downloads/opt/pciutils/sbin
jam@jamess-Mac-Pro sbin % sudo ./update-pciids
/usr/local/share/pci.ids.gz is read-only, exiting.
jam@jamess-Mac-Pro sbin % sudo ./setpci -s 00:2 CAP_EXP+30.w=2:F // Not the proper format
setpci: Warning: No devices selected for "CAP_EXP+30.w=2:F".
 
Something not quite working with Catalina:

Code:
sudo /Users/jam/Downloads/opt/pciutils/sbin/lspci -nnvt
-[0000:00]-+-00.0  Device [8086:4003]
           +-01.0-[01]--
           +-05.0-[02]--+-00.0  Device [1002:67df]
           |            \-00.1  Device [1002:aaf0]
           +-09.0-[03-08]--+-00.0-[04-07]--+-00.0-[05]----00.0  Device [1b73:1100]
           |               |               +-01.0-[06]--
           |               |               \-02.0-[07]--+-00.0  Device [8086:1096]
           |               |                            \-00.1  Device [8086:1096]
           |               \-00.3-[08]--
           +-0f.0  Device [8086:402f]
           +-10.0  Device [8086:4030]
           +-10.1  Device [8086:4030]
           +-10.2  Device [8086:4030]
           +-10.3  Device [8086:4030]
           +-10.4  Device [8086:4030]
           +-11.0  Device [8086:4031]
           +-15.0  Device [8086:4035]
           +-15.1  Device [8086:4035]
           +-16.0  Device [8086:4036]
           +-16.1  Device [8086:4036]
           +-1b.0  Device [8086:269a]
           +-1c.0-[09]--
           +-1c.1-[0a]--
           +-1c.2-[0b-0c]----00.0-[0c]----00.0  Device [104c:823f]
           +-1c.3-[0d]----00.0  Device [14e4:4328]
           +-1d.0  Device [8086:2688]
           +-1d.1  Device [8086:2689]
           +-1d.2  Device [8086:268a]
           +-1d.3  Device [8086:268b]
           +-1d.7  Device [8086:268c]
           +-1e.0-[0e]--
           +-1f.0  Device [8086:2670]
           +-1f.1  Device [8086:269e]
           +-1f.2  Device [8086:2681]
           \-1f.3  Device [8086:269b]
jam@jamess-Mac-Pro sbin % rootport=00:5
jam@jamess-Mac-Pro sbin % linkstatus=$(sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci  -s $rootport CAP_EXP+12.w); echo '# Before: PCIe' $(( 0x$linkstatus & 15)).0 x$(( 0x$linkstatus >> 4 & 31))
# Before: PCIe 1.0 x16
jam@jamess-Mac-Pro sbin % sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci  -s $rootport CAP_EXP+30.w=$speed:F
jam@jamess-Mac-Pro sbin % sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci -s $rootport CAP_EXP+10.w=20:20
jam@jamess-Mac-Pro sbin % linkstatus=$(sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci -s $rootport CAP_EXP+12.w); echo '#  After: PCIe' $(( 0x$linkstatus & 15)).0 x$(( 0x$linkstatus >> 4 & 31))
#  After: PCIe 1.0 x16
jam@jamess-Mac-Pro sbin %
[automerge]1577197766[/automerge]
which MP 1,1 2,1 3,1 4,1 5,1 6,1 7,1 ????
3,1 here.
 
Seems to work with an NVMe PCI-E card in slot 2, tho ASP still reports 2.5 GT/s:

Code:
sudo /Users/jam/Downloads/opt/pciutils/sbin/lspci -nnvt
-[0000:00]-+-00.0  Device [8086:4003]
           +-01.0-[01]----00.0  Device [144d:a804]
           +-05.0-[02]--+-00.0  Device [1002:67df]
           |            \-00.1  Device [1002:aaf0]
           +-09.0-[03-08]--+-00.0-[04-07]--+-00.0-[05]----00.0  Device [1b73:1100]
           |               |               +-01.0-[06]--
           |               |               \-02.0-[07]--+-00.0  Device [8086:1096]
           |               |                            \-00.1  Device [8086:1096]
           |               \-00.3-[08]--
           +-0f.0  Device [8086:402f]
           +-10.0  Device [8086:4030]
           +-10.1  Device [8086:4030]
           +-10.2  Device [8086:4030]
           +-10.3  Device [8086:4030]
           +-10.4  Device [8086:4030]
           +-11.0  Device [8086:4031]
           +-15.0  Device [8086:4035]
           +-15.1  Device [8086:4035]
           +-16.0  Device [8086:4036]
           +-16.1  Device [8086:4036]
           +-1b.0  Device [8086:269a]
           +-1c.0-[09]--
           +-1c.1-[0a]--
           +-1c.2-[0b-0c]----00.0-[0c]----00.0  Device [104c:823f]
           +-1c.3-[0d]----00.0  Device [14e4:4328]
           +-1d.0  Device [8086:2688]
           +-1d.1  Device [8086:2689]
           +-1d.2  Device [8086:268a]
           +-1d.3  Device [8086:268b]
           +-1d.7  Device [8086:268c]
           +-1e.0-[0e]--
           +-1f.0  Device [8086:2670]
           +-1f.1  Device [8086:269e]
           +-1f.2  Device [8086:2681]
           \-1f.3  Device [8086:269b]
jam@jamess-Mac-Pro sbin % speed=2    
jam@jamess-Mac-Pro sbin % rootport=00:1
jam@jamess-Mac-Pro sbin % linkstatus=$(sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci  -s $rootport CAP_EXP+12.w); echo '# Before: PCIe' $(( 0x$linkstatus & 15)).0 x$(( 0x$linkstatus >> 4 & 31))
# Before: PCIe 1.0 x4
jam@jamess-Mac-Pro sbin % sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci  -s $rootport CAP_EXP+30.w=$speed:F
jam@jamess-Mac-Pro sbin % sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci -s $rootport CAP_EXP+10.w=20:20
jam@jamess-Mac-Pro sbin % linkstatus=$(sudo /Users/jam/Downloads/opt/pciutils/sbin/setpci -s $rootport CAP_EXP+12.w); echo '#  After: PCIe' $(( 0x$linkstatus & 15)).0 x$(( 0x$linkstatus >> 4 & 31))
#  After: PCIe 2.0 x4
jam@jamess-Mac-Pro sbin %

So, maybe I need to alter the code because of the RX580's audio device @02.00.1?

Blackmagic HD Speed Test confirms my NVMe is working @5.0 GT/s.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.