Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. -------------------------------------------------------------------------------- Format Partition (Level T 'm')--------------------------------------------------------------------------------
  2.  
  3. Description:
  4. This command formats the specified partition.
  5.  
  6. Quick Help:
  7.  
  8. "FormatPartition, m[Partition],[FormatOpts],[DefectListOpts],[MaxWrRetryCnt],[MaxRdRetryCnt],\n\r"
  9. "[MaxEccTLevel],[MaxCertifyTrkRewrites],[ValidKey],[DataPattern]";
  10.  
  11. Input Parameters:
  12.  
  13. 0 - Partition Number.
  14.  
  15. This parameter specifies the media partition to be formatted.
  16.  
  17. 0 = User Partition
  18. 1 = System Partition
  19.  
  20. Type: Unsigned 8-bit value
  21.  
  22. Range: 0 or 1
  23.  
  24. Default: 0
  25.  
  26. 1 - Format Options.
  27.  
  28. This parameter is a bit significant value that selects the following options:
  29.  
  30. Bits 31-6: not used
  31.  
  32. Bit 5: Enable SeaCOS XF Space Format.
  33.  
  34. This bit is only valid when the User Partition is selected. If this
  35. bit is equal to 1, the the Format Partition command will only format
  36. SeaCOS Extended File (XF) space.
  37. NOTE: This feature can be enabled or disabled at compile-time. Use
  38. the quick help to determine whether your code supports this feature.
  39.  
  40. Bit 4: Enable Zone Re-format Skipping.
  41.  
  42. If this bit is equal to 1, then the Format Partition command will
  43. enable the zone re-format skipping mode during the format operation.
  44. With this mode enabled, the format operation will not re-format
  45. a zone if grown defects were found in the zone.
  46. NOTE: This feature can be enabled or disabled at compile-time. Use
  47. the quick help to determine whether your code supports this feature.
  48.  
  49. Bit 3: Enable Event-based Format Logging.
  50.  
  51. If this bit is equal to 1, then the Format Partition command will
  52. display information about error events that occur during the format
  53. operation. This information will be displayed as interim status as
  54. these events occur.
  55. NOTE: This feature can be enabled or disabled at compile-time. Use
  56. the quick help to determine whether your code supports this feature.
  57.  
  58. Bit 2: Disable User Partition Certify.
  59.  
  60. This bit is only valid when the User Partition is selected. If this
  61. bit is equal to 1, media certification and defect deallocation will
  62. be disabled.
  63.  
  64. Bit 1: Disable User Partition Format.
  65.  
  66. This bit is only valid when the User Partition is selected. If this
  67. bit is equal to 1, the User Partition sectors will not be written
  68. with a constant data pattern.
  69.  
  70. Bit 0: Corrupt User Partition Primary Defects.
  71.  
  72. This bit is only valid when the User Partition is selected. If this
  73. bit is equal to 1, the primary defective sectors will be corrupted.
  74.  
  75. Type: Unsigned 32-bit value
  76.  
  77. Range: 0 or 0xFFFFFFFF
  78.  
  79. Default: 0 (Enable User partition Certify,
  80. Enable User Partition Format,
  81. Don't Corrupt Primary Defects)
  82.  
  83. 2 - Defect List Options.
  84.  
  85. This parameter is a bit significant value that selects the following options:
  86.  
  87. Bits 31-3: not used
  88.  
  89. Bit 2: Process the Active Error Log.
  90.  
  91. This bit is only valid when the User Partition is selected. If this
  92. bit is equal to 1, the Format Client Defect List will be written with
  93. contents of the Active Error Log and the option to process the Client
  94. Defect List will be enabled. If there is no Active Error Log or there
  95. are no R/W-related entries in the Active Error Log, then this bit will
  96. be ignored.
  97.  
  98. Bit 1: Process Primary Defect Lists.
  99.  
  100. This bit is only valid when the User Partition is selected. If this
  101. bit is equal to 1, the the Primary Defect Lists will be used when
  102. creating the defect list to be used by the format operation.
  103.  
  104. Bit 0: Process Grown Defect Lists.
  105.  
  106. This bit is only valid when the User Partition is selected. If this
  107. bit is equal to 1, the the Grown Defect Lists will be used when
  108. creating the defect list to be used by the format operation.
  109.  
  110. Type: Unsigned 32-bit value
  111.  
  112. Range: 0 or 0xFFFFFFFF
  113.  
  114. Default: 0x00000003 (Process Grown Defect Lists,
  115. Process Primary Defect Lists,
  116. Do not process the Active Error Log)
  117.  
  118. 3 - Maximum Write Retry Count.
  119.  
  120. If this parameter is entered, the maximum write retry count will be set to the
  121. specified value. This parameter is only valid when the User Partition is being
  122. formatted (Parameter 0 is equal to 0). If this parameter is not entered, the
  123. maximum write retry count will not be changed.
  124.  
  125. Type: Unsigned 16-bit value
  126.  
  127. Range: 0 or 0xFFFF
  128.  
  129. Default: None.
  130.  
  131. 4 - Maximum Read Retry Count.
  132.  
  133. If this paremeter is entered, the maximum read retry count will be set to the
  134. specified value. This parameter is only valid when the User Partition is being
  135. formatted (Parameter 0 is equal to 0). If this parameter is not entered, the
  136. maximum read retry count will not be changed.
  137.  
  138. Type: Unsigned 16-bit value
  139.  
  140. Range: 0 or 0xFFFF
  141.  
  142. Default: None.
  143.  
  144. 5 - Maximum ECC T-Level.
  145.  
  146. If this paremeter is entered, the maximum ECC T-Level will be set to the specified
  147. value. This parameter is only valid when the User Partition is being formatted
  148. (Parameter 0 is equal to 0). If this parameter is not entered, the ECC T-Level
  149. will not be changed.
  150.  
  151. Type: Unsigned 16-bit value
  152.  
  153. Range: 0 or 0xFFFF
  154.  
  155. Default: None.
  156.  
  157. 6 - Track Rewrite During Certify Retry Threshold.
  158.  
  159. If this parameter is entered, it specifies the maximum number of rewrite retries
  160. to be performed during the user partition certification pass.
  161.  
  162. Type: Unsigned 16-bit value
  163.  
  164. Range: 0 or 0xFFFF
  165.  
  166. Default: None. If this parameter is not entered, the default value recommended
  167. by the R/W Firmware will be used.
  168.  
  169. 7 - Valid Command Key.
  170.  
  171. For a User Partition format, this parameter must be equal to 22 Hex. If this
  172. parameter is not equal to 22 Hex, the command will not be executed.
  173.  
  174. For a System Partition format, this parameter must be equal to DD Hex. If this
  175. parameter is not equal to DD Hex, the command will not be executed.
  176.  
  177. Type: Unsigned 8-bit value
  178.  
  179. Range: 0x22 or 0xDD
  180.  
  181. Default: None
  182.  
  183. 8 - Data Pattern For Format.
  184.  
  185. This parameter specifies the data pattern to be used when formatting the specified
  186. partition. If this parameter is not entered, the specified partition will be
  187. formatted with a 0x00000000 data pattern.
  188.  
  189. Type: Unsigned 32-bit value
  190.  
  191. Range: 0 or 0xFFFFFFFF
  192.  
  193. Default: 0x00000000.
  194.  
  195.  
  196. Output Data:
  197.  
  198.  
  199.  
  200. If the error occurred while processing the defect lists, the following additional
  201. information will be displayed.
  202.  
  203. "Process Defect List Error"
  204. "R/W Sense cccccccc, R/W Error dddddddd, List Offset eeeeeeee, File Error ffffffff"
  205.  
  206. where
  207.  
  208. cccccccc is the sense status that was returned by the R/W subsystem
  209.  
  210. dddddddd is the error code that was returned by the R/W subsystem
  211.  
  212. eeeeeeee is the offset of the defect list entry at which the error occurred
  213.  
  214. ffffffff is the error code that was returned by the system information manager (SIM)
  215.  
  216. If the error occurred during the format operation, the following additional information
  217. will be displayed.
  218.  
  219. "User Partition Format Failed - Elapsed Time c"
  220. "R/W Sense dddddddd, R/W Error eeeeeeee, File Error ffffffff"
  221. "Blk Addr gggggggg, Blk Addr Type hh, Cyl iiiiiiii, Hd jj";
  222.  
  223. where
  224.  
  225. c is the amount of time that has elapsed since the format operation was started
  226.  
  227. dddddddd is the sense status that was returned by the R/W subsystem
  228.  
  229. eeeeeeee is the error code that was returned by the R/W subsystem
  230.  
  231. ffffffff is the error code that was returned by the system information manager (SIM)
  232.  
  233. gggggggg is the R/W block address at which the error occurred
  234.  
  235. hh is the R/W block address type at which the error occurred
  236.  
  237. iiiiiiii is the R/W cylinder address at which the error occurred
  238.  
  239. jj is the R/W head address at which the error occurred
  240.  
  241. If no error occurred and the format operation is still in progress, the following
  242. information will be displayed.
  243.  
  244. "Max Wr Retries = cc, Max Rd Retries = dd, Max ECC T-Level = ee, Max Certify Rewrite Retries = ffff"
  245. "User Partition Format gg% complete, Zone hh, Pass ii, LBA jjjjjjjj, ErrCode kkkkkkkk, Elapsed Time l"
  246.  
  247. where
  248.  
  249. cc is the maximum write retry count to be used
  250.  
  251. dd is the maximum read retry count to be used
  252.  
  253. ee is the maximum ECC T-Level to be used
  254.  
  255. ffff is the certify rewrite rety threshold
  256.  
  257. gg is the percent of the format operation that has been completed
  258.  
  259. hh is the data zone that is currently being formatted
  260.  
  261. ii is the number of the current pass through the data zone
  262.  
  263. jjjjjjjj is the last LBA that was formatted
  264.  
  265. kkkkkkkk is the error code that was reported by the R/W subsystem
  266.  
  267. l is the amount of time that has elapsed since the format operation was started
  268.  
  269. If no error occurred, the format operation is still in progress, a format event occurs,
  270. and format event reporting is enabled, the following information will be displayed.
  271.  
  272. "Event: Media Write Start, aaa Format, Zone bb, Start Blk cccccccc, Num Sectors dddddddd"
  273.  
  274. or
  275.  
  276. "Event: Write Xfer, Start Blk cccccccc, Len eeeeeeee, Next Blk ffffffff, Erc gggggggg, Stat hh"
  277.  
  278. or
  279.  
  280. "Event: Media Certify Start, New Format, Zone bb, Start Blk cccccccc, Num Sectors dddddddd"
  281.  
  282. or
  283.  
  284. "Event: Certify Xfer, Start Blk cccccccc, Len eeeeeeee, Next Blk ffffffff, Erc gggggggg, Stat hh"
  285.  
  286. or
  287.  
  288. "Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr nn, Wdg oo, ZnGrp pp, Zn qq, DOS: rr/ss/tt"
  289. "Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr nn, Wdg oo, Zn qq, DOS: rr/ss/tt"
  290. "Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr nn, Wdg oo, ZnGrp pp, Zn qq"
  291. "Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr nn, Wdg oo, Zn qq"
  292.  
  293. NOTES: ZnGrp information is only available on drives supporting VBAR
  294. DOS information is only available on drives supporting Directed Offline Scan
  295.  
  296. or
  297.  
  298. "Event: Cert Trk Rewrite, Retry Blk kkkkkkkk, Len eeeeeeee, Next Blk ffffffff, Erc gggggggg, Stat hh"
  299.  
  300. or
  301.  
  302. "Event: Cert Trk Rewrite Cntr Update, Cnt 0001"
  303.  
  304. where
  305.  
  306. aaa indicates whether this is a "New Format" or a "Reformat"
  307.  
  308. bb is the zone
  309.  
  310. cccccccc is the starting block
  311.  
  312. dddddddd is the number of blocks to be formatted
  313.  
  314. eeeeeeee is the length of the transfer
  315.  
  316. ffffffff is the next starting block
  317.  
  318. gggggggg is the error code that was reported by the R/W subsystem
  319.  
  320. hh is the read/write status
  321.  
  322. iiiiiiii is the logical block address (LBA)
  323.  
  324. jjjjjjjj is the physical block address (PBA)
  325.  
  326. kkkkkkkk is the block which causes the rewrite retry
  327.  
  328. llll is the track on which the error occurred
  329.  
  330. mm is the head on which the error occurred
  331.  
  332. nn is the sector on which the error occurred
  333.  
  334. oo is the wedge on which the error occurred
  335.  
  336. pp is the zone group in which the error occurred
  337.  
  338. qq is the zone in which the error occurred
  339.  
  340. rr is the DOS scan unit associated with the error
  341.  
  342. ss is the DOS relative cylinder in scan unit associated with the error
  343.  
  344. tt is the DOS surface cylinder unit associated with the error
  345.  
  346. If no error occurred and the format operation has successfully completed, the following
  347. information will be displayed.
  348.  
  349. " User Partition Format Successful - Elapsed Time m"
  350.  
  351. where
  352.  
  353. m is the amount of time that has elapsed since the format operation was started
  354.  
  355. If at least one zone re-format was skipped then the following will also be
  356. displayed upon successful completion of the format:
  357.  
  358. "Zone re-format was skipped."
  359.  
  360.  
  361. Examples:
  362.  
  363. Example #1:
  364. Perform a "quick format" (process defect lists, clear format corrupt, do not write
  365. or certify the drive)
  366.  
  367. F3 T>m0,6,,,,,,22
  368.  
  369. Example #2:
  370. Perform a "quick format" (don't process defect lists i.e. unslip and unalt, do not
  371. write or certify the drive)
  372.  
  373. F3 T>m0,6,0,,,,,22
  374.  
  375. Example #3:
  376. Perform a format with the default data pattern 0x00000000 and certify with event
  377. reporting enabled:
  378.  
  379. F3 T>m0,8,,,,,,22
  380.  
  381. Example #4:
  382. Perform a format and certify with event reporting enabled, set max write retries
  383. to 16, set max read retry count to 8, max ECC T-Level to 0, and track rewrite
  384. during certify retry threshold to 20:
  385.  
  386. F3 T>m0,8,,10,8,0,14,22
  387.  
  388. Example #5:
  389. Perform a format with user input data pattern 0xFFFFFFFF and certify with event
  390. reporting enabled:
  391.  
  392. F3 T>m0,8,,,,,,22,ffffffff
  393.  
  394. Revision History:
  395.  
  396. 0001.0000 Initial revision.
  397. 0001.000X Added ability to enable and display event-based output.
  398. 0011.000X Combined the PSG Diagnostic Error Codes (PSGDEC) and the Diagnostic External
  399. Test Service Error Codes (DETSEC) into a single set of Diagnostic Error Codes
  400. (DiagError).
  401. 0012.000X Added additional parameter 8 for users to input data pattern for format. The
  402. default data pattern is 0x00000000 instead of the 0x77777777 for the User
  403. Partition and 0xFFFFFFFF for the System Partition.
  404. 0012.001X Added option to process the Active Error Log.
  405.  
  406. Note on Minor Rev:
  407. ----.ZZZX ZZZ represents the minor rev base value.
  408. X represents set of conditional feature flags.
  409. - If bit 0 of X is set, then the ability to enable and display
  410. event-based output is supported.
  411. - If bit 1 of X is set, then the ability to enable zone re-format
  412. skipping and output command result information if at least one
  413. zone re-format was skipped is supported.
  414. - If bit 2 of X is set, then the ability to format only SeaCOS
  415. Extended File (XF) space is supported.
  416. - (Bit 3 of X is reserved for future conditional features.)