Installation guide
Header and Data Mode with a buffer ID and buffer offset of zero, these are
the defaults, but may be overridden. By default, the full memory size
returned in the Read Buffer header is written/read/verified, but this too
may be overridden by specifying a smaller data limit or size.
You can use various parameters to control the test memory operation. Most
devices do not require these optional parameters, but newer devices may
require different parameters to access the controller data buffer.
The following notes apply to the parameters used with the test memory
command:
• The default buffer ID is restricted to 0, since this ID normally selects
the controller data buffer.
• The default buffer mode is 0 (selects Combined Header and Data Mode).
• The default offset value is 0. The program automatically adjusts the
memory data bytes being tested when this parameter is nonzero.
• Because writing to the controller data buffer destroys data that may be
valid for active I/O requests, do not use this command for disk devices
with mounted file systems.
• Refer to the vendor’s SCSI programming manual for information on
buffer IDs and buffer modes supported.
If the device does not support a Read Buffer command and/or the default
parameters, an error message similar to the following is displayed:
scu> test memory
Performing Controller Memory Diagnostics...
Testing Controller Memory of 245760 bytes (Mode 0,
Offset 0)
Testing 245760 bytes on [1/2/0] (TZK11) using pattern
0x39c39c39...
scu: ’SCMD_WRITE_BUFFER’ failed, EIO (5) - I/O error
scu: Sense Key = 0x5 = ILLEGAL REQUEST -
Illegal request or CDB
parameter,
Sense Code/Qualifier = (0x24, 0) =
Invalid field in cdb
The following examples show the test memory command:
% scu -f /dev/rrz11c
scu> test memory
Performing Controller Memory Diagnostics...
Testing Controller Memory of 61376 bytes (Mode 0,
Offset 0)
Testing 61376 bytes on /dev/rrz11c (RZ56) using pattern
0x39c39c39...
scu> test memory pattern 0x12345678 size 50k
Performing Controller Memory Diagnostics...
Testing Controller Memory of 61376 bytes (Mode 0,
Offset 0)
Testing 51200 bytes on /dev/rrz11c (RZ56) using pattern
0x12345678...scu> test memory passes 5
B–14 SCSI/CAM Utility Program