PRB: SCSI Miniport Adapter-Specific Parameter May Be Incorrect

Last reviewed: March 18, 1997
Article ID: Q140269
3.50 WINDOWS NT kbprg kbprb

The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) version 3.5

SYMPTOMS

There is a problem when passing parameters to SCSI miniports.

Assume that you have a system with multiple adapters of the same type, so a single miniport will support the hardware. If you want to set specific parameters to only the first adapter (Device0) and not any other adapters, you'd add to the SCSI miniport's registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XyzScsi a "Parameters" subkey. Under the "Parameters" subkey, a "Device0" subkey would be added, with a "DriverParameter" value. The registry entry would be similar to this:

XyzScsi

  Parameters
    Device0
      DriverParameter  REG_SZ : "Device0 parameters"


This works fine for the first device found (Device0). The registry string "Device0 parameters" is passed in as an argument to the HwFindAdapter routine.

However, when the next device (Device1) is set up, the registry string for Device0 is again passed to the HwFindAdapter routine. In fact, this string will be passed in for all devices once it is set. This string should only be passed to the first device (Device0).

RESOLUTION

As a temporary workaround, set up a default set of registry parameters for all adapters and a specific key for the adapter with the required parameters. For example, under the SCSI miniport key, create a Parameters subkey. Under the Parameters subkey, create a subkey "Device" with some non-intrusive parameters, such as a string the SCSI miniport will ignore. Then, for the device you want to set a specific parameter to, say the first device, create a device-specific key "Device0" with the device-specific parameters. In the registry, this would look like similar to this:

XyzScsi

  Parameters
    Device
      DriverParameter  REG_SZ : "Parameters or string to be ignored"
    Device0
      DriverParameter  REG_SZ : "Device0 parameters"

For Device0, the string "Device0 parameters" will be passed to the HwFindAdapter routine. For all other devices, the string "Parameters or string to be ignored" will be passed.

STATUS

Microsoft has determined that there is a problem with the Scsiport.sys driver. This problem will be resolved in the next release of the operating system.


Additional reference words: 3.50
KBCategory: kbprg kbprb
KBSubcategory: ntddkstorage
Keywords : ntddkstorage kbprb kbprg
Version : 3.50
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.