From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 17 02:20:19 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07B3337B401 for ; Sun, 17 Aug 2003 02:20:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D927743F75 for ; Sun, 17 Aug 2003 02:20:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7H9KHUp006173 for ; Sun, 17 Aug 2003 02:20:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7H9KHuD006172; Sun, 17 Aug 2003 02:20:17 -0700 (PDT) Resent-Date: Sun, 17 Aug 2003 02:20:17 -0700 (PDT) Resent-Message-Id: <200308170920.h7H9KHuD006172@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, roland Mathieu Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF1C037B401; Sun, 17 Aug 2003 02:11:11 -0700 (PDT) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id A081143F93; Sun, 17 Aug 2003 02:11:10 -0700 (PDT) (envelope-from roland.mathieu@online.fr) Received: from lycurgue.localnet (dijon-1-a7-62-147-70-36.dial.proxad.net [62.147.70.36]) by postfix4-1.free.fr (Postfix) with ESMTP id 9B1AC42904; Sun, 17 Aug 2003 11:11:06 +0200 (CEST) Received: from lycurgue.localnet (localhost.localnet [127.0.0.1]) by lycurgue.localnet (8.12.6/8.12.6) with ESMTP id h7H99fbe005661; Sun, 17 Aug 2003 11:09:41 +0200 (CEST) (envelope-from roland@lycurgue.localnet) Received: (from roland@localhost) by lycurgue.localnet (8.12.6/8.12.6/Submit) id h7H99fGZ005660; Sun, 17 Aug 2003 11:09:41 +0200 (CEST) Message-Id: <200308170909.h7H99fGZ005660@lycurgue.localnet> Date: Sun, 17 Aug 2003 11:09:41 +0200 (CEST) From: roland Mathieu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: njl@FreeBSD.org Subject: kern/55657: PMI usb drive SCSI DA quirk X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: roland Mathieu List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 09:20:19 -0000 >Number: 55657 >Category: kern >Synopsis: PMI usb drive SCSI DA quirk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 17 02:20:17 PDT 2003 >Closed-Date: >Last-Modified: >Originator: roland Mathieu >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD lycurgue.localnet 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sat Jun 14 16:28:42 CEST 2003 root@lycurgue.localnet:/usr/src/sys/compile/KERNEL-20030224 i386 >Description: The usb memory stick marketed by Power Memory International Co. as «Pmi usb drive» needs a quirks entry in /usr/src/sys/cam/scsi/scsi_da.c. Manufacturer name : Pmi USB drive Part No. : MFPA0128PMI-A.1 Interface:USB1.1 128MB Board >How-To-Repeat: Insert memory stick, Type fdisk /dev/da3. Observe console. Output from dmesg for failed attach attempts: umass0: Generic USB Flash Disk, rev 1.10/1.00, addr 5 da3 at umass-sim0 bus 0 target 0 lun 0 da3: Removable Direct Access SCSI-0 device da3: 650KB/s transfers da3: 127MB (260448 512 byte sectors: 64H 32S/T 127C) umass0: Unsupported ATAPI command 0x08, 6 byte command should have been converted da3: reading primary partition table: error reading fsbn 0 umass0: Unsupported ATAPI command 0x35 (da3:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 >Fix: Patch follows, hope it is okay. I diffed against 4.7. --- scsi_da.c.orig Sat Aug 24 21:03:58 2002 +++ scsi_da.c Sun Aug 17 10:44:18 2003 @@ -367,6 +367,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "DIVA USB", "Media Reader","*"}, /*quirks*/ DA_Q_NO_6_BYTE }, + /* + * Pmi usb drive. + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, + "Generic*", "USB Flash Disk*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE + }, { /* * Daisy Technology PhotoClip USB Camera Output from dmesg for successful attach attempts (after quirk added): umass0: Generic USB Flash Disk, rev 1.10/1.00, addr 5 da3 at umass-sim0 bus 0 target 0 lun 0 da3: Removable Direct Access SCSI-0 device da3: 650KB/s transfers da3: 127MB (260448 512 byte sectors: 64H 32S/T 127C) Output of "camcontrol inquiry da3" with device attached: pass3: Removable Direct Access SCSI-0 device pass3: Serial Number ^_ pass3: 650KB/s transfers Output of "usbdevs -v" with device attached: Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: self powered, config 1, USB HUB (0x5518), vendor 0x0416(0x0416), rev 0.08 port 1 addr 3: low speed, power 100 mA, config 1, USB Multimedia Keyboard (0x7 13a), (0x099a), rev 1.01 port 2 addr 4: low speed, power 50 mA, config 1, USB Mouse(0xc001), Logitech(0 x046d), rev 4.00 port 3 addr 5: power 100 mA, config 1, USB Flash Disk(0x8001), Generic(0x09a6) , rev 1.00 port 4 powered port 2 powered >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 17 06:43:31 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B0E637B404 for ; Sun, 17 Aug 2003 06:43:31 -0700 (PDT) Received: from smtpzilla5.xs4all.nl (smtpzilla5.xs4all.nl [194.109.127.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4036E43FA3 for ; Sun, 17 Aug 2003 06:43:30 -0700 (PDT) (envelope-from daan@xs4all.nl) Received: from unit (unit.xs4all.nl [194.109.249.60]) by smtpzilla5.xs4all.nl (8.12.9/8.12.9) with ESMTP id h7HDhRbD030391 for ; Sun, 17 Aug 2003 15:43:27 +0200 (CEST) Date: Sun, 17 Aug 2003 15:43:26 +0200 (CEST) From: Daan van de Linde To: freebsd-bugs@freebsd.org Message-ID: <20030817153404.B3487@unit.xs4all.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: fbsd4.8 double fault panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 13:43:31 -0000 Hello, This morning my server's kernel panic'd and completely hang the entire system, any idea's what happend? Im unable to reproduce the panic, the kernel was build without debugging and there isnt a coredump. System: FreeBSD unit.xs4all.nl 4.8-RELEASE-p3 FreeBSD 4.8-RELEASE-p3 #1: Mon Aug 11 19:22:54 CEST 2003 daan@unit.xs4all.nl:/usr/obj/usr/src/sys/UNIT i386 On screen message: Fatal Double fault: eip=3D0x0160cb9 esp=3D0x13470290 ebp=3D0xc8e3bd18 panic: double fault dmesg: Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.8-RELEASE-p3 #1: Mon Aug 11 19:22:54 CEST 2003 daan@unit.xs4all.nl:/usr/obj/usr/src/sys/UNIT Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III (551.25-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x681 Stepping =3D 1 Features=3D0x383f9ff real memory =3D 134152192 (131008K bytes) config> di aic0 No such device: aic0 Invalid command or syntax. Type `?' for help. config> di aha0 No such device: aha0 Invalid command or syntax. Type `?' for help. config> di adv0 No such device: adv0 Invalid command or syntax. Type `?' for help. config> en ed0 config> po ed0 0x280 config> ir ed0 10 config> iom ed0 0xd8000 config> f ed0 0 config> q avail memory =3D 126738432 (123768K bytes) Preloaded elf kernel "kernel" at 0xc03be000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03be09c. netsmb_dev: loaded Pentium Pro MTRR support enabled Using $PIR table, 7 entries at 0xc00fdd50 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe5000000-0xe53ffff= f at device 0.0 on pci0 pcib2: at device 1.0 on = pci0 pci1: on pcib2 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x6400-0x640f at device 7.1 on = pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x6800-0x681f irq 11 at device 7.2 = on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered viapropm0: SMBus I/O base at 0x0 viapropm0: port 0-0xf at device 7.3 o= n pci0 viapropm0: SMBus revision code 0x0 ed0: port 0x6c00-0x6c1f irq 5 at device 10.0= on pci0 ed0: address 00:40:95:04:f4:c3, type NE2000 (16 bit) rl0: port 0x7000-0x70ff mem 0xe5400000-0xe54000ff irq 12 at device 11.0 on pci0 rl0: Ethernet address: 00:50:fc:27:4f:b8 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 12.0 irq 10 pcib1: on motherboard pci2: on pcib1 orm0: