Reset PCI driver?

Bryce Edwards bryce at bryce.net
Sat May 11 01:41:39 UTC 2019


I was experimenting with passing thru one of my PCI devices and ran the
commands:

s devctl detach pci0:20:0
s devctl set driver pci0:20:0 ppt

It seems to have reset many of my PCI items to no longer have a driver.
See my pciconf output below.  To fix it back, I tried "sudo devctl clear
driver -f pci0" and it didn't do anything.  Also, this persists past full
power cycle, which strikes me as odd.  Before I ran the detach, there
weren't any none* pci devices.

$uname -a
FreeBSD tahiti.local 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64

$ pciconf -l
hostb0 at pci0:0:0:0: class=0x060000 card=0x083415d9 chip=0x6f008086 rev=0x01
hdr=0x00
pcib2 at pci0:0:1:0: class=0x060400 card=0x083415d9 chip=0x6f028086 rev=0x01
hdr=0x01
pcib3 at pci0:0:3:0: class=0x060400 card=0x083415d9 chip=0x6f088086 rev=0x01
hdr=0x01
pcib4 at pci0:0:3:2: class=0x060400 card=0x083415d9 chip=0x6f0a8086 rev=0x01
hdr=0x01
pcib5 at pci0:0:3:3: class=0x060400 card=0x083415d9 chip=0x6f0b8086 rev=0x01
hdr=0x01
ioat0 at pci0:0:4:0: class=0x088000 card=0x083415d9 chip=0x6f208086 rev=0x01
hdr=0x00
ioat1 at pci0:0:4:1: class=0x088000 card=0x083415d9 chip=0x6f218086 rev=0x01
hdr=0x00
ioat2 at pci0:0:4:2: class=0x088000 card=0x083415d9 chip=0x6f228086 rev=0x01
hdr=0x00
ioat3 at pci0:0:4:3: class=0x088000 card=0x083415d9 chip=0x6f238086 rev=0x01
hdr=0x00
ioat4 at pci0:0:4:4: class=0x088000 card=0x083415d9 chip=0x6f248086 rev=0x01
hdr=0x00
ioat5 at pci0:0:4:5: class=0x088000 card=0x083415d9 chip=0x6f258086 rev=0x01
hdr=0x00
ioat6 at pci0:0:4:6: class=0x088000 card=0x083415d9 chip=0x6f268086 rev=0x01
hdr=0x00
ioat7 at pci0:0:4:7: class=0x088000 card=0x083415d9 chip=0x6f278086 rev=0x01
hdr=0x00
none0 at pci0:0:5:0: class=0x088000 card=0x083415d9 chip=0x6f288086 rev=0x01
hdr=0x00
none1 at pci0:0:5:1: class=0x088000 card=0x083415d9 chip=0x6f298086 rev=0x01
hdr=0x00
none2 at pci0:0:5:2: class=0x088000 card=0x083415d9 chip=0x6f2a8086 rev=0x01
hdr=0x00
ioapic0 at pci0:0:5:4: class=0x080020 card=0x083415d9 chip=0x6f2c8086 rev=0x01
hdr=0x00
none3 at pci0:0:17:0: class=0xff0000 card=0x083415d9 chip=0x8d7c8086 rev=0x05
hdr=0x00
ahci0 at pci0:0:17:4: class=0x010601 card=0x083415d9 chip=0x8d628086 rev=0x05
hdr=0x00
xhci0 at pci0:0:20:0: class=0x0c0330 card=0x083415d9 chip=0x8d318086 rev=0x05
hdr=0x00
none4 at pci0:0:22:0: class=0x078000 card=0x083415d9 chip=0x8d3a8086 rev=0x05
hdr=0x00
none5 at pci0:0:22:1: class=0x078000 card=0x083415d9 chip=0x8d3b8086 rev=0x05
hdr=0x00
ehci0 at pci0:0:26:0: class=0x0c0320 card=0x083415d9 chip=0x8d2d8086 rev=0x05
hdr=0x00
pcib6 at pci0:0:28:0: class=0x060400 card=0x083415d9 chip=0x8d108086 rev=0xd5
hdr=0x01
pcib7 at pci0:0:28:6: class=0x060400 card=0x083415d9 chip=0x8d1c8086 rev=0xd5
hdr=0x01
ehci1 at pci0:0:29:0: class=0x0c0320 card=0x083415d9 chip=0x8d268086 rev=0x05
hdr=0x00
isab0 at pci0:0:31:0: class=0x060100 card=0x083415d9 chip=0x8d448086 rev=0x05
hdr=0x00
ahci1 at pci0:0:31:2: class=0x010601 card=0x083415d9 chip=0x8d028086 rev=0x05
hdr=0x00
none6 at pci0:0:31:3: class=0x0c0500 card=0x083415d9 chip=0x8d228086 rev=0x05
hdr=0x00
nvme0 at pci0:3:0:0: class=0x010802 card=0x37028086 chip=0x09538086 rev=0x01
hdr=0x00
igb0 at pci0:4:0:0: class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01
hdr=0x00
igb1 at pci0:4:0:1: class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01
hdr=0x00
pcib8 at pci0:6:0:0: class=0x060400 card=0x083415d9 chip=0x11501a03 rev=0x03
hdr=0x01
vgapci0 at pci0:7:0:0: class=0x030000 card=0x083415d9 chip=0x20001a03 rev=0x30
hdr=0x00
none7 at pci0:255:11:0: class=0x088000 card=0x083415d9 chip=0x6f818086
rev=0x01 hdr=0x00
none8 at pci0:255:11:1: class=0x110100 card=0x083415d9 chip=0x6f368086
rev=0x01 hdr=0x00
none9 at pci0:255:11:2: class=0x110100 card=0x083415d9 chip=0x6f378086
rev=0x01 hdr=0x00
none10 at pci0:255:11:3: class=0x088000 card=0x00000000 chip=0x6f768086
rev=0x01 hdr=0x00
none11 at pci0:255:12:0: class=0x088000 card=0x083415d9 chip=0x6fe08086
rev=0x01 hdr=0x00
none12 at pci0:255:12:1: class=0x088000 card=0x083415d9 chip=0x6fe18086
rev=0x01 hdr=0x00
none13 at pci0:255:12:2: class=0x088000 card=0x083415d9 chip=0x6fe28086
rev=0x01 hdr=0x00
none14 at pci0:255:12:3: class=0x088000 card=0x083415d9 chip=0x6fe38086
rev=0x01 hdr=0x00
none15 at pci0:255:12:4: class=0x088000 card=0x083415d9 chip=0x6fe48086
rev=0x01 hdr=0x00
none16 at pci0:255:12:5: class=0x088000 card=0x083415d9 chip=0x6fe58086
rev=0x01 hdr=0x00
none17 at pci0:255:15:0: class=0x088000 card=0x083415d9 chip=0x6ff88086
rev=0x01 hdr=0x00
none18 at pci0:255:15:1: class=0x088000 card=0x083415d9 chip=0x6ff98086
rev=0x01 hdr=0x00
none19 at pci0:255:15:4: class=0x088000 card=0x083415d9 chip=0x6ffc8086
rev=0x01 hdr=0x00
none20 at pci0:255:15:5: class=0x088000 card=0x083415d9 chip=0x6ffd8086
rev=0x01 hdr=0x00
none21 at pci0:255:15:6: class=0x088000 card=0x083415d9 chip=0x6ffe8086
rev=0x01 hdr=0x00
none22 at pci0:255:16:0: class=0x088000 card=0x083415d9 chip=0x6f1d8086
rev=0x01 hdr=0x00
none23 at pci0:255:16:1: class=0x110100 card=0x083415d9 chip=0x6f348086
rev=0x01 hdr=0x00
none24 at pci0:255:16:5: class=0x088000 card=0x083415d9 chip=0x6f1e8086
rev=0x01 hdr=0x00
none25 at pci0:255:16:6: class=0x110100 card=0x083415d9 chip=0x6f7d8086
rev=0x01 hdr=0x00
none26 at pci0:255:16:7: class=0x088000 card=0x083415d9 chip=0x6f1f8086
rev=0x01 hdr=0x00
none27 at pci0:255:18:0: class=0x088000 card=0x083415d9 chip=0x6fa08086
rev=0x01 hdr=0x00
none28 at pci0:255:18:1: class=0x110100 card=0x083415d9 chip=0x6f308086
rev=0x01 hdr=0x00
none29 at pci0:255:19:0: class=0x088000 card=0x083415d9 chip=0x6fa88086
rev=0x01 hdr=0x00
none30 at pci0:255:19:1: class=0x088000 card=0x083415d9 chip=0x6f718086
rev=0x01 hdr=0x00
none31 at pci0:255:19:2: class=0x088000 card=0x083415d9 chip=0x6faa8086
rev=0x01 hdr=0x00
none32 at pci0:255:19:3: class=0x088000 card=0x083415d9 chip=0x6fab8086
rev=0x01 hdr=0x00
none33 at pci0:255:19:4: class=0x088000 card=0x083415d9 chip=0x6fac8086
rev=0x01 hdr=0x00
none34 at pci0:255:19:5: class=0x088000 card=0x083415d9 chip=0x6fad8086
rev=0x01 hdr=0x00
none35 at pci0:255:19:6: class=0x088000 card=0x00000000 chip=0x6fae8086
rev=0x01 hdr=0x00
none36 at pci0:255:19:7: class=0x088000 card=0x00000000 chip=0x6faf8086
rev=0x01 hdr=0x00
none37 at pci0:255:20:0: class=0x088000 card=0x083415d9 chip=0x6fb08086
rev=0x01 hdr=0x00
none38 at pci0:255:20:1: class=0x088000 card=0x083415d9 chip=0x6fb18086
rev=0x01 hdr=0x00
none39 at pci0:255:20:2: class=0x088000 card=0x083415d9 chip=0x6fb28086
rev=0x01 hdr=0x00
none40 at pci0:255:20:3: class=0x088000 card=0x083415d9 chip=0x6fb38086
rev=0x01 hdr=0x00
none41 at pci0:255:20:4: class=0x088000 card=0x00000000 chip=0x6fbc8086
rev=0x01 hdr=0x00
none42 at pci0:255:20:5: class=0x088000 card=0x00000000 chip=0x6fbd8086
rev=0x01 hdr=0x00
none43 at pci0:255:20:6: class=0x088000 card=0x00000000 chip=0x6fbe8086
rev=0x01 hdr=0x00
none44 at pci0:255:20:7: class=0x088000 card=0x00000000 chip=0x6fbf8086
rev=0x01 hdr=0x00
none45 at pci0:255:21:0: class=0x088000 card=0x083415d9 chip=0x6fb48086
rev=0x01 hdr=0x00
none46 at pci0:255:21:1: class=0x088000 card=0x083415d9 chip=0x6fb58086
rev=0x01 hdr=0x00
none47 at pci0:255:21:2: class=0x088000 card=0x083415d9 chip=0x6fb68086
rev=0x01 hdr=0x00
none48 at pci0:255:21:3: class=0x088000 card=0x083415d9 chip=0x6fb78086
rev=0x01 hdr=0x00
none49 at pci0:255:22:0: class=0x088000 card=0x00000000 chip=0x6f688086
rev=0x01 hdr=0x00
none50 at pci0:255:22:6: class=0x088000 card=0x00000000 chip=0x6f6e8086
rev=0x01 hdr=0x00
none51 at pci0:255:22:7: class=0x088000 card=0x00000000 chip=0x6f6f8086
rev=0x01 hdr=0x00
none52 at pci0:255:23:0: class=0x088000 card=0x00000000 chip=0x6fd08086
rev=0x01 hdr=0x00
none53 at pci0:255:23:4: class=0x088000 card=0x00000000 chip=0x6fb88086
rev=0x01 hdr=0x00
none54 at pci0:255:23:5: class=0x088000 card=0x00000000 chip=0x6fb98086
rev=0x01 hdr=0x00
none55 at pci0:255:23:6: class=0x088000 card=0x00000000 chip=0x6fba8086
rev=0x01 hdr=0x00
none56 at pci0:255:23:7: class=0x088000 card=0x00000000 chip=0x6fbb8086
rev=0x01 hdr=0x00
none57 at pci0:255:30:0: class=0x088000 card=0x083415d9 chip=0x6f988086
rev=0x01 hdr=0x00
none58 at pci0:255:30:1: class=0x088000 card=0x083415d9 chip=0x6f998086
rev=0x01 hdr=0x00
none59 at pci0:255:30:2: class=0x088000 card=0x083415d9 chip=0x6f9a8086
rev=0x01 hdr=0x00
none60 at pci0:255:30:3: class=0x088000 card=0x083415d9 chip=0x6fc08086
rev=0x01 hdr=0x00
none61 at pci0:255:30:4: class=0x088000 card=0x083415d9 chip=0x6f9c8086
rev=0x01 hdr=0x00
none62 at pci0:255:31:0: class=0x088000 card=0x00000000 chip=0x6f888086
rev=0x01 hdr=0x00
none63 at pci0:255:31:2: class=0x088000 card=0x00000000 chip=0x6f8a8086
rev=0x01 hdr=0x00

Thanks for the help,

Bryce


More information about the freebsd-questions mailing list