From owner-freebsd-stable@FreeBSD.ORG Tue Mar 21 07:18:43 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD2E16A401 for ; Tue, 21 Mar 2006 07:18:43 +0000 (UTC) (envelope-from surerlistmail@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id C472C43D48 for ; Tue, 21 Mar 2006 07:18:42 +0000 (GMT) (envelope-from surerlistmail@gmail.com) Received: by nproxy.gmail.com with SMTP id b2so885977nfe for ; Mon, 20 Mar 2006 23:18:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fhpdyYr8FCEnSyQGud8p9WXtcUHrm5RGfBYyOMlhY6w0mpH5qw2AYd2fG8cMc5ezT20R9IMrIzxhd1lBMqh20Z2HkC6OgMxzmBqpOOv3jNt2aEDxkqqNtn/CAv6+vbAc/YqS+4eUJpze4YAtg/CMySjja8LQEyQaTPBaJB4eQp4= Received: by 10.48.12.12 with SMTP id 12mr3147774nfl; Mon, 20 Mar 2006 23:18:41 -0800 (PST) Received: by 10.49.69.17 with HTTP; Mon, 20 Mar 2006 23:18:41 -0800 (PST) Message-ID: Date: Tue, 21 Mar 2006 02:18:41 -0500 From: "Surer Dink" To: stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: Re: usb related panic in 6.1-prerelease [more info] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 07:18:43 -0000 > All, > > I have two USB hard drives attached through an "Adaptec" USB2 card. > The disks were working fine (although seemed a bit slow ~3MB/s random > reads/writes as reported by iostat while rsync was copying from one to > the other a complete freebsd install). The drives were left connected > to the machine unmounted. At some point the following appeared on the > console: > > umass1: Phase Error, residue =3D 32 > (da2:umass-sim1:1:0:0): AutoSense Failed > Opened disk da2 -> 5 > umass1: Invalid CSW: tag 2575 should be 2576 > > however I did not notice this message until later connecting to the > machine through ssh and trying to mount the _other_ disk (the disk on > da1). the kernel panic'ed; through remote kvm I was able to copy down > the following (which was below the CSW message): > > Fatal Trap 18: integer divide fault while in kernel mode > ... > current process =3D (...) mount > ... > > the instruction pointer was at 0xc081daab, which is: > > 0xc081da9f <__qdivrem+47>: mov $0x1,%edi > 0xc081daa4 <__qdivrem+52>: mov %edi,%eax > 0xc081daa6 <__qdivrem+54>: mov $0x0,%edx > 0xc081daab <__qdivrem+59>: div %ecx > 0xc081daad <__qdivrem+61>: mov %eax,0xffffffbc(%ebp) > 0xc081dab0 <__qdivrem+64>: mov %eax,0xffffffc0(%ebp) > 0xc081dab3 <__qdivrem+67>: cmpl $0x0,0x18(%ebp) > > (probably) relevant system details: > > 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Mar 11 19:09:49 EST 2006 > /usr/obj/usr/src/sys/GENERIC i386 > > usb1: OHCI version 1.0 > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 3 ports with 3 removable, self powered > ohci2: mem 0xfebfe000-0xfebfefff irq 23 > at device 1.1 on pci2 > ohci2: [GIANT-LOCKED] > usb2: OHCI version 1.0 > usb2: on ohci2 > usb2: USB revision 1.0 > uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub2: 2 ports with 2 removable, self powered > ehci0: mem 0xfebffc00-0xfebffcff > irq 16 at device 1.2 on pci2 > ehci0: [GIANT-LOCKED] > usb3: EHCI version 1.0 > usb3: companion controllers, 3 ports each: usb1 usb2 > usb3: on ehci0 > usb3: USB revision 2.0 > uhub3: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub3: 5 ports with 5 removable, self powered > umass0: vendor 0x0402 USB 2.0 Storage Device, rev 2.00/1.03, addr 2 > umass1: vendor 0x0402 USB 2.0 Storage Device, rev 2.00/1.03, addr 3 > > please advise. It appears the problem is reproduceable. Same instruction pointer/same integer divide fault; however this time current process is 2(g_event) and, above the panic, the console contains: g_vfs_done:da2s1a[READ(65536), length 8192)]error =3D 6