Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2005 10:10:07 +0100 (CET)
From:      guzman@zalem.net
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:    i386/76653: Problem with Asahi Optical usb device (Pentax Optio S50)
Message-ID:  <200501250910.j0P9A7Ss001156@tuned.zalem.net>
Resent-Message-ID: <200501250910.j0P9AHuY021699@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 534708224 (509 MB)
avail memory = 517746688 (493 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD   RSDT> 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: <ACPI CPU (2 Cx states)> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 645DX host to AGP bridge> mem 0xd0000000-0xdfffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 UDMA133 controller> 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: <SiS 7012> port 0x1080-0x10ff,0x1400-0x14ff at device 2.7 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Avance Logic ALC200 AC97 Codec>
ohci0: <SiS 5571 USB controller> 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: <SiS 5571 USB controller> 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: <SiS 5571 USB controller> 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: <SiS 5571 USB controller> 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: <SiS 5571 USB controller> 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: <SiS 5571 USB controller> 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: <EHCI (generic) USB 2.0 controller> 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: <EHCI (generic) USB 2.0 controller> 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: <simple comms> at device 6.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0x1800-0x18ff mem 0xe0004000-0xe00040ff at device 8.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:40:ca:bd:03:1d
cbb0: <ENE CB1410 PCI-CardBus Bridge> mem 0x80000000-0x80000fff irq 10 at device 12.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <Lucent FW322/323> 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: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwe0: <Ethernet over FireWire> 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: <Power Button> on acpi0
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd5fff on isa0
sc0: <System console> at flags 0x80 on isa0
sc0: VGA <16 virtual consoles, flags=0x280>
vga0: <Generic ISA VGA> 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 <HITACHI DK23DA-40/00J0A0A1> [77520/16/63] at ata0-master UDMA33
acd0: CDRW <QSI CD-RW/DVD-ROM SBW-241/VF02> 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: <PENTAX DIGITAL_CAMERA 1.00> 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501250910.j0P9A7Ss001156>