Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
3.5 KiB

  1. Configuring Power Paramters:
  2. ----------------------------
  3. Scsiport allows adapters to configure some power settings.
  4. NeedsSystemShutdownNotification: DWORD
  5. If nonzero, this value tells scsiport that the adapter needs to
  6. have its AdapterControl routine called when a system shutdown
  7. occurs. See the section on request sense parameters below for the
  8. location of this key.
  9. Configuring Tunable Performance Parameters:
  10. -------------------------------------------
  11. Scsiport supports the following configurable perfomance parameters:
  12. RemainInReducedMaxQueueState: DWORD
  13. If set, this value indicates the number of seconds a logical unit will
  14. remain in a degraded performance state in which its MaxQueueDepth has
  15. been reduced due to one or more requests failed with QUEUE FULL status.
  16. This value is read from ScsiPort's DeviceParameters key in the registry.
  17. See the section on request sense parameters below for the location of
  18. this key.
  19. Configuring Request Sense Parameters:
  20. -------------------------------------
  21. Scsiport supports configurable request sense parameters on a per-adapter
  22. basis. The following parameters may be configured under the HBA's device
  23. entry:
  24. TotalSenseDataBytes: DWORD [18..255]
  25. If set, this value designates the size of the buffer Scsiport will allocate
  26. for request sense data. If the value is not set, the default size of 18 (0x12)
  27. bytes is used.
  28. RequestSenseTimeout: DWORD
  29. If set, this value designates the timeout period for REQUEST SENSE commands, in
  30. seconds. If the value is not set, the default timeout value of 2 seconds
  31. is used.
  32. SenseDataEventClass: STRING
  33. This string value is a GUID that identifies a WMI event class. If this value
  34. is present, the port driver will generate a WMI event containing the request
  35. sense data every time a REQUEST SENSE occurs. The WMI event class must be
  36. added into the repository for clients to find it. See the DDK for the
  37. ways this can be done. One way is to use the MOF compiler, MOFCOMP...
  38. mofcomp -N:root\wmi scsiport.mof
  39. HKLM
  40. System
  41. CurrentControlSet
  42. Enum
  43. <bus>
  44. <DeviceId>
  45. <Device>
  46. DeviceParameters
  47. ScsiPort
  48. DWORD TotalSenseDataBytes=<18..255>
  49. DWORD RequestSenseTimeout=<timeout in seconds>
  50. DWORD RemainInReducedMaxQueueState=<duration in seconds>
  51. DWORD NeedsSystemShutdownNotification=<0|1>
  52. STRING SenseDataEventClass={GUID}
  53. Example:
  54. HKLM
  55. System
  56. CurrentControlSet
  57. Enum
  58. PCI
  59. VEN_9004&DEV_6178&SUBSYS_78619004&REV_03
  60. 3&1b3e6122&0&5070
  61. DeviceParameters
  62. ScsiPort
  63. TotalSenseDataBytes=0xff
  64. RequestSenseTimeout=0xa
  65. RemainInMaxQueueState=0x1e
  66. NeedsSystemShutdownNotification=1
  67. SenseDataEventClass={d69fad96-c9a3-4ed0-b98b-47c27feac68c}
  68. Verifier:
  69. --------
  70. To enable the scsi verifier, add the following registry entry to the scsiport
  71. control entry...
  72. HKLM\system\currentcontrolset\control\scsiport
  73. Verifier
  74. VerifyLevel = <verifier level>
  75. The following values control verifier behavior...
  76. #define SP_DONT_CHK_HW_INITIALIZE_DURATION 0x80000000
  77. #define SP_DONT_CHK_ACTIVE_UNTAGGED_REQUEST 0x40000000
  78. #define SP_DONT_CHK_REQUESTS_ON_RESET 0x20000000
  79. Also, from the debugger, setting SpVrfyLevel=0xffffffff will disable the
  80. verifier.