From owner-freebsd-i386@FreeBSD.ORG Tue Jan 25 09:10:18 2005 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6239316A4D1 for ; Tue, 25 Jan 2005 09:10:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4A0143D54 for ; Tue, 25 Jan 2005 09:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0P9AHaJ021720 for ; Tue, 25 Jan 2005 09:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0P9AHuY021699; Tue, 25 Jan 2005 09:10:17 GMT (envelope-from gnats) Resent-Date: Tue, 25 Jan 2005 09:10:17 GMT Resent-Message-Id: <200501250910.j0P9AHuY021699@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, guzman@zalem.net Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 213EE16A4CE for ; Tue, 25 Jan 2005 09:10:12 +0000 (GMT) Received: from tuned.zalem.net (c2ce56ef.fsp.oleane.fr [194.206.86.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id D62BA43D5C for ; Tue, 25 Jan 2005 09:10:08 +0000 (GMT) (envelope-from guzman@tuned.zalem.net) Received: from tuned.zalem.net (localhost.zalem.net [127.0.0.1]) by tuned.zalem.net (8.13.1/8.13.1) with ESMTP id j0P9A73F001157 for ; Tue, 25 Jan 2005 10:10:07 +0100 (CET) (envelope-from guzman@tuned.zalem.net) Received: (from guzman@localhost) by tuned.zalem.net (8.13.1/8.13.1/Submit) id j0P9A7Ss001156; Tue, 25 Jan 2005 10:10:07 +0100 (CET) (envelope-from guzman) Message-Id: <200501250910.j0P9A7Ss001156@tuned.zalem.net> Date: Tue, 25 Jan 2005 10:10:07 +0100 (CET) From: guzman@zalem.net To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/76653: Problem with Asahi Optical usb device (Pentax Optio S50) X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: guzman@zalem.net List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 09:10:18 -0000 >Number: 76653 >Category: i386 >Synopsis: Problem with Asahi Optical usb device (Pentax Optio S50) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 25 09:10:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Guzman >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: FreeBSD 5.3-RELEASE #7: Mon Jan 24 23:43:12 CET 2005 toor@barjack.zalem.net:/home/src/sys/i386/compile/Barjack Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2390.30-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febf9ff real memory = 534708224 (509 MB) avail memory = 517746688 (493 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 cpu0: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_lid0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xd0000000-0xdfffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 2.0 on pci0 isa0: on isab0 atapci0: port 0x1000-0x100f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.5 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pcm0: port 0x1080-0x10ff,0x1400-0x14ff at device 2.7 on pci0 pcm0: [GIANT-LOCKED] pcm0: ohci0: mem 0xe0000000-0xe0000fff irq 5 at device 3.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xe0001000-0xe0001fff irq 5 at device 3.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xe0002000-0xe0002fff irq 5 at device 3.2 on pci0 ohci2: [GIANT-LOCKED] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci2 usb2: USB revision 1.0 uhub2: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xe0003000-0xe0003fff at device 3.3 on pci0 ehci0: [GIANT-LOCKED] ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 ehci_pci_attach: companion usb2 usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: SiS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered pci0: at device 6.0 (no driver attached) rl0: port 0x1800-0x18ff mem 0xe0004000-0xe00040ff at device 8.0 on pci0 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:40:ca:bd:03:1d cbb0: mem 0x80000000-0x80000fff irq 10 at device 12.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: mem 0xe0005000-0xe0005fff at device 13.0 on pci0 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:40:ca:01:10:01:81:0f fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:40:ca:01:81:0f fwe0: Ethernet address: 02:40:ca:01:81:0f fwe0: if_start running deferred for Giant fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acpi_button0: on acpi0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd5fff on isa0 sc0: at flags 0x80 on isa0 sc0: VGA <16 virtual consoles, flags=0x280> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A Timecounter "TSC" frequency 2390303520 Hz quality 800 Timecounters tick every 10.000 msec acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% ata0-master: DMA limited to UDMA33, non-ATA66 cable or device ad0: 38154MB [77520/16/63] at ata0-master UDMA33 acd0: CDRW at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s1a # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci device usb # USB Bus (required) # kldstat Id Refs Address Size Name 1 15 0xc0400000 2ecb44 kernel 2 2 0xc06ed000 18c04 miibus.ko 3 1 0xc0706000 6b98 if_rl.ko 4 2 0xc070d000 1d4fc sound.ko 5 1 0xc072b000 5844 snd_ich.ko 6 1 0xc0731000 1bcc io.ko 7 14 0xc0733000 537f0 acpi.ko 8 1 0xc1b13000 6000 umass.ko 9 1 0xc1b1f000 d000 msdosfs.ko 10 1 0xc1ca2000 8000 cd9660.ko >Description: I have a Pentax Optio S50, identified as a Asahi Optical usb device, and it refused absolutly to work. Here is the dmesg output : umass0: PENTAX product 0x001f, rev 1.10/0.00, addr 2 umass0: CBI reset failed, IOERROR umass0: CBI bulk-in stall clear failed, IOERROR umass0: CBI bulk-out stall clear failed, IOERROR Last 3 lines repeated 4 times. Note that this device used to work on a FreeBSD 4.10 kernel. >How-To-Repeat: Every times you plug the device, on every usb port. >Fix: I've managed to make it work just changing sys/dev/usb/umass.c : --- umass.c Mon Sep 20 07:28:08 2004 +++ /usr/src/sys/dev/usb/umass.c Tue Jan 25 00:46:50 2005 @@ -316,7 +316,7 @@ Static struct umass_devdescr_t umass_devdescrs[] = { { USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD, - UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, + UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, RS_NO_CLEAR_UA }, { USB_VENDOR_FUJIPHOTO, USB_PRODUCT_FUJIPHOTO_MASS0100, RID_WILDCARD, But there is still lots of error in dmesg : umass0: PENTAX product 0x001f, rev 1.10/0.00, addr 2 daregister: setting no 6 byte da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 965MB (1976320 512 byte sectors: 64H 32S/T 965C) umass0: Phase Error, residue = 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 Last 2 lines repeated a lot of times. Well it does work, I can mount the device and access pictures. >Release-Note: >Audit-Trail: >Unformatted: