From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jan 1 01:15:49 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C9B516A4CE; Sat, 1 Jan 2005 01:15:49 +0000 (GMT) Received: from vbook.fbsd.ru (user181.hovrino.net [82.179.232.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FAC443D4C; Sat, 1 Jan 2005 01:15:48 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.43 (FreeBSD)) id 1CkXrn-0000p2-Ca; Sat, 01 Jan 2005 04:15:39 +0300 From: Vladimir Grebenschikov To: Randy Bush In-Reply-To: <16853.27324.504672.6086@roam.psg.com> References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Sat, 01 Jan 2005 04:15:38 +0300 Message-Id: <1104542138.3084.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: bluetooth cc: FreeBSD Current cc: "M. Warner Losh" Subject: Re: USB problems X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 01:15:49 -0000 =F7 =D0=D4, 31/12/2004 =D7 05:05 -1000, Randy Bush =D0=C9=DB=C5=D4: > possibly related? >=20 > just so you know, on a thinkpad t41 with any current in the last > few weeks, i kernel panic on boot if a usb device is not plugged > in. turning off acpi also allows boot. see >=20 > >=20 > i can help debug if anyone is on the trail I have also problems with USB on recent current (previous was few weeks old). It panics on each boot: Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x1ff0383 fault code =3D supervisor write, page not present instruction pointer =3D 0x8:0xc07bc886 stack pointer =3D 0x10:0xe6923a8c frame pointer =3D 0x10:0xe6923a90 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 477 (usbd) [thread pid 477 tid 100078 ] Stopped at usb_get_next_event+0x6e: movl %eax,0x184(%edx) db> trace Tracing pid 477 tid 100078 td 0xc212bb80 usb_get_next_event(1ff01ff,1ff01ff,1ff01ff,1ff01ff,1ff01ff) at usb_get_next_event+0x6e usbread(c1a60200,e6923c7c,10,7000000,0) at usbread+0x43 devfs_read_f(c1d3f264,e6923c7c,c1977c80,0,c212bb80) at devfs_read_f+0xd4 dofileread(c212bb80,c1d3f264,7,bfbfeb50,180) at dofileread+0x7e read(c212bb80,e6923d14,c,c212bb80,7) at read+0x6b syscall(2f,2f,2f,7,7) at syscall+0x300 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (3, FreeBSD ELF32, read), eip =3D 0x280cbc17, esp =3D 0xbfbfeb2c, ebp =3D 0xbfbfecd8 --- db> ps pid proc uid ppid pgrp flag stat wmesg wchan cmd 514 c212a3f0 0 1 48 0000002 [LOCK Giant c2019040] hcsecd 512 c212a000 65534 1 512 0000100 [SLPQ select 0xc06b8d04][SLP] sdpd 477 c212a5e8 0 472 48 0004002 [CPU 0] usbd 472 c1a475e8 0 48 48 0000002 [SLPQ wait 0xc1a475e8][SLP] sh ...=20 db> trace 514 Tracing pid 514 tid 100079 td 0xc212bcf0 sched_switch(c212bcf0,0,1,7066308c,418ddef8) at sched_switch+0x170 mi_switch(1,0,c05238cd,c19939a4,c1d65484) at mi_switch+0x1d9 turnstile_wait(c06b2ae0,c212bb80,0,bfbfe000,e69b9cbc) at turnstile_wait +0x350 _mtx_lock_sleep(c06b2ae0,c212bcf0,0,0,0) at _mtx_lock_sleep+0xb4 vm_fault(c1993960,bfbfe000,2,8,e69b9cfc) at vm_fault+0x211 trap_pfault(e69b9d48,1,bfbfeb4c,e69b9d34,bfbfeb4c) at trap_pfault+0x13b trap(2f,2f,2f,0,bfbfeb60) at trap+0x21a calltrap() at calltrap+0x5 --- trap 0xc, eip =3D 0x280cc601, esp =3D 0xbfbfeb50, ebp =3D 0xbfbfebb8 --= - db> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I have found way how to workaround panic. If I turn on USB dongle while boot (after usb bus detected) it boots ok. But If I boot with turned off USB dongle - it panics, same If I boot with turned on USB dongle. (also it is same with usb mice or keyboard). I have allways turned on umass on-board card reader. There is my usual list of USB devides: # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, UGX(0x3003), ALPS(0x044= e), rev 7.81 Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, self powered, config 1, USB Memory Stick Slot(0= x014d), Sony(0x054c), rev 1.10 port 6 powered # Last "good" kernel dated Dec 9 2004. (or near this date). As I notice it allways panics when some process gets Giant, (usually it is bluetooth process) Looks like it is USB problem, but probably it is bluetooth related. I am not sure. I can provide more details. > randy --=20 Vladimir B. Grebenchikov vova@fbsd.ru From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jan 1 10:11:57 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2F1C16A4CE for ; Sat, 1 Jan 2005 10:11:57 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4FA343D46 for ; Sat, 1 Jan 2005 10:11:54 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j01ABVjb292062; Sat, 1 Jan 2005 05:11:35 -0500 Message-ID: <41D67753.60202@elischer.org> Date: Sat, 01 Jan 2005 02:11:31 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: vova@fbsd.ru References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> In-Reply-To: <1104542138.3084.9.camel@localhost> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit cc: Randy Bush cc: bluetooth cc: FreeBSD Current cc: "M. Warner Losh" Subject: Re: USB problems X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 10:11:57 -0000 Vladimir Grebenschikov wrote: > ÷ ÐÔ, 31/12/2004 × 05:05 -1000, Randy Bush ÐÉÛÅÔ: > >>possibly related? >> >>just so you know, on a thinkpad t41 with any current in the last >>few weeks, i kernel panic on boot if a usb device is not plugged >>in. turning off acpi also allows boot. see >> >> >> >>i can help debug if anyone is on the trail > > > I have also problems with USB on recent current (previous was few weeks > old). > the most salient thiing you could do is find the date of the problem by checking out sys/dev/usb on dec 9 and seeing if that fixes it (you said dec 9 was ok) and if so, gradually moving it forward using a binary search and narrowing in on the commit that broke it. Is it an ohci or uhci (or ehci) usb inerface? > > From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jan 1 18:52:21 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4EE316A4CE for ; Sat, 1 Jan 2005 18:52:21 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 517AB43D48 for ; Sat, 1 Jan 2005 18:52:21 +0000 (GMT) (envelope-from geekout@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so319162wra for ; Sat, 01 Jan 2005 10:52:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=t4WihmqNzZ7pjxhAXACuOzoVWGemBaX4DBeNhJGNe5wm+kpz6p9erc6NsGsdQNRQ0WyOMnVUOInVcDyAjrnpaZ38ECgNtj8MCjY2j11ecGR0vMhXy+PjTgCibhU5hPlj1GQ9p1bPmaRmtQe+AUnDnhlAg9iBk175vaRogvvque0= Received: by 10.54.3.71 with SMTP id 71mr619086wrc; Sat, 01 Jan 2005 10:52:20 -0800 (PST) Received: by 10.54.46.25 with HTTP; Sat, 1 Jan 2005 10:52:20 -0800 (PST) Message-ID: <6e01203b0501011052ada0d9c@mail.gmail.com> Date: Sat, 1 Jan 2005 11:52:20 -0700 From: Tyler Gee To: Julian Elischer In-Reply-To: <41D67753.60202@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> cc: vova@fbsd.ru cc: Randy Bush cc: bluetooth cc: FreeBSD Current cc: "M. Warner Losh" Subject: Re: USB problems X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tyler Gee List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 18:52:22 -0000 I just did an upgrade from 5.3-RELEASE-p2 to -current (as of yesterday) and my USB mouse comletely stopped functioning. It was on uchi and would register as usm0. It now will register and unregister as usm0 correctly but will not do anything. It could be that I have some setting wrong as I have never upgraded from a RELEASE to CURRENT and have usually run CURRENT in the past. I have not tried any other USB devices. On Sat, 01 Jan 2005 02:11:31 -0800, Julian Elischer w= rote: > Vladimir Grebenschikov wrote: > > =D0=92 =D0=BF=D1=82, 31/12/2004 =D0=B2 05:05 -1000, Randy Bush =D0=BF= =D0=B8=D1=88=D0=B5=D1=82: > > > >>possibly related? > >> > >>just so you know, on a thinkpad t41 with any current in the last > >>few weeks, i kernel panic on boot if a usb device is not plugged > >>in. turning off acpi also allows boot. see > >> > >> > >> > >>i can help debug if anyone is on the trail > > > > > > I have also problems with USB on recent current (previous was few weeks > > old). > > >=20 > the most salient thiing you could do is find the date of the problem by c= hecking > out sys/dev/usb on dec 9 and seeing if that fixes it (you said dec 9 was= ok) > and if so, gradually moving it forward using a binary search and narrowin= g in on > the commit that broke it. >=20 > Is it an ohci or uhci (or ehci) usb inerface? >=20 >=20 > > > > >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >