Windows driver framework(WDF): In UAS mode SCSI Read16 commands fails with USBD_STATUS_CANCELLED and a USB reset is seen

Veeresh Koninti 0 Reputation points
2024-06-18T09:30:52.5166667+00:00

I have an inhouse developed WDF based driver which can run USB SCSI commands in UAS mode in USB 3.0 speed.

Scenario:

The test script queues multiple Read16 SCSI commands to the USB device which supports UAS mode. The test has run for approx. 26hours without any issues. At some point, 32 commands which were in pending state fails with USBD_STATUS_CANCELLED error and there is a USB Reset sent after this.

USB Reset(WARM/HOT Reset) is not sent by the test script and the driver also doesn't send it without the knowledge of the test script.

Queries:

  1. What is the reason for pending commands cancellation?
  2. Why and which USB stack layer sends the USB Reset without the knowledge of the driver?
  3. Any possible ways to debug these sort of scenarios?
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,061 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,787 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
46 questions
0 comments No comments
{count} votes