INQUIRY request for 255 bytes.  A classic problem that I thought we fixed
long ago.

If you edit scsi_scan to issue an INQUIRY for only 36 bytes of data, it
should work.

Matt

On Tue, Apr 20, 2004 at 10:44:30AM -0400, Scott O'Connor wrote:
> 
> 
> > Not quite....
> 
> Let's try this.  The inquiry CDB does look wrong to me.  Looks like 12 bytes
> are making it out onto the bus (to the device).  That would certainly cause
> a check condition.
> 
> -Scott.
> 
> 
> 
> Apr 20 09:24:37 kernel: PCI: Using ACPI for IRQ routing
> Apr 20 09:24:37 kernel: PCI: if you experience problems, try using option 
> 'pci=noacpi' or even 'acpi=off'
> Apr 20 09:24:37 kernel: isapnp: Scanning for PnP cards...
> Apr 20 09:24:37 kernel: isapnp: No Plug & Play device found
> Apr 20 09:24:37 kernel: Linux NET4.0 for Linux 2.4
> Apr 20 09:24:37 kernel: Based upon Swansea University Computer Society NET3.039
> Apr 20 09:24:37 kernel: apm: BIOS not found.
> Apr 20 09:24:37 kernel: VFS: Disk quotas vdquot_6.5.1
> Apr 20 09:24:37 kernel: Journalled Block Device driver loaded
> Apr 20 09:24:37 kernel: devfs: v1.12c (20020818) Richard Gooch ([EMAIL PROTECTED])
> Apr 20 09:24:37 kernel: devfs: boot_options: 0x0
> Apr 20 09:24:37 kernel: Serial driver version 5.05c (2001-07-08) with HUB-6 
> MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
> Apr 20 09:24:37 kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
> Apr 20 09:24:37 kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
> Apr 20 09:24:37 kernel: ide: Assuming 33MHz system bus speed for PIO modes; override 
> with idebus=xx
> Apr 20 09:24:37 kernel: ICH3: IDE controller at PCI slot 00:1f.1
> Apr 20 09:24:37 kernel: ICH3: chipset revision 2
> Apr 20 09:24:37 kernel: ICH3: not 100%% native mode: will probe irqs later
> Apr 20 09:24:37 kernel:     ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, 
> hdb:pio
> Apr 20 09:24:37 kernel:     ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, 
> hdd:DMA
> Apr 20 09:24:37 kernel: hdc: 234441648 sectors (120034 MB) w/2048KiB Cache, 
> CHS=14593/255/63, UDMA(100)
> Apr 20 09:24:37 kernel: hdd: 117231408 sectors (60022 MB) w/2048KiB Cache, 
> CHS=7297/255/63, UDMA(100)
> Apr 20 09:24:37 kernel: Partition check:
> Apr 20 09:24:37 kernel:  /dev/ide/host0/bus1/target0/lun0: p1 p2 < p5 p6 >
> Apr 20 09:24:37 kernel:  /dev/ide/host0/bus1/target1/lun0: p1
> Apr 20 09:24:37 kernel: md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
> Apr 20 09:24:37 kernel: md: Autodetecting RAID arrays.
> Apr 20 09:24:37 kernel: md: autorun ...
> Apr 20 09:24:37 kernel: md: ... autorun DONE.
> Apr 20 09:24:37 kernel: Initializing Cryptographic API
> Apr 20 09:24:37 kernel: NET4: Linux TCP/IP 1.0 for NET4.0
> Apr 20 09:24:37 kernel: IP Protocols: ICMP, UDP, TCP, IGMP
> Apr 20 09:24:37 kernel: IP: routing cache hash table of 8192 buckets, 64Kbytes
> Apr 20 09:24:37 kernel: TCP: Hash tables configured (established 262144 bind 65536)
> Apr 20 09:24:37 kernel: Linux IP multicast router 0.06 plus PIM-SM
> Apr 20 09:24:37 kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Apr 20 09:24:37 kernel: kjournald starting.  Commit interval 5 seconds
> Apr 20 09:24:37 kernel: EXT3-fs: mounted filesystem with ordered data mode.
> Apr 20 09:24:37 kernel: Freeing unused kernel memory: 164k freed
> Apr 20 09:24:37 kernel: Real Time Clock Driver v1.10f
> Apr 20 09:24:37 kernel: usb.c: registered new driver usbdevfs
> Apr 20 09:24:37 kernel: usb.c: registered new driver hub
> Apr 20 09:24:37 kernel: usb-uhci.c: $Revision: 1.275 $ time 13:44:32 Apr 19 2004
> Apr 20 09:24:37 kernel: usb-uhci.c: High bandwidth mode enabled
> Apr 20 09:24:37 kernel: PCI: Setting latency timer of device 00:1d.0 to 64
> Apr 20 09:24:37 kernel: usb-uhci.c: USB UHCI at I/O 0xe800, IRQ 16
> Apr 20 09:24:37 kernel: usb.c: new USB bus registered, assigned bus number 1
> Apr 20 09:24:37 kernel: usb.c: kmalloc IF f7e33e00, numif 1
> Apr 20 09:24:37 kernel: usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
> Apr 20 09:24:37 kernel: usb.c: USB device number 1 default language ID 0x0
> Apr 20 09:24:37 kernel: Product: USB UHCI Root Hub
> Apr 20 09:24:37 kernel: SerialNumber: e800
> Apr 20 09:24:37 kernel: hub.c: USB hub found
> Apr 20 09:24:37 kernel: hub.c: 2 ports detected
> Apr 20 09:24:37 kernel: hub.c: standalone hub
> Apr 20 09:24:37 kernel: hub.c: ganged power switching
> Apr 20 09:24:37 kernel: hub.c: global over-current protection
> Apr 20 09:24:37 kernel: hub.c: Port indicators are not supported
> Apr 20 09:24:37 kernel: hub.c: power on to power good time: 2ms
> Apr 20 09:24:37 kernel: hub.c: hub controller current requirement: 0mA
> Apr 20 09:24:37 kernel: hub.c: port removable status: RR
> Apr 20 09:24:37 kernel: hub.c: local power source is good
> Apr 20 09:24:37 kernel: hub.c: no over-current condition exists
> Apr 20 09:24:37 kernel: hub.c: enabling power on all ports
> Apr 20 09:24:37 kernel: usb.c: hub driver claimed interface f7e33e00
> Apr 20 09:24:37 kernel: usb.c: kusbd: /sbin/hotplug add 1
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: port 1 connection change
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
> Apr 20 09:24:37 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface 
> driver
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide1(22,1), internal 
> journal
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: Adding Swap: 2586424k swap-space (priority -1)
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 103, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: new USB device 00:1d.0-1, assigned address 2
> Apr 20 09:24:37 kernel: usb.c: kmalloc IF f7e33ee0, numif 1
> Apr 20 09:24:37 kernel: usb.c: skipping descriptor 0x21
> Apr 20 09:24:37 kernel: usb.c: skipped 1 class/vendor specific endpoint descriptors
> Apr 20 09:24:37 kernel: usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
> Apr 20 09:24:37 kernel: usb.c: USB device number 2 default language ID 0x409
> Apr 20 09:24:37 kernel: Manufacturer: SMSC
> Apr 20 09:24:37 kernel: Product: USB 201
> Apr 20 09:24:37 kernel: SerialNumber: 0123456789AB
> Apr 20 09:24:37 kernel: usb.c: unhandled interfaces on device
> Apr 20 09:24:37 kernel: usb.c: kusbd: /sbin/hotplug add 2
> Apr 20 09:24:37 kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: port 1, portstatus 103, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
> Apr 20 09:24:37 kernel: SCSI subsystem driver Revision: 1.00
> Apr 20 09:24:37 kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Apr 20 09:24:37 kernel: kjournald starting.  Commit interval 5 seconds
> Apr 20 09:24:37 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide1(22,6), internal 
> journal
> Apr 20 09:24:37 kernel: EXT3-fs: mounted filesystem with ordered data mode.
> Apr 20 09:24:37 kernel: Initializing USB Mass Storage driver...
> Apr 20 09:24:37 kernel: usb.c: registered new driver usb-storage
> Apr 20 09:24:37 kernel: usb-storage: act_altsettting is 0
> Apr 20 09:24:37 kernel: usb-storage: id_index calculated to be: 116
> Apr 20 09:24:37 kernel: usb-storage: Array length appears to be: 118
> Apr 20 09:24:37 kernel: usb-storage: USB Mass Storage device detected
> Apr 20 09:24:37 kernel: usb-storage: Endpoints: In: 0xf7ef0c34 Out: 0xf7ef0c20 Int: 
> 0x00000000 (Period 0)
> Apr 20 09:24:37 kernel: usb-storage: New GUID 042420cd00000123456789ab
> Apr 20 09:24:37 kernel: usb-storage: GetMaxLUN command result is -110, data is 128
> Apr 20 09:24:37 kernel: usb-storage: Transport: Bulk
> Apr 20 09:24:37 kernel: usb-storage: Protocol: Transparent SCSI
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Command INQUIRY (6 bytes)
> Apr 20 09:24:37 kernel: usb-storage: 12 00 00 00 ff 00 79 f7 00 f0 ff 37
> Apr 20 09:24:37 kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 
> 255 F 128 CL 6
> Apr 20 09:24:37 kernel: usb-storage: Bulk command transfer result=0
> Apr 20 09:24:37 kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
> Apr 20 09:24:37 kernel: usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/255
> Apr 20 09:24:37 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280
> Apr 20 09:24:37 kernel: usb-storage: usb_stor_clear_halt: result=0
> Apr 20 09:24:37 kernel: usb-storage: usb_stor_transfer_partial(): unknown error
> Apr 20 09:24:37 kernel: usb-storage: Bulk data transfer result 0x2
> Apr 20 09:24:37 kernel: usb-storage: Attempting to get CSW...
> Apr 20 09:24:37 kernel: usb-storage: Bulk status result = 0
> Apr 20 09:24:37 kernel: usb-storage: Bulk status Sig 0x53425355 T 0x1 R -1 Stat 0x0
> Apr 20 09:24:37 kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2 - was 0
> Apr 20 09:24:37 kernel: usb-storage: scsi cmd done, result=0x0
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad LUN (0/1)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (1/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (2/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (3/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (4/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (5/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (6/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: usb-storage: queuecommand() called
> Apr 20 09:24:37 kernel: usb-storage: *** thread awakened.
> Apr 20 09:24:37 kernel: usb-storage: Bad target number (7/0)
> Apr 20 09:24:37 kernel: usb-storage: *** thread sleeping.
> Apr 20 09:24:37 kernel: WARNING: USB Mass Storage data integrity not assured
> Apr 20 09:24:37 kernel: USB Mass Storage device found at 2
> Apr 20 09:24:37 kernel: usb.c: usb-storage driver claimed interface f7e33ee0
> Apr 20 09:24:37 kernel: USB Mass Storage support registered.
> Apr 20 09:24:37 kernel: Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k1
> Apr 20 09:24:37 kernel: Copyright (c) 1999-2004 Intel Corporation.
> Apr 20 09:24:37 kernel: eth0: Intel(R) PRO/1000 Network Connection
> Apr 20 09:24:37 kernel: eth1: Intel(R) PRO/1000 Network Connection
> Apr 20 09:24:37 kernel: eth2: Intel Corp. 82557/8/9 [Ethernet Pro 100], 
> 00:E0:81:27:BE:59, IRQ 19.
> Apr 20 09:24:37 kernel:   Board assembly 567812-052, Physical connectors present: 
> RJ45
> Apr 20 09:24:37 kernel:   Primary interface chip i82555 PHY #1.
> Apr 20 09:24:37 kernel:   General self-test: passed.
> Apr 20 09:24:37 kernel:   Serial sub-system self-test: passed.
> Apr 20 09:24:37 kernel:   Internal registers self-test: passed.
> Apr 20 09:24:37 kernel:   ROM checksum self-test: passed (0xd0a6c714).
> Apr 20 09:24:37 kernel: inserting floppy driver for 2.4.26
> Apr 20 09:24:37 kernel: Floppy drive(s): fd0 is 1.44M
> Apr 20 09:24:37 kernel: FDC 0 is a post-1991 82077
> Apr 20 09:24:37 kernel: Uniform CD-ROM driver Revision: 3.12
> Apr 20 09:24:37 kernel: e1000: eth0 NIC Link is Up 100 Mbps Full Duplex
> Apr 20 09:24:37 kernel: Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]).
> Apr 20 09:24:44 kernel: lp: driver loaded but no devices found

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

P:  Nine more messages in admin.policy.
M: I know, I'm typing as fast as I can!
                                        -- Pitr and Mike
User Friendly, 11/27/97

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to