Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2019 20:41:25 -0500
From:      Bryce Edwards <bryce@bryce.net>
To:        freebsd-questions@freebsd.org
Subject:   Reset PCI driver?
Message-ID:  <CAO_ZHU8gQbjULn7HMtYQtyjWZYo-S_jnrd7jmyuAJBmBtxs7Kg@mail.gmail.com>

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

Thanks for the help,

Bryce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO_ZHU8gQbjULn7HMtYQtyjWZYo-S_jnrd7jmyuAJBmBtxs7Kg>