From owner-freebsd-usb@FreeBSD.ORG Fri Mar 5 11:40:08 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 887E0106566C for ; Fri, 5 Mar 2010 11:40:08 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51805.mail.re2.yahoo.com (web51805.mail.re2.yahoo.com [206.190.38.236]) by mx1.freebsd.org (Postfix) with SMTP id 427A18FC17 for ; Fri, 5 Mar 2010 11:40:08 +0000 (UTC) Received: (qmail 56615 invoked by uid 60001); 5 Mar 2010 11:40:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1267789205; bh=FYDJPymjcZGJQMougwP4A1/KykYGnHqnsVY9rmdpt/o=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=U0cUicx7jgUaY7k+JatArANtSRQWbYBhHUMVxBzpiRXrbR4vPV2WMGQcZbFzd0YUhRjVZZXm4IMUWehXW/lLE8uJuwa/Xhj41n779jCWaNhak9l+GGnN3T9Ayp+3a+UNtql30TtGKt3G8WQ2d4sLHQLikK1bLHGm+qGNTXbwihs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=OH8/ggzWG5LK0/ipyrlO01NnzvWxvZVYEm2IMFZeYTqFgnbscK20q8td0C/ufrYhgsURvyDc2Qsala/6xdss13YNywNyrouhzy3iQQcvvOa/UsBVWgybNs5JAgW2mCpoVjET5INGaSHw+qMAK8S0sFehz5iFlu5p1jD5C6aOcrE=; Message-ID: <164298.14386.qm@web51805.mail.re2.yahoo.com> X-YMail-OSG: m1TXFi4VM1l_OTV0zJ5L3DUFvdtMRbOEUG9aqFXlMB2YBM4L1msBhrTwN5zQjpeOIDbRElSreW1868Uir0BsEKw_TYPVWCpdXq_Pp2TL4afDgxIdqtX_Jl3o1HBJiQ3L9Ug6hB_aM96NTSYuxpRLQ.UOWsJ5NmAOcLvzCEpmE8BtJOKGVnAUNusyPyr1oYTN14X.3cCUYt.7hYKEYVSH1LLqbSFh._1_jeCrvn1NaEAzc9Nki5aI9eDchVmbsbu_uw.nIuGV7y24O0aWutbkzSWBkZQlXkqIo6_iEpKPowLv3EnbHoxMCTH9rMR0zxkOFt.MM6PrA78- Received: from [173.183.132.20] by web51805.mail.re2.yahoo.com via HTTP; Fri, 05 Mar 2010 03:40:05 PST X-Mailer: YahooMailRC/300.3 YahooMailWebService/0.8.100.260964 References: <300673.36369.qm@web51805.mail.re2.yahoo.com> <201003051042.41230.hselasky@c2i.net> Date: Fri, 5 Mar 2010 03:40:05 -0800 (PST) From: PseudoCylon To: Hans Petter Selasky In-Reply-To: <201003051042.41230.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-gnats-submit@freebsd.org, jhanna@pangolin-systems.com, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/144423: if_run panic with USB-N13 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 11:40:08 -0000 ----- Original Message ---- > From: Hans Petter Selasky > To: PseudoCylon > Cc: bug-followup@freebsd.org; jhanna@pangolin-systems.com; freebsd-usb@freebsd.org; freebsd-gnats-submit@freebsd.org > Sent: Fri, March 5, 2010 2:42:41 AM > Subject: Re: usb/144423: if_run panic with USB-N13 > > On Friday 05 March 2010 10:31:35 PseudoCylon wrote: > > >The files seem a little far from the current I am running, I just used > > >the updates to the usbdevs file and the unlock-lock around the firmware > > > load in if_run.c. > > > > Yes, there are some bits added to support RT3572 chipsets. It would be > > greately appreciated if you try that file if it's not too mutch trouble. > > > > >The ASUS-N13 does work when a child wlan device is created with it, > > >but if just "ifconfig run0 up" is done there is a page fault. I do > > >not know if that is expected. This occurs with or without runfw.ko > > >being loaded beforehand. > > > > Yes, "ifconfig run0 up" will cause page fault. The wlanN interface is > > should be created as an instance of the parent interface and used for > > actual communication. This is new feature to 8.0 and 9-current. My > > understanding is that if you create wlan and "ifconfig *wlan0* up", it > > works, but if you "ifconfig *run0* up", it causes panic. (Of cource > > without *. I'm trying to enphasize the point in plain text messeage.) That > > is what should happen. (Actually, result of "ifconfig *run0* up" is > > undefined.) "run0" should only be used when creating wlan. > > > > If "ifconfig *wlan0* ..." is causing problem, please let us know. > > > > What is the backtrace of the panic? KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 trap() at trap+0x2f5 calltrap() at calltrap+0x8 --- trap 0xc, rip = 0xffffffff80c5cfd7, rsp = 0xffffff8021f76880, rbp = 0xffffff8021f768c0 --- run_stop() at run_stop+0x67 run_init_locked() at run_init_locked+0x33 run_ioctl() at run_ioctl+0xad ifioctl() at ifioctl+0xde4 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xf0 syscall() at syscall+0x1af Xfast_syscall() at Xfast_syscall+0xe1 --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x800b8286c, rsp = 0x7fffffffe2f8, rbp = 0x7fffffffe300 --- There are number of places refers uninitialized value in run_stop() and run_init() if vap hasn't created, so it will cause page fault. I can move those instructions to other places (maybe vap_delete). It won't panic but device won't work without vap. __________________________________________________________________ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com