From owner-freebsd-current@FreeBSD.ORG Wed Oct 13 23:09:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 550FD16A4CE for ; Wed, 13 Oct 2004 23:09:11 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBD5C43D49 for ; Wed, 13 Oct 2004 23:09:10 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])i9DN8etC013304; Wed, 13 Oct 2004 18:08:40 -0500 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 13 Oct 2004 18:08:38 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 13 Oct 2004 18:08:32 -0500 Message-ID: <416DB569.4010805@savvis.net> Date: Wed, 13 Oct 2004 16:08:25 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Niki Denev References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Oct 2004 23:08:32.0526 (UTC) FILETIME=[8F391AE0:01C4B179] X-ECS-MailScanner: No virus is found cc: current@freebsd.org Subject: Re: bluetooth / hcseriald panics -current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 23:09:11 -0000 Niki, could you please try the following patch? cvs diff: Diffing . Index: ng_h4.c =================================================================== RCS file: /usr/local/cvs/sys/netgraph/bluetooth/drivers/h4/ng_h4.c,v retrieving revision 1.7 diff -u -r1.7 ng_h4.c --- ng_h4.c 23 Aug 2004 18:08:15 -0000 1.7 +++ ng_h4.c 13 Oct 2004 23:05:34 -0000 @@ -209,11 +209,11 @@ * I'm not sure what is appropriate. */ - ttyflush(tp, FREAD | FWRITE); clist_alloc_cblocks(&tp->t_canq, 0, 0); clist_alloc_cblocks(&tp->t_rawq, 0, 0); clist_alloc_cblocks(&tp->t_outq, MLEN + NG_H4_HIWATER, MLEN + NG_H4_HIWATER); + ttyflush(tp, FREAD | FWRITE); out: splx(s); /* XXX */ btw, you are probably going to have bad experience with serial bluetooth device. sio(4) driver is know to loose bytes (silo overflow problem) and this is NOT acceptable in bluetooth. max Niki Denev wrote: > Niki Denev writes: > >> The machine is IBM TP X31 with compact flash D-Link DCF-650BT >> bluetooth adapter. >> The adapter itself is properly recognised as sio4. >> But this is what i get when tried to use a slightly modified (to >> reflect the recent cuaa* -> cuad* change) >> /usr/share/examples/netgraph/bluetooth/rc.bluetooth version. >> >> [root@phobos ~]# pccard1: Allocation failed for cfe1 >> sio4: at port 0x2e8-0x2ef irq 5 function 0 config >> 2 on pccard1 >> sio4: type 16550A >> sio4: unable to activate interrupt in fast mode - using normal mode >> >> [root@phobos ~]# /etc/rc.bluetooth start sio4 >> kernel trap 12 with interrupts disabled >> >> >> Fatal trap 12: page fault while in kernel mode >> fault virtual address = 0x64 >> fault code = supervisor write, page not present >> instruction pointer = 0x8:0xc062f911 >> stack pointer = 0x10:0xd540ba2c >> frame pointer = 0x10:0xd540ba38 >> code segment = base 0x0, limit 0xffffff, type 0x1b >> = DPL 0, pres 1, def32 1, gran 1 >> processor eflags = resume, IOPL = 0 >> current process = 788 (hcseriald) >> [thread 100050] >> Stopped at comstop+0x75: andl $-0x5,0x64(%eax) >> db> trace >> comstop(c1c42800,3) at comstop+0x75 >> ttyflush(c1c42800,3,c2cb6700,303468,d540ba80) at ttyflush+0x37 >> ng_h4_open(c1d72300,c1c42800) at ng_h4_open+0x194 >> ttioctl(c1c42800,8004741b,d540bc60,3,c2139b68) at ttioctl+0xc32 >> ttyioctl(c1d72300,8004741b,d540bc60,3,c1a27820) at ttyioctl+0x41 >> spec_ioctl(d540bb88,d540bc34,c056a6d7,d540bb88,c06e8aa0) at >> spec_ioctl+0xee >> spec_vnoperate(d540bb88) at spec_vnoperate+0x13 >> vn_ioctl(c1d842ec,8004741b,d540bc60,c1da9c80,c1a27820) at vn_ioctl+0x1ab >> ioctl(c1a27820,d540bd14,3,0,246) at ioctl+0x3e0 >> syscall(2f,2f,2f,bfbfe8d4,bfbfee67) at syscall+0x213 >> Xint0x80_syscall() at Xint0x80_syscall+0x1f >> --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280ce80f, esp = >> 0xbfbfe7fc, ebp = 0xbfbfed3c --- >> db> >> >> >> boot.conf, dmesg and kernel conf are available here : >> http://www.totalterror.net/freebsd/ >> >> >> --niki >> > > some more info obtained with addr2line : > > [root@phobos ~]# addr2line -e kernel.debug 0xc062f911 > ../../../dev/sio/sio.c:2475 > > > --niki >