From owner-freebsd-bugs@FreeBSD.ORG Sat May 17 13:40:17 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 76A9C37B401 for ; Sat, 17 May 2003 13:40:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63F7F43FB1 for ; Sat, 17 May 2003 13:40:14 -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 h4HKeEUp036412 for ; Sat, 17 May 2003 13:40:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4HKeEf5036411; Sat, 17 May 2003 13:40:14 -0700 (PDT) Resent-Date: Sat, 17 May 2003 13:40:14 -0700 (PDT) Resent-Message-Id: <200305172040.h4HKeEf5036411@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, Manfred Lotz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5675137B401 for ; Sat, 17 May 2003 13:31:46 -0700 (PDT) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A2AC43F85 for ; Sat, 17 May 2003 13:31:44 -0700 (PDT) (envelope-from manfred.lotz@web.de) Received: from [213.23.218.188] (helo=wizard.sanskrit.local.net) by smtp.web.de with asmtp (WEB.DE 4.98 #232) id 19H8LC-0001Hu-00; Sat, 17 May 2003 22:31:38 +0200 Received: by wizard.sanskrit.local.net (Postfix, from userid 1001) id 336AC2FDCD; Sat, 17 May 2003 22:31:37 +0200 (CEST) Message-Id: <20030517203137.336AC2FDCD@wizard.sanskrit.local.net> Date: Sat, 17 May 2003 22:31:37 +0200 (CEST) From: Manfred Lotz Sender: manfred.lotz@web.de To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Manfred Lotz Subject: kern/52383: QUIRK: IBM IBM USB Memory Key, rev 1.00/1.00, addr 3 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Manfred Lotz List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2003 20:40:17 -0000 >Number: 52383 >Category: kern >Synopsis: QUIRK: IBM IBM USB Memory Key, rev 1.00/1.00, addr 3 >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 17 13:40:13 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Manfred Lotz >Release: FreeBSD 5.0-CURRENT i386 >Organization: private >Environment: System: FreeBSD wizard.sanskrit.local.net 5.0-CURRENT FreeBSD 5.0-CURRENT #17: Fri May 16 20:24:58 CEST 2003 root@wizard.sanskrit.local.net:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: Problem with USB memory stick: IBM IBM USB Memory Key, rev 1.00/1.00, addr 3 When inserting the memory stick the following messge shows up. umass0: Residue incorrect, was 11, should've been 512 >How-To-Repeat: Happens always when inserting the memory stick >Fix: Added quirk: --- entry in /usr/src/sys/dev/usb/usbdevs product TREK THUMBDRIVE_32MB 0x8888 ThumbDrive_32MB --- entry in /usr/src/sys/dev/usb/umass.c { USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE_32MB, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, IGNORE_RESIDUE }, Now it works fine: > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 31MB (64000 512 byte sectors: 64H 32S/T 31C) Hope I didn't forget anything. Manfred begin 644 camcontrol.inquiry M<&%S2`Q+C`Q/B!296UO=F%B;&4@1&ER96-T M($%C8V5S AMD Features=0xc0440000 real memory = 1073676288 (1023 MB) avail memory = 1037963264 (989 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31 pcibios: BIOS version 2.10 Using $PIR table, 8 entries at 0xc00fd7b0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0x290-0x297,0x50c0-0x50ff,0x5000-0x50bf,0x480-0x48f,0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 2.0 on pci0 isa0: on isab0 ohci0: mem 0xe9000000-0xe9000fff irq 11 at device 2.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ulpt0: Samsung Electronics Co., Ltd. Samsung ML-1440, rev 1.10/1.00, addr 2, iclass 7/1 ulpt0: using bi-directional mode ohci1: mem 0xe9001000-0xe9001fff irq 9 at device 2.3 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered atapci0: port 0x4000-0x400f at device 2.5 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pcm0: port 0xe400-0xe43f,0xe000-0xe0ff irq 3 at device 2.7 on pci0 pcm0: pci0: at device 12.0 (no driver attached) rl0: port 0xec00-0xecff mem 0xe9003000-0xe90030ff irq 11 at device 13.0 on pci0 rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode rl0: Ethernet address: 00:e0:7d:bb:49:92 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 orm0: