From owner-freebsd-drivers@FreeBSD.ORG Mon Dec 15 12:52:35 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A35D21065670 for ; Mon, 15 Dec 2008 12:52:35 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 5F7D08FC2A for ; Mon, 15 Dec 2008 12:52:35 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1046586ywe.13 for ; Mon, 15 Dec 2008 04:52:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tjfxHldnQHnPb6Hw8h27eHYtwfsmiGquGZNi+Fhjl04=; b=mvN6c2VHaKlPTNPh35q6XlWXROx6V1t2pKin/3cOaRKJIKdEA3fR5QE7xJfo/crK8g ypEwTkk832ou5qhGYzrR4JCLArY8TWC4nZMpV2OaA+UeRzT5I4wcCgyTJ8qJQ2s5kfEg wF0qym5AGvzWYDcxB9iTg4Y1uH0AhgrqwQ/dk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vcWj2bNUiP4RND7rPmhYCjeIt1RrFS5WYLgdn5HxP2wKzeWcgga08XpNLDhZtrHCOy s874k52oKKvAewoIirvcW6+p2cnLJ5+M7jhY6185mbnXwEpkTG3DnPIawY3u/Eb5Sx8a aSbpX+gGLs0e69nM47562Q/CX8ANgSUXoMb+0= Received: by 10.231.10.140 with SMTP id p12mr78021ibp.13.1229343813788; Mon, 15 Dec 2008 04:23:33 -0800 (PST) Received: by 10.231.10.130 with HTTP; Mon, 15 Dec 2008 04:23:33 -0800 (PST) Message-ID: <3a142e750812150423w168620f7g40e93cf61f6a3b7b@mail.gmail.com> Date: Mon, 15 Dec 2008 13:23:33 +0100 From: "Paul B. Mahol" To: "Octavian Ionescu" In-Reply-To: <49458F28.4000206@itavy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49458F28.4000206@itavy.com> Cc: freebsd-drivers@freebsd.org Subject: Re: Driver for DWL-G122 rev C1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 12:52:35 -0000 On 12/14/08, Octavian Ionescu wrote: > hi, > > i have an Wireless USB DWL-G122 rev c1 card and on current itblocks my > computer after a while. it scans for ap after i have configured it but > after 2-3 minutes of scaning hang the entire computer and give me an > backtrace prompt. > > # uname -a > FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Sat Dec 6 17:17:09 UTC > 2008 root@:/usr/obj/usr/src/sys/ITAVYEEE2 i386 > > #dmesg > .... > Dec 14 22:40:28 kernel: rum0: 2.00/0.01, addr 3> on uhub4 > Dec 14 22:40:28 kernel: rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 > Dec 14 22:40:28 kernel: rum0: WARNING: using obsoleted IFF_NEEDSGIANT flag Let me guess you have SMP machine with SMP enabled kernel? In that case usb ehci have some bugs triggered with rum driver. Workaround: disable smp: # echo "kern.smp.disabled=1" >> /boot/loader.conf and reboot. Fix: use if_rum2 from usb2: # echo "usb2_wlan_rum_load=YES" >> /boot/loader.conf For this one to really work you need first to remove usb,uhci,ehci,ohci and others old usb stuff from kernel conf, and use usb2 as modules ... -- Paul