From owner-freebsd-usb@FreeBSD.ORG Tue May 20 12:13:02 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6652E892; Tue, 20 May 2014 12:13:02 +0000 (UTC) Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E1B12ECC; Tue, 20 May 2014 12:13:02 +0000 (UTC) Received: by mail-yh0-f47.google.com with SMTP id z6so251178yhz.6 for ; Tue, 20 May 2014 05:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5Ww9n81ADjuM1GSBC+jODb9T9cXCG9aOk5b1/qjQx9g=; b=vbHcaP5LpZCFawO2FyhzHJOJsYk526OT2ApuU0WxX7cV7rAWXp8xJS4lmJCn0nARrg 2F2BZSGhwCAk+NGMvaEz/6i6m2hhgj2JN5dwm10r0lSLtOmF6V7QhfVEVgm/3JiPqj2A e4MK+ZlbIz1oKf8tei/W+Ilu7Ttgy2F4O6Trzz/IcFRxjbXsy7vihQ5AuglU/mq6mhdY FoWN6AFPoGhia/a94myiZ7bSanIEYdp5mz8I0T5MLcYOWnO5Xywxil7DjGgzRPaWsn7j Xsl04eECXfM4NWnF52qxWz/edyGS80N6ezj1viHfPXkxftz7uBlqp7n8SM148AQ0HDAZ oTzg== MIME-Version: 1.0 X-Received: by 10.236.25.10 with SMTP id y10mr26130204yhy.63.1400587981329; Tue, 20 May 2014 05:13:01 -0700 (PDT) Received: by 10.170.89.65 with HTTP; Tue, 20 May 2014 05:13:01 -0700 (PDT) In-Reply-To: <537AEC79.6080406@selasky.org> References: <537AEC79.6080406@selasky.org> Date: Tue, 20 May 2014 14:13:01 +0200 Message-ID: Subject: Re: if_rsu hardware causes a kernel panic on removal.. From: Idwer Vollering To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: hps@bitfrost.no, freebsd-wireless@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 12:13:02 -0000 2014-05-20 7:47 GMT+02:00 Hans Petter Selasky : > On 05/19/14 23:21, Idwer Vollering wrote: >> >> ..while running a kernel that has rsu_debug set to >0. >> >> Line 1712: "fault virtual address = 0xffff804000000000" >> core0.txt -> >> http://ra.openbios.org/~idwer/freebsd/fbsd_10-stable_rsu_panic_core_0.txt >> >> HTH, > > > Hi, > > Does this patch make any difference? Yes, this solves the panic. > > --HPS > > === ./if_rsu.c > ================================================================== > --- ./if_rsu.c (revision 266400) > +++ ./if_rsu.c (local) > @@ -423,8 +423,6 @@ > struct ifnet *ifp = sc->sc_ifp; > struct ieee80211com *ic = ifp->if_l2com; > > - if (!device_is_attached(self)) > - return (0); > rsu_stop(ifp, 1); > usbd_transfer_unsetup(sc->sc_xfer, RSU_N_TRANSFER); > ieee80211_ifdetach(ic); >