From owner-freebsd-bugs@freebsd.org Sat Mar 25 12:59:35 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F43CD1BC4A for ; Sat, 25 Mar 2017 12:59:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAFC51E7C for ; Sat, 25 Mar 2017 12:59:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2PCxYRn001964 for ; Sat, 25 Mar 2017 12:59:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218113] igb(4) panic on guest passthrough of i340 Date: Sat, 25 Mar 2017 12:59:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: igor@hybrid-lab.co.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2017 12:59:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218113 Bug ID: 218113 Summary: igb(4) panic on guest passthrough of i340 Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: igor@hybrid-lab.co.uk I've been trying to build a virtualised box with FreeBSD as a guest to do s= ome network stuff and I needed to passthrough physical NICs to the guest. I attempted to passthrough a port of i340-T4 to FreeBSD guest, but this caused panic at boot time:=20 igb0: mem 0xe7a00000-0xe7a7ffff,0xe7afc000-0xe7afffff irq 19 at device 0.0 on pci4 panic: resource_list_release: can't find resource cpuid =3D 0 KDB: stack backtrace: #0 0xffffffff80b240f7 at kdb_backtrace+0x67 #1 0xffffffff80ad9462 at vpanic+0x182 #2 0xffffffff80ad92d3 at panic+0x43 #3 0xffffffff80b16d5f at resource_list_release+0x1bf #4 0xffffffff8054a7d4 at igb_attach+0x804 #5 0xffffffff80b160f0 at device_attach+0x420 #6 0xffffffff80b172dd at bus_generic_attach+0x2d #7 0xffffffff80711145 at pci_attach+0xd5 #8 0xffffffff80b160f0 at device_attach+0x420 #9 0xffffffff80b172dd at bus_generic_attach+0x2d #10 0xffffffff803c02e1 at acpi_pcib_pci_attach+0xa1 #11 0xffffffff80b160f0 at device_attach+0x420 #12 0xffffffff80b172dd at bus_generic_attach+0x2d #13 0xffffffff80711145 at pci_attach+0xd5 #14 0xffffffff80b160f0 at device_attach+0x420 #15 0xffffffff80b172dd at bus_generic_attach+0x2d #16 0xffffffff803bfa1a at acpi_pcib_acpi_attach+0x3ba #17 0xffffffff80b160f0 at device_attach+0x420 This behaviour is consistent with both ESXi 6.5 and KVM (on Ubuntu 16.04.2) hypervisors, yet when the same is attempted with Linux (Ubuntu 16.04.2) as guest, everything seems alright. The problem doesn't arise when the NIC is i350-T4. For completeness:=20 % uname -a FreeBSD gamma 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:= 04 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=