From owner-freebsd-questions@freebsd.org Sat May 11 01:41:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5812B158E5BC for ; Sat, 11 May 2019 01:41:39 +0000 (UTC) (envelope-from bryce@bryce.net) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFCD86D551 for ; Sat, 11 May 2019 01:41:37 +0000 (UTC) (envelope-from bryce@bryce.net) Received: by mail-oi1-x22a.google.com with SMTP id 143so5840230oii.4 for ; Fri, 10 May 2019 18:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bryce.net; s=google; h=mime-version:from:date:message-id:subject:to; bh=MmylAPyxfdj5Hd88Y+y18Y4yGi9XDKrAhoTXFBDt3ls=; b=Cpvmok7z9ImI83v0+ZXQ/z2p6LMoRbIp2UsWKu5dkWAMx1BV1EjUJrFWLGBXqkDk9u 20qQAOiMykOndhmxHbn56tZPPFSolenwZ9nsE1QLqeml+6PKvr0it+ykvKxRdUlIA+oz re8H28Z66RmzULe7w/BUIuD2sH59ToPHMUD+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MmylAPyxfdj5Hd88Y+y18Y4yGi9XDKrAhoTXFBDt3ls=; b=tSBJS/1dB80SDgvaVGx1ah6iZbnxLP1qc7CiFMlpmk5Hg34MHbzL/x76qfVqxwnp2D w/cPfoHwQ8tyG9AXukQXuQzL5MRC+Ubhv5h3kdPgr5CIVnH9/DI1t/ntfia6bkZ72cn7 3IaKEWrjskA1f79VHy9kFysWatiKWw4mp9kseK77BPnZWwwlTFLaG2WrY1DEZSPjfmJc 8eJWpJKYUFKR2/wNrQGXVvXW2/iGZK751DWKFZc3zuEfhjOr8CKVPI5YFjpCmeCOVzok HC1wK9DRbi0Ot/k8YMdoHRpMxsSKdjHnDtwEsNGTZ3nC+sd2zEw2cVH0hMQNmslR32Vl SQBA== X-Gm-Message-State: APjAAAXsVLYeOElDix9jpNB2fzUVNuORQNb/Nk0OnWrUW0tZWSRKk+ym r6FU3dnjJIwPjjXSIAscxROvor64ehKKaZzV2gYL3l7EN/R7hw== X-Google-Smtp-Source: APXvYqwAUmA4FGfT+fVUTC5fVnwi36h8mhihYd3bbsa2GhPLAO4AZ88SoOa8DZ61RdNM+39lGV8wYig3isUilnEm6vc= X-Received: by 2002:aca:cfc7:: with SMTP id f190mr6522003oig.158.1557538896466; Fri, 10 May 2019 18:41:36 -0700 (PDT) MIME-Version: 1.0 From: Bryce Edwards Date: Fri, 10 May 2019 20:41:25 -0500 Message-ID: Subject: Reset PCI driver? To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: EFCD86D551 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bryce.net header.s=google header.b=Cpvmok7z; spf=pass (mx1.freebsd.org: domain of bryce@bryce.net designates 2607:f8b0:4864:20::22a as permitted sender) smtp.mailfrom=bryce@bryce.net X-Spamd-Result: default: False [-4.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[bryce.net:s=google]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[bryce.net:+]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,alt3.aspmx.l.google.com,alt2.aspmx.l.google.com,alt4.aspmx.l.google.com]; DMARC_NA(0.00)[bryce.net]; RCVD_IN_DNSWL_NONE(0.00)[a.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.92)[ip: (-9.00), ipnet: 2607:f8b0::/32(-3.25), asn: 15169(-2.27), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.56)[-0.558,0]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2019 01:41:39 -0000 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