From owner-freebsd-usb@freebsd.org Wed Sep 28 08:27:24 2016 Return-Path: Delivered-To: freebsd-usb@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 D2BB4BEC4DC; Wed, 28 Sep 2016 08:27:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 9B2661BDF; Wed, 28 Sep 2016 08:27:24 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id EA86F1FE023; Wed, 28 Sep 2016 10:27:22 +0200 (CEST) Subject: Re: Status of PCIe Hotplug? To: Jan Henrik Sylvester , Eric van Gyzen References: <791ee95b-ab4e-f07e-6b8d-0e0b6c49ceb0@janh.de> <58f84457-d775-3023-5727-a326bc8df722@FreeBSD.org> Cc: FreeBSD Stable , FreeBSD-USB Mailing List , Borja Marcos From: Hans Petter Selasky Message-ID: <05657098-a8dd-9d0d-ea75-4c3fdc582795@selasky.org> Date: Wed, 28 Sep 2016 10:32:15 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 08:27:24 -0000 Hi, Can you compile your kernel with debugging enabled so that we get the sourcelines in the dump below. Also please include some parts of the preceeding dmesg. Do you have USB compiled into the kernel or loaded as a module? What does kldstat output after you plug the card? What is the dmesg leading up to this? The bug looks like some .ko was unloaded too early, due to refcounts dropping incorrectly. --HPS > > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 1; acpic id = 01 > instruction pointer = 0x20:0xffffffff80b1549c > stack pointer = 0x28:0xfffffe022f62ca00 > frame pointer = 0x28:0xfffffe022f62ca70 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 14 (usbus1) > trap number = 9 > panic: general protection fault > cpuid = 1 > KDB: stack backtrace: > #0 0xffffffff80b24077 at kdb_backtrace+0x67 > #1 0xffffffff80ad93e2 at vpanic+0x182 > #2 0xffffffff80ad9253 at panic+0x43 > #3 0xffffffff80fa0d31 at trap_fatal+0x351 > #4 0xffffffff80fa09c8 at trap+0x768 > #5 0xffffffff80f84141 at calltrap+0x8 > #6 0xffffffff808f2f63 at usb_detach_device+0xf3 > #7 0xffffffff808f1d5b at usb_unconfigure+0x2b > #8 0xffffffff808f5623 at usb_free_device+0x103 > #9 0xffffffff808f58b1 at usb_bus_detach+0x161 > #10 0xffffffff80903e95 at usb_process+0x125 > #11 0xffffffff80a90055 at fork_exit+0x85 > #12 0xffffffff80f8467e at fork_trampoline+0xe > Uptime: 18m27s > Automatic reboot in 15 seconds - press a key on the console to abort