Re: USB Driver crashing

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



IOCTL_DISK_GET_STORAGEID is not supported for you device. Although ATA
and SD can support this, it does not mean that the other device driver
will support this.

On Jul 17, 6:56 pm, Shabbir <Shab...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi All,

I am trying to include the USB Mass Storage Class Driver. I have got the
basic OHCD dll's for my board and the USB Keyboard/Mouse drivers works well
with this.

However, the USB storage driver does not work properly. On debugging i have  
found that the CStore class of FSD Manager calls its Open Disk method which
inturn calls a Device IO Control.The IOCTL which crashes the driver is
IOCTL_DISK_GET_STORAGEID. While this IOCTL is handled in SD card and ATADISK
drivers. It is not handled here. :  

Following is the log:

 439416 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC<BOT_DataTransfer:0
 439417 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC<UsbsDataTransfer:0
 439418 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6>ScsiGetSenseData
 439419 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6>ScsiRequestSense
 439420 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC>UsbsDataTransfer
 439421 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC_INTERFACE_PROTOCOL_BOT
 439422 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC>BOT_DataTransfer
 439422 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC>BOT_ResetAllPipes
 439423 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC<BOT_ResetAllPipes:1
 439424 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: 5.3.1 CBW
 439431 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: 5.3.2 DataInTransport -
dwDataLength:18, TimeOut:5000
 439432 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: 5.3.2 DataInTransport -
dwRequestLength:18, TimeOut:5000
 439434 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: 5.3.3 CSW
 439438 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC<BOT_DataTransfer:0
 439439 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBMSC<UsbsDataTransfer:0
 439439 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6<ScsiRequestSense:0
 439440 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: ScsiGetSenseData - SenseKey:0x0
ASC:0x0 ASCQ:0x0
 439441 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6<ScsiGetSenseData:0
 439442 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: ScsiReadCapacity ERROR:0
 439443 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6<ScsiReadCapacity:0
 439444 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6<GetDiskInfo:0
 439444 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90:
USBDISK6<DSK_IOControl(BytesTransferred:0, dwErr:0, bRc:0)
 439446 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90:
USBDISK6>DSK_IOControl(IOCTL:0x71c24, InBuf:0x0, InBufLen:0,
OutBuf:0x410f8c8, OutBufLen:0x10)
 439446 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: Unsupported IOCTL:0x71c24
 439447 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: DSK_IOControl error: 50
 439448 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90:
USBDISK6<DSK_IOControl(BytesTransferred:0, dwErr:50, bRc:0)
 439448 PID:65cbbbfa TID:5c7d1ca 0x85cbfd90: CStore Destructor(000CC2A0)
 439449 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6>DSK_Close(0x504730)
 439450 PID:e5c7a79a TID:5c7d1ca 0x85cbfd90: USBDISK6<DSK_Close:1

.



Relevant Pages

  • Re: isa0060/serio0 problems -WAS- Re: Asus MB and 2.6.12 Problems
    ... Use a HIGHMEM enabled kernel. ... Linux Plug and Play Support v0.97 Adam Belay ... Non-volatile memory driver v1.2 ... ehci_hcd 0000:00:13.2: new USB bus registered, ...
    (Linux-Kernel)
  • 2.6.15: usb storage device not detected
    ... dmesg and lspci -vv output for the usb bits attached. ... # ACPI Support ... # Generic Driver Options ...
    (Linux-Kernel)
  • Re: Linux 2.6.13-rc4
    ... > ugly that I won't even show it (the kernel list would eat it as too big ... RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize ... ehci_hcd 0000:00:02.2: new USB bus registered, ... # ACPI Support ...
    (Linux-Kernel)
  • RE: PATCH: Further aacraid work
    ... currently unanswered email "error recovery and command completion" on ... > Enabling unmasked SIMD FPU exception support... ... > usbcore: registered new driver usbfs ... > USB Universal Host Controller Interface driver v2.2 ...
    (Linux-Kernel)
  • [GIT]: Networking
    ... maintainer making a lot of changes to driver FOO. ... support for networking. ... iwl3945: Fix iwl3945 rate scaling. ... Fix build warning due to typo in %pI4 format changes. ...
    (Linux-Kernel)