From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 15:15:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA7D81065670; Wed, 7 Sep 2011 15:15:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7CEA78FC19; Wed, 7 Sep 2011 15:15:32 +0000 (UTC) Received: by yxk36 with SMTP id 36so562592yxk.13 for ; Wed, 07 Sep 2011 08:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=r5rBM+uRkVuQl44axwi4eLW83akK4UicZzrXz+e3ZaQ=; b=GBlx7kPu1BoVlU97e2n/1rtwvPZROPCtmLrgWt7Nxl9luXusBFubb5wordUiO03Nl0 w5wEVo9kK0kQur7Lm4jFr3mtcXi++37l7bvCM0fvAyA7B9snRXckb+vaEyLV+q5ewfe2 u2fXtsFYj+y7ElejDQ9qYreQkLnIZkkhb32PY= MIME-Version: 1.0 Received: by 10.236.144.193 with SMTP id n41mr11948335yhj.78.1315408531739; Wed, 07 Sep 2011 08:15:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 08:15:31 -0700 (PDT) In-Reply-To: <20110907144509.GA93951@sandvine.com> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> <20110907144509.GA93951@sandvine.com> Date: Wed, 7 Sep 2011 23:15:31 +0800 X-Google-Sender-Auth: b9Z_2Kx9CwQMQ7qFKbGnO8G8Nvk Message-ID: From: Adrian Chadd To: Ed Maste Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Bernhard Schmidt , freebsd-wireless@freebsd.org, Joel Dahl Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 15:15:33 -0000 On 7 September 2011 22:45, Ed Maste wrote: >> Hm, this is with bwn(4), not iwn(4). :) > > For what it's worth, I've seen the same panic on occasion with a rum(4) > adapter. =A0Currently running r225223 + some minor local changes. Hm. > Console log: > > wlan0: link state changed to DOWN > panic: wrong state 1 > cpuid =3D 0 > KDB: stack backtrace: > db_trace_self_wrapper(c0f2d577,4,c0f2b58b,8cd,0,...) at db_trace_self_wra= pper+0x26 > kdb_backtrace(c0f78b11,0,c0f48baf,c5611be4,0,...) at kdb_backtrace+0x2a > panic(c0f48baf,1,49e5a776,4ae2b5f2,c0b2e830,...) at panic+0x117 > ieee80211_swbmiss(c65f2000,0,c0f2aafa,216,c5611c24,...) at ieee80211_swbm= iss+0x28 > softclock(c10e5440,c10f2080,4,c0f27640,c598aa38,...) at softclock+0x29b > intr_event_execute_handlers(c59bc588,c598aa00,c0f23ac4,55e,c59be5c0,...) = at intr_event_execute_handlers+0x125 > ithread_loop(c5a027f0,c5611d28,c0f23730,3f9,c59bc588,...) at ithread_loop= +0xa9 > fork_exit(c09fc930,c5a027f0,c5611d28) at fork_exit+0xb8 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip =3D 0, esp =3D 0xc5611d60, ebp =3D 0 --- That's the timer firing. The reason this doesn't appear on if_ath is likely because IEEE80211_FEXT_SWBMISS isn't set, but it is for bwn and run. Perhaps the callout should be reset/disabled on the state change away from = RUN? Adrian