Diag Commands Alpine
Diag Commands Alpine
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 1 of 88
SERIAL PORT INPUT PARAMETER REPRESENTATION
Command parameters in this document are represented with single letters, separated by commas.
e.g. Sx,y,z - This signifies a serial port command, “S”, that takes in three parameters.
Exception: When one parameter is used to input two different values to the command, field width
of each parameter will be shown.
e.g. Dxxyy – This signifies a serial port command, “D”, that takes in one parameter. The
high byte of this parameter (xx) is used to pass one value to the command and the low
byte (yy) is used to pass a second value to the command.
The serial port will accept a max of up to one word (ffffh) for each parameter. For drives
with greater than 64k cylinders, the serial port will accept up to a double word (ffff ffffh)
for each parameter. See the appropriate command description to determine the valid size
of a particular parameter.
Output display values in this document are represented with either letters or numbers and will
show exact field width to aid in the creation and maintenance of serial port parsing software.
e.g. When the log is displayed the output to the screen is formatted as shown below.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 2 of 88
TABLE OF CONTENTS
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 3 of 88
LEVEL T COMMANDS: CERT PROCESS / TEST ............................................................ 14
A Enable/Disable throttling of drive messaging. ........................................................................................ 14
Bx,y Set Baud Rate...................................................................................................................................... 14
*** C,,z Reset Certification Test. (available only when overlay is valid)..................................................... 14
*** Dx,y,z Display Cert Logs sequentially from Log x. (available only when overlay is valid) ..................... 14
Ex,y,z Display/Edit Cert Log(s) ..................................................................................................................... 14
F Set Stuff 14
*** Hx,y,z Display/Reset Health Status Bits. (available only when overlay is valid)...................................... 15
*** I,y,z Initialize System Region. (available only when overlay and cert table are valid)........................... 15
Jx,y Set Scope Sync from Cert Log entries: ............................................................................................... 15
K Download Congen file. ........................................................................................................................... 15
Nx,y,z Set Drive Age to x........................................................................................................................... 15
R Read System Sector into System RAM................................................................................................... 15
S Check User Slip List for empty or unordered slip list................................................................................. 15
Tx Run Factory Test x .................................................................................................................................. 15
*** Vx,y Display Defect List(s) to screen and add to active log .................................................................. 15
Wx,y,z Save System RAM into System Sector. .......................................................................................... 15
Yx,y Set Drive Type .................................................................................................................................... 16
a Drive messaging pause toggle switch ......................................................................................................... 16
b,,z Initialize the overlay area of the disc....................................................................................................... 16
c Write overlays to the disc............................................................................................................................ 16
dx,y,z Download Cert Code (for automated use only)................................................................................... 16
ex,y Download overlay (for automated use only) ....................................................................................... 16
f Burn new serial flash code that is already downloaded to the buffer and transition to it. ........................... 16
gx,y,z Call overlay function........................................................................................................................... 16
h Download cert table (for automated use only) ............................................................................................ 17
*** ix,y,z Initialize/Reset Defect List(s) (available only when overlay is valid)........................................... 17
*** j Download SeaDex script (for automated use only) (available only when overlay is valid)................ 17
kx,y,z Initialize what head to depop .............................................................................................................. 17
*** lx Initialize and write zone buffers in the overlay to RAM..................................................................... 17
*** m,,z Defect Map System Area (available only when overlay is valid) ................................................... 17
r Reload Cert from Disc and report version number ..................................................................................... 17
*** sx,y,z Save Defect List(s) (available only when overlay is valid) ........................................................... 17
wx,y Write (Save) Overlay code to Disc (for automated use only). ............................................................ 18
*** xll,ss,nn Page Log To Host (available only when overlay is valid)......................................................... 18
#,,z Enter HDA Serial Number. ..................................................................................................................... 18
$ Enter PCBA Serial Number. ....................................................................................................................... 18
[x,y ASCII Log Control:................................................................................................................................. 18
LEVEL ONE COMMANDS: MEMORY MANIPULATION COMMANDS ...................... 19
Bx,y Buffer Display..................................................................................................................................... 19
Dx,y,z Display Memory.............................................................................................................................. 19
F Enable Forced Write Bit.............................................................................................................................. 19
M Show Flash ROM Information................................................................................................................ 19
Nx,y,z SMART Serial Port Control............................................................................................................ 19
P Display PCBA Information......................................................................................................................... 19
Sx,y,z Edit Memory Byte............................................................................................................................... 20
Ux,y,z Edit Buffer Byte. ............................................................................................................................. 20
*** Yx Converts desired cylinder number to gray code and display the result. .......................................... 20
*** cx,y,z Compare Buffers (available only when overlay is valid) ............................................................... 20
dx Clear overlay code from disc (for automated use only). ......................................................................... 20
mx,y,z Edit memory word. Operates same as level 1 ‘S’ command, except operates on words................. 20
r Read cert code from disc............................................................................................................................. 20
s Send Drive Information............................................................................................................................... 20
t Read cert table from disc............................................................................................................................. 20
u Read SeaDex script from disc. .................................................................................................................... 20
*** yx Converts desired gray code to a cylinder number and displays the result. ...................................... 20
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 4 of 88
LEVEL TWO COMMANDS: NIWOT READ/WRITE COMMANDS.............................. 21
Bx,y Display Buffer..................................................................................................................................... 21
Cx,y,z Copy Buffers ................................................................................................................................... 21
Ex,y,z Display/Edit Cert Log(s) ..................................................................................................................... 21
Fx,y,z,a Modify Track Defect List................................................................................................................ 21
Gx,y,z,a,b,c MRT Test (available only when overlay is valid) .................................................................... 22
Hx Select Head ............................................................................................................................................. 23
Ix,y,z Display/Modify Adaptive Settings...................................................................................................... 23
Jx,y Scope Sync from Log.......................................................................................................................... 23
Kx,y Set Tracking Offset ............................................................................................................................. 23
Mx,y,z,w Quick Margin Test.......................................................................................................................... 23
Nx Adaptive Test for all Heads in Specified Zone ....................................................................................... 23
Ox,y,z Seek-Seek on current head: ............................................................................................................. 23
Px,y,zzww Set Buffer Pattern: .......................................................................................................................... 23
Qx,y,,a Write/Read/Read Data..................................................................................................................... 23
Rx,y,z,a Read Data. ....................................................................................................................................... 24
Sx,y,z Seek Cyl/Head..................................................................................................................................... 24
*** Tx,y,z Measure Throughput. (available only when overlay is valid) ........................................................ 24
Ux,y Spin-Up ............................................................................................................................................... 25
*** Vx,y,z Read/Compare against corresponding write buffer. ....................................................................... 25
Wx,y,z,a Write Data. ..................................................................................................................................... 25
*** Xx,y,z Display Data IDs on current track. (available only when overlay is valid) ................................... 25
Yx,y,zzaa,b Show/Set Retry Controls ................................................................................................................ 26
Z Spin-Down. ............................................................................................................................................. 26
*** cx,y,z Compare Buffers (available only when overlay is valid) ............................................................... 26
*** dx,y,z,a Re-assign Errors from Log. (available only when overlay is valid) .............................................. 26
*** ex,y Save Log to Cert Log y. (available only when overlay is valid) ..................................................... 26
*** fx,y,z Wedge Defect Map Current Track (available only when overlay is valid) .................................... 26
*** gx,y Slip Servo Wedge (available only when overlay is valid)............................................................... 27
*** hx Translate Physical sector to Logical sector. .................................................................................... 27
*** ix,y Show Track Defect List in Active Log ........................................................................................... 27
*** j,y Read Wedge .................................................................................................................................... 27
*** lx Translate Logical sector to Physical sector. ........................................................................................ 27
px Full Pack Read Or Write (available only when overlay is valid) ........................................................... 28
rx,y,z,a Read Long from current track ......................................................................................................... 28
sx,y,z Seek to Physical Cyl/Head. ................................................................................................................. 29
*** tc,hhss,o Translate Physical Cylinder, Servo Sector, Byte offset to LPL................................................ 29
ux,y,z Enable display of channel and preamp registers during retry.............................................................. 29
wx Write Long to current track..................................................................................................................... 29
x Show Zone Boundaries and system cylinders as well as the last LBA of the drive .................................... 31
yx,z Set Direct Write Mode ........................................................................................................................ 31
*** z,y Write Wedge ................................................................................................................................... 31
LEVEL THREE COMMANDS: SERVO SEEKING COMMANDS .................................. 33
Cx,y Acceleration Constant Measurement Test.......................................................................................... 33
Dx,y,z,a,b,c Seek Access Times ......................................................................................................................... 33
Ex,y,z Display/Edit Certification Test Log(s) ................................................................................................ 33
*** Gx Translate Hex Cylinder to Gray Code (available only when overlay is valid)................................ 33
Hx Head Select ............................................................................................................................................. 33
*** Jx Head Switch Offsets (available only when overlay is valid)........................................................... 33
*** Mx,y Actuator Open-loop Move (available only when overlay is valid)................................................. 33
Ox,y,z Seek-Seek on current head: ............................................................................................................. 33
Px,y,z Position Error Display......................................................................................................................... 33
Qxx,yy Certification Write/Read. ................................................................................................................ 34
*** Rx,y,z Read Grey Code (available only when overlay is valid) ............................................................... 34
Sx,y,z Seek Cyl/Head..................................................................................................................................... 34
T Servo Transducer Calibrations ................................................................................................................ 34
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 5 of 88
Ux Spin-Up 34
Vx,y,z Read GC123 registers (available only when overlay is valid) ....................................................... 34
*** W Read physical Grey Code (available only when overlay is valid)................................................... 34
*** Y Hysteresis (available only when overlay is valid) ............................................................................... 34
Z Spin-Down .............................................................................................................................................. 34
*** c Test Air Latch Closed (available only when overlay is valid) ........................................................... 34
*** gx Translate Gray to Hex (available only when overlay is valid) ........................................................ 34
jx,y,z Ramp Test. (Ramp Load drives only – currently Saturn)................................................................... 35
k Measure Head Position ............................................................................................................................... 35
*** m Servo Actuator Geometry Test for MDW (available only when overlay is valid).............................. 35
*** o Test Air Latch Open (available only when overlay is valid).............................................................. 35
*** px,y Translate Physical sector to Logical sector. (available only when overlay is valid) ....................... 35
*** qx,y Translate Logical sector to Physical sector. (available only when overlay is valid) ....................... 35
sx,y,z Seek to Physical Cyl/Head. ................................................................................................................. 35
LEVEL FOUR COMMANDS: SERVO TRACKING COMMANDS ................................. 36
Cxxyy,z,a,b Tracking Test. (available only when overlay is valid).................................................................... 36
Dx,y,z,a,b,c Seek Access Times ......................................................................................................................... 36
Ex,y,z Display Active Log. ............................................................................................................................ 36
*** Gx Set Tracking/Seek Gain (available only when overlay is valid)...................................................... 36
Hx Select Head x .......................................................................................................................................... 36
*** Ix,y,z Head Stability Test for Heads (default is All Heads) (available only when overlay is valid) ........ 36
Kx Servo Offset ............................................................................................................................................ 37
*** Mx,y Actuator Open-loop Move (available only when overlay is valid)................................................ 37
Nx Napa Servo Adaptive Test for all Heads in Specified Zone.................................................................... 37
O Show MR Head Offset (for current head). .............................................................................................. 37
Px,y,z Position Error Display for current track. ............................................................................................. 37
Sx,y,z Seek Cyl/Head..................................................................................................................................... 37
Tx,y,z Napa Servo Adaptive Test at the Specified Track............................................................................. 37
*** W Read physical Grey Code (available only when overlay is valid)................................................... 37
Xx Display 1 rev of servo burst information for current track...................................................................... 37
*** Zx Zap Servo Burst x of the current track. (available only when overlay is valid) .............................. 37
*** a Slip error code 90's from the log (available only when overlay is valid) ............................................ 37
*** cx Track 0 Cal for MDW (available only when overlay is valid) ........................................................ 38
dx Disable/Enable servo from using the ZAP coefficients in the ZAP table. .............................................. 38
*** f Fill Skipped Cylinders (NOT IMPLEMENTED) (available only when overlay is valid) .................. 38
ix Enable/disable ZAP reads (available only when overlay is valid) .......................................................... 38
j,x Adaptive Coherent Feedforward Compensator (ACFC) calibration (MDW only) ................................ 38
k Skip MDW serial number cylinders (available only when overlay is valid) (MDW only) ......................... 38
lxx Will scan the current position for servo defects and zap the track. ......................................................... 38
*** m RRO ZAP System cylinders (available only when overlay is valid)................................................. 38
ny,,x Calculate the zap coefficients at the current position. ......................................................................... 38
px,y,z Display Spin Error............................................................................................................................... 39
*** qx Change Spin Speed (available only when overlay is valid) ............................................................ 39
rx Reads and displays the specific Track ID contents. ................................................................................ 39
***sx,y,z Show error count for given log (available only when overlay is valid).......................................... 39
tx,y Modifies and views the ZAP RAM table ................................................................................................ 39
vx,y,z,a ButterFlySeekTest........................................................................................................................... 39
wx Writes the ZAP values in the ZAP RAM table to the Track Ids of the current track. ............................. 39
xc,,z Skip Cylinder ...................................................................................................................................... 40
y Show Skipped Cylinders ............................................................................................................................. 40
zc,,z Unskip Skipped Cylinder(s) ................................................................................................................ 40
LEVEL SIX COMMANDS: BATCH FILE COMMANDS.................................................. 41
Bx Run Batch File ........................................................................................................................................ 41
Dx List Batch File ......................................................................................................................................... 41
Ex Enter Batch File....................................................................................................................................... 41
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 6 of 88
* Special Function for batch file: ................................................................................................................... 41
@x Batch File Label. ..................................................................................................................................... 41
| Batch file terminator ................................................................................................................................... 41
LEVEL SEVEN COMMANDS: READ CHANNEL ADAPTIVE COMMANDS............... 42
Bx,y Display Buffer..................................................................................................................................... 42
Cx,y,z Copy Buffers ................................................................................................................................... 42
Dx Display Temperature Diode Values ........................................................................................................ 42
Ex,y Display Log(s)..................................................................................................................................... 42
Fx,y Format Sector/Track............................................................................................................................ 42
Gx,y,z Toggle ECC Seed Finder tool ......................................................................................................... 42
Hx Select Head x .......................................................................................................................................... 42
Ix,y,z,a Display/Modify Adaptive Settings for the Current Head ................................................................ 42
Mx,y,z Napa Single Adaptive Parameter Test............................................................................................. 42
Nx Napa Data Adaptive Test for all Heads in Specified Zone...................................................................... 43
Oh,z, s Read/Write Coarse Offset Calibration............................................................................................. 43
Px,y,zzww Set Buffer Pattern: .......................................................................................................................... 44
Qx,y Write/Read/Read Data ........................................................................................................................ 44
Rx,y Read Data............................................................................................................................................ 44
Sx,y,z Seek Cyl/Head..................................................................................................................................... 44
Tx,y,z Napa Data Adaptive Test at the Specified Track .............................................................................. 44
Ux,y Spin-Up ............................................................................................................................................... 44
Vf Set MR Head Read Bias Current for all Heads ....................................................................................... 44
Wx,y Write Data ........................................................................................................................................... 44
Yx,y,zzaa,b Show/Set Retry Controls ................................................................................................................ 44
Z Spin Down Command ............................................................................................................................. 45
ax,y,z MR Bias Backoff................................................................................................................................. 45
bx,y PE and OTC measurements................................................................................................................. 45
cx,y,z Generate OTC bath tubs by sector ...................................................................................................... 47
dx,y,f Reset Adaptives to the Default Settings .............................................................................................. 47
e Show diagnostic error counter in the Valiant (DIAGERRCNT)................................................................. 47
ff Shows the number of TAs/ data retries done........................................................................................... 47
gxxxx,yyyy,zz Does Error Rate by sector command....................................................................................... 47
ix Issue read / write command (use after p) ............................................................................................... 47
j Ramp unload without spin-down (Ramp drives only – currently Saturn)................................................... 47
n Run the read channel noise calibration at the current track......................................................................... 47
ox,y,z OTC command. ................................................................................................................................... 48
p Set parameters for Read / Write operation (precedes i command).............................................................. 48
r Read Adaptives from the System Sectors ................................................................................................... 48
sxy,z,a Send Byte to Read Channel or Preamp ........................................................................................... 48
tx,z Get Data from Read Channel or Preamp................................................................................................. 48
u Write Unsafe Enable Toggle ....................................................................................................................... 48
v,f VCO calibration / display........................................................................................................................ 48
wx,y,z Save System RAM into System Sector. .......................................................................................... 48
x Show Zone Boundaries ............................................................................................................................... 49
yx,z Set Direct Write Mode ........................................................................................................................ 49
z Toggle Data Randomizer ............................................................................................................................ 49
7x,y,z Generate 747 curve ............................................................................................................................. 49
9x,y,z Adapt Write Delay .............................................................................................................................. 50
LEVEL EIGHT COMMANDS: SERVO TRACK WRITER COMMANDS ....................... 53
A Abort any pending servo diagnostic command ....................................................................................... 53
B Set the read head bias to the serial preamp.............................................................................................. 53
Cx,y,z Execute the servo diagnostic sub commands .................................................................................. 53
D Dump Drive Configuration ..................................................................................................................... 55
E Lock Spindle Motor ................................................................................................................................ 56
F Write Pack-writer Auto Stamp.................................................................................................................... 56
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 7 of 88
Gx Set Spin Gain .......................................................................................................................................... 56
Hx Select head directly ................................................................................................................................. 57
Ix Push-Inward Actuator ............................................................................................................................. 57
Jx Spin Speed Adjust ................................................................................................................................... 57
Kx Added track offset in track follow state .................................................................................................. 57
Lx Load Head Mask ..................................................................................................................................... 57
M Increment Head (current head + 1).......................................................................................................... 57
N Report Logical Spin State ....................................................................................................................... 57
Ox Message Display ..................................................................................................................................... 57
Px Push-Out Actuator................................................................................................................................... 57
Qx Read channel ........................................................................................................................................... 57
Rx Read Gray Code ...................................................................................................................................... 57
Sx,y,z Seek Cyl/Head..................................................................................................................................... 58
Ux Spin-Up Motor ........................................................................................................................................ 58
Vx Spin-Up 58
Wx Set Write Current .................................................................................................................................... 58
Z Spin-Down .............................................................................................................................................. 58
c Crash test the Actuator/Crashstops/HDA.................................................................................................... 58
fx,y Set bank write mode................................................................................................................................ 58
g IMRON signal polarity ............................................................................................................................... 58
LEVEL A COMMANDS: NIWOT READ/WRITE LBA COMMANDS (FULLSLIP) .... 59
Cx,y Convert LBA to LPL and display to screen. ...................................................................................... 59
Dx,y Convert LBA to PCHS and display to screen. ................................................................................... 59
Ex,y Display Log(s)..................................................................................................................................... 59
Mx,y Set GrandB Test ports ......................................................................................................................... 59
Q,x Write/Read/Read LBA. ........................................................................................................................... 59
R,x Read LBA Command. ......................................................................................................................... 59
Sx,y,z Seek LBA Command. ......................................................................................................................... 59
W,x Write LBA Command. ........................................................................................................................ 59
Yx,y,za Show/Set Retry Controls................................................................................................................. 59
cx,y,z Convert LPL to LBA and display to screen. ....................................................................................... 59
dx,y,z Convert PCHS to LBA and display to screen. .................................................................................... 59
lx,y,z Display # of unslipped sectors for LPL to screen................................................................................ 60
LEVEL C COMMANDS: CERT DIAGNOSTIC CTS COMMANDS................................ 61
D Display the Cert Test sequence. .............................................................................................................. 61
Fvvww,x,yyzz Run Cert CTS Test F with input parameters. .......................................................................... 61
***P Load Buffers 10-1A with NAPA specific 127 bit pattern, load buffers 1B-1F with 0’s (available only
when overlay is valid) ........................................................................................................................................ 61
***lxxxxx,yPerform Lazy Write / On-Track-Erasure Screen. (available only when overlay is valid) .............. 61
*** pxx,yy Parse Cert Log for Errors by Head (available only when overlay is valid) .................................... 62
*** sx,y,z,a CTSSpinUpandDn (available only when overlay is valid)............................................................. 63
LEVEL D COMMANDS: SEADEX COMMANDS .............................................................. 64
Ex,y,z Display SeaDex Log, level-T E-command style ................................................................................. 64
Ix SeaDex Information tables ...................................................................................................................... 64
Sx Single Step SeaDex script ....................................................................................................................... 64
Tx,y,… SeaDex Test Step ............................................................................................................................ 64
bx,y,z Script assembly Breakpoint................................................................................................................. 65
cx SeaDex Checkpoint................................................................................................................................. 65
lx,y Display SeaDex Log ............................................................................................................................... 65
px Display SeaDex Tune Parameter............................................................................................................. 65
sx,y Set or Display SeaDex System Variable ............................................................................................. 65
tx SeaDex Trace Levels............................................................................................................................... 66
v Verify SeaDex Script .................................................................................................................................. 66
wx,y,z,a Set or Display SeaDex Word........................................................................................................... 67
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 8 of 88
LEVEL E COMMANDS: DRIVE ZONE AND FORMAT COMMANDS........................ 68
ax,y Displays / modifies drive zone parameters. (available only when overlay is valid)............................ 68
bx,y,z Displays / modifies frame format information. (available only when overlay is valid) ...................... 69
BOOT CODE DIAGNOSTIC COMMANDS........................................................................... 70
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 9 of 88
ON-LINE COMMANDS
The On-Line commands may be initiated at any time. For the Interface-specific commands, the Interface
code must be present in the current memory map for successful execution; the General commands are always avail-
able.
Interface-Specific Commands
Command Description (AT)
^E Interface State: Error codes, Max C.H.S, Current transfer mode settings
^G Write Queue
^U Currently unused
^Y Display Raw SMART DST Values (for Serial Port running of DST)
General Commands
Command Description
^C Firmware Reset
^D, ^N Retry Activity Display Toggle. (See Appendix B. for Retry Display Characters.)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 10 of 88
Online General Commands (Continued)
Command Description
** - Standardized and documented in Test Engineering’s Internal Reference Manual, “Microcode Command Set”.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 11 of 88
COMMON COMMANDS: (Available from All Levels except Level 8)
The Common Commands may be executed whenever the diagnostic monitor prompt is present and the
monitor is waiting for a command request, except at level 8. The level 8 commands take precedence over the com-
mon commands.
Command Description
CR Loop Break.
+x,y Peek Byte. Display the byte data content of the specified memory address:
x - upper bits of a greater-than-16 bit address
y - lower 16 bits of a greater-than-16 bit address or the 16 bit address
=x,y,z Poke Byte. Replace the contents of the specified address with the specified data.
x - upper bits of a greater-than-16 bit address
y - lower 16 bits of a greater-than-16 bit address or the 16 bit address
z - byte data content to be written at the specified address.
-x,y Peek Word. Display the word contents of the specified address.
x - upper bits of >16 bit address
y - lower 16 bits of >16 bit address or the 16 bit address
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 12 of 88
Common Commands (Continued)
Command Description
Lx,y Loop. Causes the next command to repeat execution, subject to controls specified by x:
x Bit Meanings:
Bit # If = 1 If = 0
7 Looping active (internal use) Looping not active (internal use)
6 Looping primed (internal use) Looping not primed (internal use)
5 Stop on Error Code = y Do Loop Count (y<>0)
4 Inhibit Error Message on error Display Error Message on error
3 (unspecified) (unspecified)
2 Spin Down on Error Remain spinning on error
1 Stop on No Error
0 Continue on error Stop on error
y: Error Code to stop on (if Stop on Error Code is enabled.)
Loop Count (default is forever.)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 13 of 88
LEVEL T COMMANDS: Cert Process / Test
Command Description
*** C,,z Reset Certification Test. (available only when overlay is valid)
Resets health bits and sets age to 1. Clears Scratch Fill Done flag.
z - if z = 22h then reset certification test.
- if z <> 22 then ignore this command.
*** Dx,y,z Display Cert Logs sequentially from Log x. (available only when overlay is valid)
x - Log to start sequential display; if blank, display only logs of failed tests.
y - Displays only log entries with this error code
z - Special function:
= 40 - Enable fast dump capability for data cataloger capture. Inhibits time delay
between log dumps and enables fast, unformatted log dump.
F Set Stuff
The Set Stuff data may be up to 512 characters long. The Set Stuff data format is de-
fined by the Seagate-Longmont ATA Vendor Specific Stuff document.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 14 of 88
Level T (Continued)
Command Description
*** Hx,y,z Display/Reset Health Status Bits. (available only when overlay is valid)
x - (anything entered) - Display Current Health
- (nothing entered) - Display Accumulated Health
y - (not used)
z - if z = 22h then reset both current and accumulated health to 0000.
- if z <> 22 then ignore this command.
*** I,y,z Initialize System Region. (available only when overlay and cert table are valid)
Performs all necessary calibrations, formatting and flaw-mapping of the system region
to prepare it to receive the Overlay and to prepare for the Certification Tests.
y - if entered then retrieve SN from the GC
z - if z = 22h then initialize the system region.
- if z <> 22 then ignore this command.
*** Vx,y Display Defect List(s) to screen and add to active log
(available only when overlay is valid)
x - bit select for list to display/add
bit 0 set, display user track slip list (DEFAULT)
bit 1 set, display reserved track slip list
bit 2 set, display alt list
bits may be combined to initialize more than one list
i.e. 1 for user list, 7 for all three lists or any combination in between
y - If entered display/add only defects for head X
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 15 of 88
Level T (Continued)
Command Description
This does not write the cert code to the disc. A level T w command must be issued to write
the cert code to disc.
f Burn new serial flash code that is already downloaded to the buffer and transition to it.
Assumes that the code is already downloaded to buffer 0x400
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 16 of 88
Level T (Continued)
Command Description
*** ix,y,z Initialize/Reset Defect List(s) (available only when overlay is valid)
x - bit select for list to initialize
bit 0 set, initialize user track slip list
bit 1 set, initialize reserved track slip list
bit 2 set, initialize alt list
bits may be combined to initialize more than one list
i.e. 1 for user list, 7 for all three lists or any combination in between
y - If entered save list to disc after initialization
z - if z = 22 Allow initialization
<>22 Disallow initialization; ignore this command.
*** j Download SeaDex script (for automated use only) (available only when overlay is valid)
This command downloads the SeaDex script to the drive. This does not write the cert
code to the disc. A level T w command must be issued to write the script to disc.
*** m,,z Defect Map System Area (available only when overlay is valid)
This command does write/read on system area and slips bad sectors.
z - if z = 22 Allow defect mapping of system area
- if z <> 22 ignore this command.
*** sx,y,z Save Defect List(s) (available only when overlay is valid)
x - bit select for list to initialize
bit 0 set, save user track slip list
bit 1 set, save reserved track slip list
bits may be combined to save more than one list
i.e. 1 for user list, 7 for all three lists or any combination in between
y - ignored
z - if z = 22 Allow save of defect lists
- if z <> 22 Disallow save; ignore this command.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 17 of 88
Level T (Continued)
Command Description
wx,y Write (Save) Overlay code to Disc (for automated use only).
x a bit field for saving code modules to disc (same as level 1 ‘d’)
- if x is entered and = 1 then save cert code only to the disc
- if x is entered and = 2 then save cert tables only to the disc
- if x is entered and = 4 then save application code only to the disc
- if x is entered and = 8 then save SeaDex script only to the disc
other values for x are treated as a bit field to select which of above to save
- if x is not entered then save all to the disc
y buffer number to download from
*** xll,ss,nn Page Log To Host (available only when overlay is valid)
This command will page the log to the host in DC FORMAT, i.e. raw data. This command
will work for ASCII, Active, and Byte Offset log types (1,2,4). The header and DC
FORMAT message will only be displayed if buffer 0 is requested.
ll - log number to page to host
ss - starting buffer offset into log (start at beginning of buffer ss)
nn - number of buffers to display (end at end of buffer ss + nn)
example usage:
x36,0,1 - display log 36 starting at buffer 0, ending at the end of buffer 0 (display only
buffer 0 starting at the first entry after the header, which is 1F0(h) bytes. Because it re-
quests buffer 0 it will display the log header and the DC FORMAT message if it is not
an ASCII log.
x36,16,32 - display log 36 starting at buffer 16, ending at the end of buffer 48. Because it
does not request buffer 0, no header will be displayed, nor will DC FORMAT be dis-
played and it will send a full 6400(h) bytes (200 * 32)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 18 of 88
LEVEL ONE COMMANDS: Memory Manipulation Commands
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 19 of 88
Level One (Continued)
Command Description
*** Yx Converts desired cylinder number to gray code and display the result.
>64k cyl compatible*
(available only when overlay is valid)
See /3 G for further detail.
mx,y,z Edit memory word. Operates same as level 1 ‘S’ command, except operates on words.
*** yx Converts desired gray code to a cylinder number and displays the result.
(available only when overlay is valid)
See /3 g for further detail.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 20 of 88
LEVEL TWO COMMANDS: Niwot Read/Write Commands
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 21 of 88
Level Two (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 22 of 88
Level Two (Continued)
Command Description
Hx Select Head
x - Physical Head to Select
if x not entered, advance to next head
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 23 of 88
Level Two (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 24 of 88
Level Two (Continued)
Command Description
Ux,y Spin-Up
x - spin up options flag
- not entered: Normal spin-up until drive ready
- 0 spin up with no hold states
- 1 advance hold state
- 2 release all hold states
- 3 hold in warm up state
- 4 hold in buzz state
- 5 hold in pre-lock state
- 6 hold in lock state
- all others = no hold state change
y - Head number to use to go active.
*** Xx,y,z Display Data IDs on current track. (available only when overlay is valid)
>64k cyl compatible*
x - Physical Cylinder address. Default: Current physical cylinder.
y - Physical Head address. Default: Current Physical head.
z - Logical sector to display ID from. Default: Entire track’s headers.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 25 of 88
Level Two (Continued)
Command Description
Bit # Bit #
(if 1) Meaning (if 1) Meaning
15 Erasure Pointer Retry Enable 7 MR Bias Retry Enable
14 Thermal Asperity Retry Enable 6 Boost Retry Enable
13 PLL Bandwidth Adjust Enable 5 Servo Threshold Retry Enable
12 Offtrack Read Retry Enable 4 Runout Comp Recal Enable
11 Early Read Retry Enable 3 Max ECC Retry Enable
10 Head Sw/Seek Away Enable 2 ECC Level Control Bit 2
9 Channel Reload Retry Enable 1 ECC Level Control Bit 1
8 VCO Recal Retry Enable 0 ECC Level Control Bit 0
Z Spin-Down.
*** dx,y,z,a Re-assign Errors from Log. (available only when overlay is valid)
x -if entered don't display messages to screen, else display messages
y -if entered assign from display log, else from active log
z -Hit Count Minimum for reassign (default is 3)
a -if entered slip error code 50's, else don't slip 50's
*** ex,y Save Log to Cert Log y. (available only when overlay is valid)
x - Source Log type: 1 = ASCII log, 2 = Active Log (data sector format),
4 = Active log (byte offset format)
NOTE: since display log and active log share same buffer space the dis-
play log can be saved to log y if it was read into the buffer with the pre-
vious command. The following keystrokes would read log 30 and save it
to log 60.
/2
2>E30
2>e2,60
y - Destination Cert Log number
*** fx,y,z Wedge Defect Map Current Track (available only when overlay is valid)
x - if entered
x = 1 to do wedge read only
x = 0 to do wedge write only
y -loop count (default is 1)
z -if entered then use current pattern, else use 4T pattern
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 26 of 88
Level Two (Continued)
Command Description
*** gx,y Slip Servo Wedge (available only when overlay is valid)
x - servo wedge to slip
y - # of servo wedges to slip
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 27 of 88
Level Two (Continued)
Command Description
px Full Pack Read Or Write (available only when overlay is valid)
Read or Write entire pack using infinite read/write with option for display BER by zone,
and / or throughput profile. If throughput profile is enabled, that profile can optionally be
evaluated to predict whether or not the drive will pass Apple Computer’s “Blue Nun” test.
x Mode flags
x Bit Meanings:
Bit # If = 1 If = 0
6 If write error, then retry with full retries. Set If write error, then log it and set health if bit 4
health only if hard error repeats and bit 4 is set. is set.
5 Predict if drive will fail Apple Computer’s Do not evaluate Blue Nun criteria
“Blue Nun” test. This bit is only valid if
throughput profiling (bit 1) is enabled. Through-
put sections which would fail Blue Nun are
flagged with an asterisk (*). Blue Nun failure is
defined as 5 or more regions within 1010 bits
which exhibit throughput degradation of 20% or
greater.
4 Set health 2000 if any hard error Do not set health bits for hard errors
3 After full pack read or write is complete, display Do not show log of hard errors after command
a log of all hard errors. complete (errors will still be present in the ac-
tive log, they just won’t be displayed automati-
cally).
2 Write the pack Read the pack
1 Show throughput profile for drive. The drive is Do not show the throughput profile of the
divided into approximately 1000 regions. At the drive.
end of reading or writing each region, the num-
ber of revs taken to write/read that region is
compared against a prediction. If the number of
revs exceeds the prediction, a line of data is out-
put with the starting track of the region, end
track, number of extra revs taken, and the per-
cent degradation this throughput drop represents.
If Blue Nun evaluation is enabled (bit 5), then an
asterisk (*) will be displayed at the end of any
line representing a Blue Nun failure.
0 At conclusion of the full pack read or write, dis- Do not show zone BER statistics
play the BER statistics for each zone. (See ap-
pendix « Statistics Display Description »)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 28 of 88
Level Two (Continued)
Command Description
*** tc,hhss,o Translate Physical Cylinder, Servo Sector, Byte offset to LPL
(available only when overlay is valid)
>64k cyl compatible*
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 29 of 88
* Will accept up to 8 digits for drives with >64k cylinders
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 30 of 88
Level Two (Continued)
Command Description
x Show Zone Boundaries and system cylinders as well as the last LBA of the drive
output formatted as follows:
ZoneX: start cyl – end cyl sectors per track(decimal) NRZ data rate
Example
Zone 0: 0006 - 0B4F 800 389.020
Zone 1: 0B50 - 161B 785 382.415
Zone 2: 161C - 25B5 768 367.059
Zone 3: 25B6 - 314F 729 355.294
Zone 4: 3150 - 3B07 704 342.588
Zone 5: 3B08 - 4622 672 325.378
Zone 6: 4623 - 4F15 640 311.634
Zone 7: 4F16 - 55ED 614 301.176
Zone 8: 55EE - 5AD9 595 292.318
Zone 9: 5ADA - 6272 576 276.706
Zone A: 6273 - 6965 537 265.412
Zone B: 6966 - 6FBC 512 251.641
Zone C: 6FBD - 72C8 493 244.706
Sys= 42FD-4323 02C3 SPTK on sys trks
Total LBAs = 0130216B
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 31 of 88
* Will accept up to 8 digits for drives with >64k cylinders
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 32 of 88
LEVEL THREE COMMANDS: Servo Seeking Commands
Command Description
*** Gx Translate Hex Cylinder to Gray Code (available only when overlay is valid)
x - Cylinder number to translate to Gray
Hx Head Select
x - head to select
*** Mx,y Actuator Open-loop Move (available only when overlay is valid)
x - DAC output value
y - DAC control value (Drive specific)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 33 of 88
Level Three (Continued)
Command Description
*** Rx,y,z Read Grey Code (available only when overlay is valid)
x = 0: Read one burst
<>0: Read full track
y - Desired logical cylinder number (Default: current cylinder)
z - Burst Number (Default: Burst 00)
Ux Spin-Up
See /2 U for further detail.
*** W Read physical Grey Code (available only when overlay is valid)
Z Spin-Down
*** c Test Air Latch Closed (available only when overlay is valid)
Tests the air latch is closing properly when the drive is spinning down,.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 34 of 88
Level Three (Continued)
Command Description
*** m Servo Actuator Geometry Test for MDW (available only when overlay is valid)
Compares the Actuator Sweep Geometry between the MDW writer actuator arm and the
actuator arm in the hard drive.
*** o Test Air Latch Open (available only when overlay is valid)
Tests the air latch is opening properly when the drive is spinning at 87hz.
*** px,y Translate Physical sector to Logical sector. (available only when overlay is valid)
See /2 h for further detail.
*** qx,y Translate Logical sector to Physical sector. (available only when overlay is valid)
See /2 l for further detail.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 35 of 88
LEVEL FOUR COMMANDS: Servo Tracking Commands
Command Description
Default for Level 4 'C' command without sending any parameters is to perform the
Pre ZAP Scan followed by RRO ZAP followed by Post ZAP Scan on the current track.
Hx Select Head x
*** Ix,y,z Head Stability Test for Heads (default is All Heads) (available only when overlay is valid)
>64k cyl compatible*
x - disturbance in DAC bits (default 40h)
y - Test Cylinder (default is first user cyl )
z - The Gain increment (default = 666h)
Display is the average of 160d iterations
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 36 of 88
Level Four (Continued)
Command Description
Kx Servo Offset
See /2 K for further detail.
*** Mx,y Actuator Open-loop Move (available only when overlay is valid)
x - DAC output value
y - DAC control value (Drive specific)
*** W Read physical Grey Code (available only when overlay is valid)
*** Zx Zap Servo Burst x of the current track. (available only when overlay is valid)
*** a Slip error code 90's from the log (available only when overlay is valid)
Scan the active buffer for error code 90's and slip all data sectors that fall within the servo
burst with the error or within the servo burst after the one with the 90. An error code 8A
will replace the 90 in the log to show the wedge data sectors were slipped. An error code
50 will be added to the log for every data sector that is slipped.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 37 of 88
Level Four (Continued)
Command Description
*** cx Track 0 Cal for MDW (available only when overlay is valid)
Calibrate and display the Grey Code Cylinder for Physical Cylinder 0 on all available
heads. The Grey Code values are stored in the MDW Radial Offset Table and displayed in
hex.
- x = 0 (default) to calibrate the drive. Automatically detects
MDW/HDW drive.
- x = 1 to display the MDW Radial Offset Table without calibrating
the drive.
- x = 2 Sets drive type to MDW.
- x = 3 Sets drive type to HDW.
dx Disable/Enable servo from using the ZAP coefficients in the ZAP table.
x - 1 to disable engine
- no parameters to enable engine
*** f Fill Skipped Cylinders (NOT IMPLEMENTED) (available only when overlay is valid)
k Skip MDW serial number cylinders (available only when overlay is valid) (MDW only)
Skip the cylinders containing over-sampled MDW media serial number tracks plus 3
guard tracks on each side. On MDW drives, each head will have 2 s/n tracks at a unique
physical location (this location is product specific, and is hard-coded into the firmware).
Adding 3 guard tracks on each side means a total of 8 cylinders will be skipped for each
head.
lxx Will scan the current position for servo defects and zap the track.
xx – if entered will do the read position, otherwise write position is scanned.
*** m RRO ZAP System cylinders (available only when overlay is valid)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 38 of 88
Level Four (Continued)
Command Description
***sx,y,z Show error count for given log (available only when overlay is valid)
This test will read the log x in to the active buffer. It reads all error codes in buffer and
stores each UNIQUE error code on the stack. For each error codes of the stack, it will scan
through the active buffer and display the counts for the error codes on each head.
vx,y,z,a ButterFlySeekTest
Do a butterfly seek starting at OD and ID cylinders.
x - if entered, used as OD start cylinder.
y - if entered, used as ID start cylinder.
z - test duration,
a - if entered, then ‘z’ value is the test duration in seconds. If not entered, then
‘z’ value is the test duration in number of seeks to perform.
wx Writes the ZAP values in the ZAP RAM table to the Track Ids of the current track.
x - entered, the write position ZAP values (odd bursts) will be written.
- not entered, the read position ZAP values (even bursts) will be written.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 39 of 88
Level Four (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 40 of 88
LEVEL SIX COMMANDS: Batch File Commands
See also the common commands *, @, and |. These commands define the batch file flow control.
Command Description
*Note: For commands Bx, Dx, and Ex above, if x is greater than 2, batch #0 will be used.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 41 of 88
LEVEL SEVEN COMMANDS: Read Channel Adaptive Commands
These commands provide tools for determining and modifying the read/write channel adaptive parameters.
Command Description
Hx Select Head x
Runs the individual Napa data adaptives at the current zone, head, and cylinder.
The lower and upper limit parameters will default to the drives, if none are passed.
ASSUMPTIONS:
The current track has been written with the desired pattern with 7>M0 command.
MR reader/write offset has been calibrated for this zone and the next.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 42 of 88
Level Seven (Continued)
Command Description
0 Napa Test Track writes and reads the current track and displays QM count.
1 MR read bias
2 Write Pre-compensation
3 Filter (CTTFR)
4 Boost (ZFR)
5 Tap Delta (TDTARGR)
6 Write Current
7 MR Asymmetry
8 MR reader/writer OD offset
9 MR reader/writer ID offset
A Napa Attenuation
B Reserved
C Read gain (VGAR)
D Reserved
E Reserved
F Reserved
10 Calibrate Noise Level (DTHR) to QM count. QM Count = 0 turns off noise.
This means that it ran the offset cal in zone 1 head 0. It ran the test at 0DCA.0, and it tested the offset range from
0xFDC0 – 0xFF6A. It read 0x1C revs at the track. It also incremented the offsets by 3 each tick. I.e. it tested offset
0xFDC0, then 0xFDC3, 0xFDC6 etc… The results are, in the first test, it got a Min of 0x23C at location 0xFE47.
There was not bathtub curve (got a 0x7FFF for bath tub left, and bathtub right). Since there was no bath tub curve,
the range is 0. The pick would be then the position where the min occurred as there is no bathtub curve.
As there was no bathtub curve, a retry was initiated, but with a lower read count. As you can see on the second line,
we are testing the exact same parameters, except we are reading 1 rev instead of 0x1c revs. With that we have a bath
tub curve, ranging from 0xFE23 to 0xFE59, hence giving us a range of 0037. We pick the center of the bathtub giv-
ing us a 0xFE3E.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 43 of 88
Level Seven (Continued)
Command Description
Example 2:
7>O0,1
Zone 1
[0DCA.0,FDC0,FF6A,1c, 3]
07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF
07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 05DA 0499
039D 0319 02A3 023C 021D 01E8 01BE 01DA 01AF 017A 0194 0197 01AF 01BF 01DD 022D
025F 028D 0325 03AD 04E2 069E 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF
07FF
->Min=017A(FE3B) BL=7FFF BR=7FFF Range=0000 Pick=FE3B
[0DCA.0,FDC0,FF6A, 1, 3]
07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF
07FF 07FF 07FF 07FF 07FF 07FF 0692 0300 0238 0134 00F0 0090 0067 002F 003B 002E
002E 0018 0017 000D 0018 001F 000B 001E 000D 000D 001A 0013 0008 000F 0009 000B
0009 0011 0021 0015 0031 0028 005E 008C 00CF 0119 037C 02B3 034B 074E 07FF 07FF
07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF
->Min=0008(FE44) BL=FE17 BR=FE5F Range=0049 Pick=FE3B
7>
As you can see, it’s almost the same as the above, except it displays ALL the error counts.
No default parameters, the user must pass the zone, head, and cylinder numbers.
Ux,y Spin-Up
See /2 U for further detail.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 44 of 88
Level Seven (Continued)
Command Description
07FF 00DF 0001 0000 0000 000A 00CA 07FF 07FF 07FF 07FF 07FF 07FF
Example #2
7>S3C25
7>H0 (Head 0)
7>b,1
Num Steps = 0020
07FF 07FF 07FF 07FF 07FF 07FF 0005 0000 0000 0000 0000 0000 0000 0000 0000 0000
0005 013A 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF 07FF
07FF
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 45 of 88
Level Seven (Continued)
From example #1
Offset value 00 0C 13 1D 27 31 3B 45 4F 59 63 6D 76
Offset distance (uin.) 0.0 5.7 11.3 17.0 22.6 28.3 33.9 39.6 45.2 50.9 56.5 62.2 67.8
Non-zero bytes (h) 07FF 07FF 4 0 0 3 170 07FF 07FF 07FF 07FF 07FF 07FF
Non-zero bytes (d) 2047 2047 4 0 0 3 368 2047 2047 2047 2047 2047 2047
Number of bits read 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7 7.48E+7
Log BER -4.6 -4.6 -7.2 -7.9 -7.9 -7.3 -5.3 -4.6 -4.6 -4.6 -4.6 -4.6 -4.6
-3
0 10 20 30 40 50 60 70 80
-4
-7
-8
-9
Offset Value
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 46 of 88
Level Seven (Continued)
Command Description
Specify a retry level, typically YF,5. Test 5 consecutive sectors starting at physical sector 20h on current track:
7>c20,5,1
444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFF0000111122223333444455556666777788889999AAAABBBBC
048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C048C0
0322(0020) ************************************............|.................................***************FFD0 84 2A
0323(0021) ***********************************.............|.............................*.*****************FFCC 7C 24
0324(0022) ************************************............|................................****************FFD0 80 28
0325(0023) **********************************..............|..................................**************FFC8 88 28
0326(0024) ************************************............|...............................*****************FFD0 7C 26
Average FFCE 80 27
7>
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 47 of 88
Level Seven (Continued)
Command Description
This command is used to test the track offset. Lets say I want to check if the current track’s offset pick is good. All
we have to do is run the o command.
e.g.
7>S500,0
7>o
FF88 FF9C FFB0 FFC4 FFD8 FFEC 0000 0014 0028 003C 0050 0064 0078
--|----|----|----|----|----|----|----|----|----|----|----|----| now test
0500 :*************************.......|............*******************FE16 FE0C
We tested track 0x500, and the offset looks skewed slightly to the right. The value we are using is 0xFE0C, the best
value from this test is 0xFE16
This can be used to test a range of tracks. E.g. lets test track 6000 to 7000 with a step size of 0x200
7>o6000,7000,200
FF88 FF9C FFB0 FFC4 FFD8 FFEC 0000 0014 0028 003C 0050 0064 0078
--|----|----|----|----|----|----|----|----|----|----|----|----| now test
6000 :*******************.............|...........********************FFA4 FFA8
6200 :*********************...........|...........********************FFB1 FFB1
6400 :*********************...........|..........*********************FFB8 FFBA
6600 :*********************...........|.........**********************FFBF FFC3
6800 :*********************...........|...........********************FFCD FFCD
6a00 :**********************..........|..........*********************FFD7 FFD7
6c00 :************************........|..........*********************FFE5 FFE1
6e00 :*******************.............|...........********************FFE9 FFED
7000 :*********************...........|..........*********************FFF8 FFFA
As you can see, we seem to be fairly centered.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 48 of 88
Level Seven (Continued)
Command Description
Example #1
Left column shows write offset (track pitch in Hex DAC bits), right column shows OTC in Decimal DAC bits
Where write offset = 0020: Track pitch = 60.9-[(60.9/384)*32] = 55.8uin. OTC = (126/384)*60.9 = 19.9uin.
7>S3C25
7>
7>725,2F,0
FF80| ************************.................*********************** 144
FF88| ************************.................*********************** 144 Command:
FF90| ************************.................*********************** 144
7>72,300,0
FF98| ************************.................*********************** 144
FFA0| ************************.................*********************** 144 7>72,2F,0
FFA8| ************************.................*********************** 144 7>7F0,64,0
30
FFB0| ************************.................*********************** 144
FFB8| ************************.................*********************** 144
FFC0| ************************.................*********************** 144
FFC8| ************************.................*********************** 144
25
FFD0| ************************.................*********************** 144
FFD8| ************************..................********************** 153
FFE0| ************************..................********************** 153
FFE8| ************************..................********************** 153
20
FFF0| ***********************...................********************** 162
FFF8| ***********************...................********************** 162
0000| ************************..................********************** 153
0008| ************************..................********************** 153 15
0010| ************************.................*********************** 144
0018| ************************.................*********************** 144
0020| *************************...............************************ 126
0028| *************************..............************************* 117 10
0030| ***************************............************************* 99
0038| ****************************..........************************** 81
0040| ****************************.........*************************** 72
0048| *****************************.......**************************** 54 5
0050| *******************************....***************************** 27
0058| ********************************.******************************* 0
0060| **************************************************************** 0 Track pitch (uin.)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 49 of 88
Level Seven (Continued)
Command Description
This test calibrates the reader-writer delay (separation between the reader and writer in the spin direction) on a per-
zone, per-head basis. The test accomplishes this by adding a delay to the time from AM detect to write gate (see Sec-
tor Write Timing diagram on next page). The amount of this delay, in bytes, is stored as adaptive parameter PLO
Phs (B). The write gate delay is accomplished by adding to the following registers during a write: SPLIT_WIDTH
(desired width of a split), TRKID_POS (the expected position of the track ID sector pulse from the previous AM),
and SPHS (the delay from the detection of the last servo address mark to the first hard sector pulse. These three reg-
isters are only modified during a write operation.
Fine-tuning PLO Phs allows us to adjust for variances in reader/writer separation in the direction parallel to the ac-
tuator arm. The goal is to achieve a uniform delay from AM detect to sector start during a read operation, given that
the reader / writer separation will vary from head to head.
Algorithm:
For each zone on the drive, try each setting of PLO Phs from 0 to F. At each setting of PLO Phs, write sector zero
of a test track and read it back several times. The test track is the OD (or, optionally the ID) of the zone. Every time
the test reads back the test sector, it calculates and stores the elapsed time (in bytes) from read gate (RG) to sync
byte (SB) (see Sector Read Timing diagram on next page). The RG to SB delay is calculated by reading register
EDD8 (MR_CNT_AT_SYNC) of the Saratoga II or later controller.
This cycle (read the sector, calculate and store the RG to SB delay) is repeated ten times. The number of
read/compute/store cycles can be changed using the second parameter (y). The average RG to SB delay is then com-
puted and saved as the data point for the PLO Phs setting under test.
After all settings of PLO Phs have been tried for a particular zone, the routine determines which setting came the
closest to the desired RG to SB delay without exceeding it. That setting then becomes the “pick” for that zone. The
default target value is drive specific. (Aspen = 16, Saturn = 15).
Error handling: If there is any error reading or writing a test sector, then an alternate track will be tested.
The alternate will be 2510 tracks towards the MD of the zone. This alternate track retry will occur a maxi-
mum of 20 times for each PLO Phs setting. If the test was never able to read a sector successfully after ex-
hausting the 20 retries, then a period (‘.’) will be displayed as the result for that setting.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 50 of 88
Level Seven (Continued)
Sector Write Timing (no split)
AM
SPHS + PLO Phs
S_PULSE
WG
The Net effect is a delay in writing the sector. The delay increases proportionally with PLO Phs
AM
SPHS
S_PULSE
RG
RG to SB Delay. This is the delay we are measuring for each setting of PLO Phs
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 51 of 88
Level Seven (Continued)
Sample Output
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 52 of 88
LEVEL EIGHT COMMANDS: Servo Track Writer Commands
Note: Assume PACKWRITER = FALSE, unless otherwise noted.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 53 of 88
Level Eight (Continued)
Command Description Set Flags
C0B,x,y Serpentine seeks inward up and down the REDUCED_DIAG==FALSE
(32 bit) head stack within the min and max cylinder
x = optional cylinder (default = current cylinder)
y = optional head (default = current head)
C0C,x,y Seek to seek between cylinders REDUCED_DIAG==TRUE/FALSE
(32 bit) x = optional 1st cylinder (default = min cylinder)
y = optional 2nd cylinder (default = max cylinder)
C0D,x,y Head switches from 1st to 2nd head REDUCED_DIAG==FALSE
x = optional 1st head (default = head 0)
y = optional 2nd head (default = max head)
C0E,x,y Set servo gains REDUCED_DIAG==FALSE
x = Ka
y = Ktf
C0F,x,y Encode cylinder/ decode gray code REDUCED_DIAG==TRUE/FALSE
x = optional cylinder or gray code
(default = current cylinder/ gray code)
y = (0 = encode, 1 = decode)
C10,x,y Head switch offset measurement routine REDUCED_DIAG==TRUE/FALSE
(32 bit) x = starting cylinder (default = current cylinder)
y = target servo sector CHANGESG011199_00==TRUE
C11,x Head linearization cal routine REDUCED_DIAG==TRUE/FALSE
x = # of tracks to average (default: 4 tracks (max))
C12,x,y AFC commands REDUCED_DIAG==TRUE/FALSE
x = 0; AFC weights are zeroed and stored as zero for present head
2; AFC weights are updated and stored for present head
5; ALL AFC weights are displayed
6; AFC weights are updated and stored for all heads
7; AFC learning/compensation enable
y (only applicable with x = 7)
= 0 1; enable 1x AFC
1 0; enable 2x AFC
1 1; enables 1x and 2x AFC
C14,x Change spin tolerance threshold NON-MDW ONLY
Spin tolerance = STV_LIMIT (in srvo clks) / AMTIME (in srvo clks)
x entered = new STV_LIMIT
x not entered = displays current STV_LIMIT
C15,x,y Change write threshold REDUCED_DIAG==TRUE/FALSE
x = X_Threshold
y = X_plus_V_Threshold
C16,x Disable prediction stuffs on zapped REDUCED_DIAG==TRUE/FALSE
servo samples
x = 0; allow stuffs
1; disable stuffs
C18 Calibrate servo (Runs C0, C4, C11) REDUCED_DIAG==TRUE/FALSE
C19,x Display 1 rev of tangential PES REDUCED_DIAG==TRUE/FALSE
x = starting sector CHANGESG011199_00==TRUE
C1F Display servo calibration data REDUCED_DIAG==TRUE/FALSE
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 54 of 88
Level Eight (Continued)
Command Description Set Flags
C20,x,y Read Embedded HDA Serial Number. REDUCED_DIAG==TRUE
SN is read into RAM. The cert process can OVERSAMPLING==TRUE
then use this value to determine drive type.
x = Head to read MDW disk serial number. (MDW only)
y = If set read MDW disk serial number from alternate track. (MDW only)
C23,x,y Special case measuring of RRO on a STW. PACKWRITER==TRUE
The user must first bias the actuator MEASURE_PES==TRUE
against the push pin on the STW by
using the Level 8>P cmnd.
Then use the C23 command to
display the NRRO and RRO.
x = optional number of
samples in hex (default: 64 hex = 100d)
y = display sums flag
( = 0; display sums, (default)
1; don’t display sums, (this is faster))
C24,x,y Measure the PES synchronously at every REDUCED_DIAG==TRUE/FALSE
sector on the present track and head. MEASURE_PES==TRUE
x = optional number of samples in hex
(default: 64 hex = 100d)
y = display sums flag
( = 0; display sums, (default)
1; don’t display sums, (this is faster))
C25 Redisplay results of C23 and C24 REDUCED_DIAG==TRUE/FALSE
MEASURE_PES==TRUE
C26 DAC offset cal REDUCED_DIAG==TRUE/FALSE
C28,x Write servo DACs REDUCED_DIAG==TRUE/FALSE
x = 12 bit signed value ECKickOffTest==TRUE
C33,x Repeatable Timing Error (RTE) Calibration (MDW only)
x = 0; Execute calibration and display result
x = 1; Display result
x = 2; Same as x=0 and additionally the RTE of each sector of each track is dis-
played
C36,x Head Switch Calibration for prewritten media (MDW only)
x = 0; Execute calibration and display result
x = 1; Display result
C37 AFC Zoned (AFCZ) Calibration (MDW only)
C3B,x Greycode Index Calibration (Multi-disk MDW only)
x missing; Execute calibration on all heads and display result
x anything; Display calibration result only
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 55 of 88
E Lock Spindle Motor
Lock Spindle Motor to external timing provided by PACKWRITER==TRUE
packwriter
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 56 of 88
Level Eight (Continued)
Command Description Set Flags
Ix Push-Inward Actuator
x = 12 bit DAC command PACKWRITER==TRUE
Ox Message Display
x = 0 is display output off, PACKWRITER==TRUE
x = 1 is display output on (default).
Px Push-Out Actuator
x = 12 bit DAC command PACKWRITER==TRUE
Qx Read channel
x = 0 is channel off, 1 = channel on PACKWRITER==TRUE
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 57 of 88
Level Eight (Continued)
Command Description Set Flags
Ux Spin-Up Motor
x hold state(optional) REDUCED_DIAG==FALSE
Vx Spin-Up
x = actuator bias direction, (0 = outward, 1 = inward) PACKWRITER==TRUE
Z Spin-Down
REDUCED_DIAG==FALSE
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 58 of 88
LEVEL A COMMANDS: Niwot Read/Write LBA Commands (FULLSLIP)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 59 of 88
Level A (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 60 of 88
LEVEL C COMMANDS: Cert Diagnostic CTS Commands
Command Description
Entering No Parm or zeros for fields within a Parm causes Parm Field Defaults to be used.
Parms entered or generated internally as Defaults are printed at start of test.
NOTE: If test is to be terminated early before completion use Online command ^R in-
stead of ^Z to ensure repeatabllity if test is restarted without power cycling.
***P Load Buffers 10-1A with NAPA specific 127 bit pattern, load buffers 1B-1F with 0’s
(available only when overlay is valid)
***lxxxxx,y Perform Lazy Write / On-Track-Erasure Screen. (available only when overlay is valid)
Algorithm:
1. Write test track
2. Read sectors 100-107 140h times (Rbit=7.0), Save Raw BER for baseline
3. Write sectors 0-7 using single sector writes (one sector per rev)
4. Read sectors 0-7 and save the data for BER1
5. Read sectors 100-107 and save the data for BER2
6. Repeat steps 3-5 140h (Rbit 7.0) times
7. Rewrite track to clean up
Failure Criteria:
If Baseline-BER1 is > 1.5 decades, then cold-write failure
If Baseline-BER2 is > 1.5 decades, then OTE failure
Parameters:
xxxxx Track number to test. Default = current track
y Head to test. Default = all heads.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 61 of 88
*** pxx,yy Parse Cert Log for Errors by Head (available only when overlay is valid)
This routine will read log xx and total error code yy by head and print the results to the
screen.
xx - the cert log number to parse
yy - the error code to count by head
Notes: Max head is 3 and the number of errors for a specific head is a decimal number.
Example usage/Output:
C>p39,43
head 0: 1
head 1: 7
head 2: 3
head 3: 3
C>
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 62 of 88
Level C (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 63 of 88
LEVEL D COMMANDS: SeaDex Commands
All the commands at this level were designed for use by SeaDex script debugger, DxDebug, though others may find
them useful also.
x – Log number
If no x Display trace log
y – (Any value for y) Display log in hexadecimal
If no y Display log in text
z – (Any value for z) Display size and location of all logs (x and y are ig-
nored)
After script execution, the current SeaDex instruction pointer is displayed in the form:
=0000 ip
When displaying the list of steps, the test step and assembly instruction address is dis-
played in the form:
Test-step 0x02
t$ 0000
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 64 of 88
Level D (Continued)
(All available only when overlay is valid)
Command Description
cx SeaDex Checkpoint
c Write checkpoint to disc
c2 Use checkpoint in memory if possible, else go to c1...
c1 Load checkpoint from disc if possible, else go to c0...
c0 Initialize checkpoint (start over)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 65 of 88
Level D (Continued)
(All available only when overlay is valid)
Command Description
When bit 7 of trace is set, as each assembly instruction is executed, or when bit 4 of trace
is set as each Call assembly instruction is executed, the SeaDex firm-
ware will display the assembly address of that instruction in the form:
t$ 0000
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 66 of 88
Level D (Continued)
(All available only when overlay is valid)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 67 of 88
Level E Commands: Drive Zone and Format Commands
All the commands at this level were designed for use in viewing and/or modifying the drive zone and format parame-
ters.
Command Description
ax,y Displays / modifies drive zone parameters. (available only when overlay is valid)
>64k cyl compatible*
Assumes zone table information is already read from overlay to RAM (use /T>l1 (that’s
the level T little “L” - one command) to force the read. Use /T>l10 (level T little “L” –
one – zero command) to write changes to overlay.
1. Zone: 0009 9
2. Start Cyl: 0000cc89 52361
3. End Cyl: 0000de3b 56891
4. NRZ Freq: 00069646 431686
5. Secs Per Trk: 02a4 676
6. Write Split Pos: 0230 560
7. Read Split Pos: 0216 534
8. Sec Freq: 086e 2158
9. Base Ctr: 0003 3
10. Read ID Pos: 0148 328
11. Write ID Pos: 0162 354
12. Wedge Sec Sze: 07fc 2044
13. Sec Info Tbl Add: b460 46176
14. Phase Off: 02 2
15. PLO Offset: 02 2
16. NReg: 0e 14
17. MReg: ab 171
18. DRReg: 61 97
19. PLO Len: 0a 10
18. DRReg: 61 97
19. PLO Len: 0a 10
20. Write Off Delay: 1d 29
21. Byte / SPHSConvNum: 3a 58
If End Cyl of zone X is changed, Start Cyl of zone X + 1 will follow, unless End Cyl of
zone X is set greater than End Cyl of zone X + 1 (don’t do this; bad things may happen).
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 68 of 88
Level E (Continued)
Command Description
Similarly, if Start Cyl of zone X is changed, End Cyl of zone X – 1 will follow, unless
Start Cyl of zone X is set less than Start Cyl of zone X – 1 .
bx,y,z Displays / modifies frame format information. (available only when overlay is valid)
Assumes frame format information is already read from overlay to RAM (use /T>l1 (that’s
the level T little “L” - one command to force read). Use /T>l10 (level T little “L” – one –
zero command) to write changes to overlay.
For example, to modify Wedge 1’s SpltCnt from 11e to 222, use b1,2,222
If y = ffff, x will determine the last wedge’s information remaining. For example, if you
wish to remove wedge information for wedges 2 and 3 (leaving only 0 and 1), use b1,ffff
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 69 of 88
Boot Code Diagnostic Commands
The following commands are only available thru the boot code diagnostic monitor.
All Boot Code Diagnostic Commands are compatible with drives with >64k cylinders.
^D, ^N Retry Activity Display Toggle. ** (See Appendix B. for Retry Display Characters.)
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 70 of 88
Level F Commands: Limited Boot Code Debug Support
Command Description
+x,y Peek Byte. Display the byte data content of the specified memory address:
x - upper bits of a greater-than-16 bit address
y - lower 16 bits of a greater-than-16 bit address or the 16 bit address
=x,y,z,w Poke memory. Replace the contents of the specified address with the specified data.
x - upper bits of a greater-than-16 bit address
y - lower 16 bits of a greater-than-16 bit address or the 16 bit address
z - byte data content to be written at the specified address.
OR
w - word data content
byte write: F>=27,ece2,00
word write: F>=27,ec5c,,0104
-x,y Peek Word. Display the word contents of the specified address.
x - upper bits of >16 bit address
y - lower 16 bits of >16 bit address or the 16 bit address
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 71 of 88
Level F (Continued)
Command Description
Ux Spin-Up
x - spin up options flag
- 5 hold in pre-lock state
Z Spin-Down.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 72 of 88
Level F (Continued)
Command Description
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 73 of 88
Appendix A: Error Codes
00h No error 5Eh Pad and fill defects
03h Calculated CRC doesn't match 5Fh Entire defect span was not found in User Defect List
11h Spin error 60h No spares available
12h Ramp load error 61h Write blocked w/o a reason
13h Offtrack 62h Write gate came on early
14h Write fault 63h Write gate went off late
15h Rd/wr seek timeout code 64h GC thermal sensor fault detected
16h Seek timeout 65h Shock sensor fault detected
17h 'False' AMDET (mis-timed) 66h Attempt made to write at the wrong target location.
18h Bad burst error code 68h FW initiated disc sequencer reset
19h Bad grey code 69h FW sequencer abort; split sector runaway RG
1Ah Early sync code 70h Bad disc resident cert/diag code
1Bh Missed am 71h Unable to read system sectors code
1Ch Failed the servo defect screen threshold 72h Unable to read packwriter auto-stamp
1Eh Target generator sector error 73h Invalid defect info loaded
1Fh Physical sector error 74h Invalid alt info table
20h Skip write detected using servo burst 88h Unable to learn good zap on track
22h NRZ freeze occurred (A=A')&(B=B')&(C=C')&(D=D') 89h Cylinder to be skipped out in loopback test
29h Thermal Asperity errors padded in test 36. 8Ah Wedge slipped
30h Data miscompares 8Bh Write ID failed
32h Slipped write error 8Ch Cylinder padded
33h Adaptives are not loaded 8Dh Cylinder filled in
34h Unexpected ECC verify read failure 8Eh Cylinder skipped out
35h Unexpected ECC verify read success 8Fh Max cylinder skips has been reached
36h Pending block encountered during a write 90h Zapped burst
37h Pending block encountered and read successfully 91h 2 consecutive zapped bursts
41h Long ECC error correction code 92h Too many zapped bursts on a track
42h Non zero byte detected 93h Unable to zap - 2 consecutive bad bursts
43h Data ECC error 94h Sumsquare of PES on this track exceeds limit
44h FIFO over/underrun 95h Unable to zap bad burst
45h Track ID miscompare error 96h Too many position plus velocity threshold breaks
46h Track ID read TO code 97h Zapped splice code
47h Missed data sync byte 98h Encroachment code
48h Missed data sync after a split 99h Max number of slipped tracks have been reached
49h Thermal asperity code 9Ah The slipped cyl requested does not exist.
4Ah Error didn't repeat during dynamic sparing mini cert 9Bh Head switch timeout error code
4Bh Error log full A0h Preamp miscommunication
4Ch Controller stopped without a reason A1h Reserve track defect list bad
4Dh Error reassigned during dynamic sparing A2h Boot adaptives bad
4Eh Block release timeout error A3h Bad application code
4Fh Buffer ready error A4h Not enough sectors saved to the disc for adaptives
50h Slipped sector A5h Application code check sum error
51h Alternated sector A6h Application code not compatible
52h Pad and fill defects CEh Cert test passed
53h Hard error w/AT retries no error with full retries CFh Cert test failed
54h Error during scratchfill EDh Attempt to write the user slip list but no valid list
55h Bad alt dest ID info FBh Missing critical parameter
56h Unable to find valid alt dest FCh Command aborted (internal only)
57h Unable to delete alt dest FDh R/w command rejected
58h Too many defects per head FEh Invalid address passed to Niwot
59h Too many defects per track FAh Un-initialized preamp code for new preamp interface
5Ah Too many dynamic slips FFh Unsupported code in the new preamp interface
5Ch Unknown full slip failure
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 74 of 88
Appendix B: Special and Retry Display Characters
A spin up AMDET time out g write gate block detected
B boost char h AGC retry
C EP ECC retry char i track ID miscompare code
C coarse offset (servo) k AGC Level tweaked retry character
D detector threshold n MR Reset "pulse" applied
E partial erasure factor o fine offset character
F data filter p write delay/plo phase char
G coarse gain p power chop retry character
H if preamp not identified q chip unsafe error detected
I ID offset (servo) r alt relocatable block found
I track ID timeout error s seek retry performed
L long correction retry char t write gate early error detected
M MR bias tweak retry char u write gate late error detected
O fine offset (servo) v Timeout recovery
O OD offset (servo) w block release timeout recovery performed
P precomp w write retry performed
R bias current x PLL shift retry
R fast learn runout retry char y sync retry performed
S MR asymetry character ! verify block failed
S Splash retry " group delay retry wp5
T TA retry char $ missed AM while locked to burst
W write current % read verify block
W write buffer retry char & ID splash retry char
X Read sequence detector retry & preamp gain
Z spin up zero crossing time out * commutation advance during spin up
Z zero phase restart * bad AMs during normal operation
a data correction . data retry performed
b bad block mark encountered ? slipped write retry char
b boost retry _ no commutation advance during spin up
c on the fly correction performed | Turn off AFC1/2X comp.
c coarse offset ~ Sync byte tolerance retry
d physical sector miscompare code + boost offset
e physical sector miscompare code + boost offset
f filter retry < display MR bias retry char
f FIFO error retry performed > Wrong head retry char
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 75 of 88
Appendix C: Online Command Display Descriptions
RBIT and WBIT are the common logarithm of the total number of bits transferred during reads and writes.
For example, if Head 0 read 7.88*10^9 bytes, then RBIT for Head 0 is
The remaining numbers represent the negative of the common logarithm of the error recovery usage rate
on a sector-by-sector basis. This usage rate is scaled by the number of bits per sector to yield an approxi-
mate bit error rate that is relatively accurate at low error rates. Mathematically, "HARD," "FIRM," "SOFT,"
"OTF," "RAW" equal
"Error Recovery Usage Rate" means how often different error recovery schemes (e.g., HARD = multiple
retries invoked and failed, FIRM = multiple retries invoked, SOFT = five retries invoked, OTF = one retry
invoked, RAW = OTF ECC invoked) are utilized as reported by the controller. Because the controller can
only report *that* an error recovery scheme was used, and not the *number of bytes* causing the invoca-
tion of the scheme, a single RAW error could be created by 1 bit in error or 4096 bits in error.
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 76 of 88
RBIT = log10(16*10^6 sectors * 512 bytes/sector * 8 bytes/bit) = 10.8
During this test five sectors experienced 1 error, ten sectors experienced 9 errors, and three sectors ex-
perienced 20 errors. Assuming that the controller can correct 16 errors per sector, the three sectors with
20 errors required retries. In the experiment, one of the three was uncorrectable, two of the three required
six retries, and all three required a first retry. The results of this test are
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 77 of 88
Online Commands Displays (Continued)
aa Age
bb Program
cccc Accumulated health
dd Drive type
ee Error flag byte
B7 - B4 = for inter - proc communication - Not Used
B3 = spin error - set when drive not spinning - Not Used
B2 = seek mode - set when drive is seeking - Not Used
B1 = Initialization error - set when error - Not Used
B0 = Allow write gate - USED BY MUX - set when drive ready
ff Error code byte
gg Maximum number of heads for this type
hh Interface
SA = Asynchronous SCSI
SS = Synchronous SCSI
AT = AT Interface
AX = AT with auto translate
iiiiiiii Drive serial number
jjjjjjjjjjjj PCBA serial number
example:
:50500000E7000007 AX'GR00072 ' “123456789012”
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 78 of 88
Online Commands Displays (Continued)
example:
Cmd Cyl Hd Sct Cnt Stbuf Segl Csct Cbuf Actv Ercd Rtry Flags
5A 0828 00 0000 0001 0000 10 0120 0001 N 00 0000.01.10 00
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 79 of 88
Online Commands Displays (Continued)
example:
Cmd Cyl Hd Sct Cnt Stbuf Segl Csct Cbuf Actv Ercd Rtry Flags
5A 0828 00 0000 0001 0000 10 0120 0001 N 00 0000.01.10 00
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 80 of 88
Online Commands Displays (Continued)
Pgm=xx Active program 00 is diagnostic monitor. 50 is interface program All other numbers are
current test running.
Trk=xxxx(yyyy),a(b) Currently selected logical cylinder (physical cylinder), logical head (physical head), logi-
, zzz(www) cal sector (physical sector).
Trk will normally point to one sector past the last sector read or written.
Err=xx Error code from current operation
ErCt=xxxx Error count since last reset of drive or last reset error log command
Hlth=xxxx Accumulated health bits - four digits
CHlth=xxxx Current health bits - four digits
sssss Drive status. Can be Ready or Ntrdy
example:
Pgm=50 Trk=0300(0301).2(0).034(068) Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=00123492
Pgm=xx Active program 00 is diagnostic monitor. 50 is interface program All other numbers are
current test running.
Trk=xxxxx(yyyyy), Currently selected logical cylinder (physical cylinder), logical head (physical head), logi-
a(b) , zzz(www) cal sector (physical sector).
Trk will normally point to one sector past the last sector read or written.
Err=xx Error code from current operation
ErCt=xxxx Error count since last reset of drive or last reset error log command
Hlth=xxxx Accumulated health bits - four digits
CHlth=xxxx Current health bits - four digits
sssss Drive status. Can be Ready or Ntrdy
example:
Pgm=00 Trk=00040(00040).0(0).253(15E) Zn=0 Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ready LBA=00000000
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 81 of 88
Online Commands Displays (Continued)
example
Age=50 Type=A4 MxCyl=1387 MxHd=3 MxSct=10D Bsz=80 Tcode=0000
Example
Age=50 Type=40 MxCyl=13833 MxHd=0 MxSct=362 BSz=0800 TCode=0000
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 82 of 88
Online Commands Displays (Continued)
uP:xxxx:yy
FM:xxxx:yy
AD:xxxx:yy
RL
SC AL
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 83 of 88
Health Bits Definitions:
The health byte is in the following format: X X X X . X X X X
The first 4 nibbles are the Current Health Bit and the last 4 are the Accumulated Health Bits.
The bits in the health byte description follows:
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 84 of 88
Error Log Display
Header Format:
All Drives Prior To VAIL:
Log 3A - Health 0000 - Cert Rev = 0.01 - Rom Rev = 0.05 - Time = 00:00:15
0075 Entries:
_____Head___0_____ _____Head___1_____ _____Head___2_____ _____Head___3_____
43 007F.1EB 164 03 43 2238.18B 0A6 03 43 02B6.1FE 154 03 43 0261.249 145 03
All Drives After Durango:
Log 3A - Health 0000 - Cert Rev = 0.01 - Rom Rev = 0.05 - Time = 00:00:15 Log Type = 02
0075 Entries:
_____Head___0_____ _____Head___1_____ _____Head___2_____ _____Head___3_____
43 007F.1EB 164 03 43 2238.18B 0A6 03 43 02B6.1FE 154 03 43 0261.249 145 03
List Format:
When the log is displayed the output to the screen is formatted as shown below.
___Head ___x____
wwww.xxx.yyy.zz
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 85 of 88
yyy is sense byte/deskewed sector #
zz is count
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 86 of 88
All Drives After Durango:
After reading a cert log the defect information will be placed at the beginning of the display(active) buffer.
List Format:
Byte 0: Log number
Byte 1: Log Type
1 = ascii log
2 = active log
4 = byte offset format for active log
Byte 2-3: Major Health
Byte 4-5: Time of test in seconds
Byte 6-7: # of defects in log
Byte 8-11: Cert Revision
Byte 12-15: Rom Revision
Bytes 16-23: First entry as follows:
Byte 16: error code
Byte 17: physical cylinder low
Byte 18: physical cylinder high
Byte 19: physical head
(If log type 4)
Byte 20: servo sector # bits 7:0
Byte 21: byte offset from servo sector # bits 7:0
Byte 22: xy
x= bits 11:8 of servo sector #
y=bits11:8 of byte offset #
Byte 23: count
(If log type 2)
Byte 20: logical sector # bits 7:0
Byte 21: deskewed sector # bits 7:0
Byte 23: count
Bytes 24-31: Second Entry etc.
When the log is displayed the output to the screen is formatted as shown below.
(Log Type 2) (Log Type 4)
___Head ___x____ ___Head ___x____
vv wwww.xxx yyy zz vv wwww.xxx yyy zz
Log 3A - Health 0000 - Cert Rev = 0.01 - Rom Rev = 0.05 - Time = 00:00:15 Log Type = 02
0075 Entries:
_____Head___0_____ _____Head___1_____
43 007F.1EB 164 03 43 2238.18B 0A6 03
43 02B6.1FE 154 03 43 0261.249 145 03
Log 31 - Health 0000 - Cert Rev = 0.01 - Rom Rev = 0.05 - Time = 01:09:34 Log Type = 04
0D21 Entries:
_____Head___0_____ _____Head___1_____
43 0148.06A 14D 02 43 0024.017 669 0243 01D3.032 3CF 02 43 01DE.027 0C9 0143 020F.074 3A7 01 43
01FA.02C 21B 01
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 87 of 88
Output format for drives with >64k cylinders:
Log 31 - Health 0000 - Cert Rev = 002b - Rom Rev = 0.02b - Time = 01:57:22 Log Type = 04
0071 Entries:
_____Head___0______
43 002D0.02C 96D 01
43 004CD.0AC 651 02
43 004CE.0AC 651 02
Log 3A - Health 0000 - Cert Rev = 002b - Rom Rev = 0.02b - Time = 00:51:59 Log Type = 02
0040 Entries:
_____Head___0______
43 0002F.04D 22D 03
43 01187.2C1 111 03
C O MPAN Y C O N F I D EN T I AL
For Internal Use Only
Diagnostic Commands Page 88 of 88