home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 04 / 0012 / st225.doc < prev   
Encoding:
Text File  |  1991-12-02  |  19.2 KB  |  599 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                    HOW TO GET THE BEST PERFORMANCE FROM THE
  8.                              ST225/WD COMBINATION
  9.  
  10.  
  11.  
  12.           The information contained in the other two files (WD.DOC &
  13.           WDCONFIG.DOC) provides the technical information necessary
  14.           to get a hard disk up and running. I changed some of the
  15.           examples to be specific to the Seagate ST225 20 Meg hard
  16.           disk and the Western Digital Controller, WD1002S-WX2. When
  17.           performing the debug low level format this controller will
  18.           respond with "WX2 Format Revision T.8...", if you get "WX2
  19.           Format Revision 6..." you have an older version and will
  20.           need to get a new EPROM with the T.8 software to maximize
  21.           the performance of the ST225.
  22.  
  23.           My ST225 was slow, and relatively speaking, still is. I
  24.           had the older EEPROM so I could make no set up changes and
  25.           it had a CORE test(ver 2.7) performance index of .744.
  26.           Changing the EEPROM and using two values different from
  27.           the initial factory specs allowed me to get a performance
  28.           index of 1.377, an 89% improvement!! There was only a
  29.           relatively minor increase in seek time from 95.7 ms to
  30.           84.2 ms (the ST225 is rated at 65ms so mine is still a dog
  31.           in this area), but the data transfer rate improved from
  32.           28.4 KB/sec to 121.7 KB/sec!
  33.  
  34.           The two areas I modified where the interleave factor from
  35.           the recommended 3 to 4 and the CCB option byte (step rate)
  36.           from 05 to 07. This combination proved to provide the best
  37.           performance after many complete formats were tested. I
  38.           tried interleaves of 3,4 and 5 combined with CCB values of
  39.           00, 03, 05 and 07. 00 formatted ok but hung up during the
  40.           Core test and 03 and 07 provided the same results. I have
  41.           heard somewhere that Western Digital had recommended the
  42.           07 combination so it is the one I use.
  43.  
  44.           I normally run my XT Turbo clone at 8MHz and with a
  45.           "buffers=24" in my config.sys file as well as LIGHTNING
  46.           installed for the C drive with a cache size of 128K and it
  47.           is this setup that generated the following numbers from
  48.           the PC MAGAZINE benchmark test, version 4.
  49.  
  50.  
  51.            (512 bytes/512 records)          OLD               NEW
  52.           Sequential file creation:       11.10 sec        11.20 sec
  53.               "       "   writing:        14.34  "          9.12  "
  54.               "       "   reading:        12.25  "          6.92  "
  55.           Random      "   write:          14.01  "         10.21  "
  56.              "        "   read:            5.11  "          5.06  "
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.            (4K bytes/64 records)            OLD               NEW
  76.           Sequential file creation:       10.88 sec         5.05 sec
  77.               "       "   writing:         9.95  "          4.07  "
  78.               "       "   reading:        12.96  "          5.00  "
  79.           Random      "   write:           5.22  "          3.02  "
  80.             "         "   read:            6.87  "          3.35  "
  81.  
  82.  
  83.  
  84.           Reading 1000 random sectors:  167.14 msec      119.79 msec
  85.  
  86.  
  87.  
  88.           1000 seeks - sequential:       21.31 msec       21.25 msec
  89.            "     "   - random:           96.83  "         85.79  "
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.           I hope that this and the other two files are helpful and that
  98.           you are able to get the maximum performance from your system.
  99.  
  100.  
  101.                                   Neil Erbe
  102.                                   Tampa, Fl
  103.           
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.                      WD1002S-WX2 Hard Drive Controller
  134.  
  135.  
  136.  
  137.  
  138. The following information on the Western Digital Controller is for
  139. the WD1002S-WX2 taken from the Western Digital Installation Guide.
  140. If you need help doing a low-level format on the drive, please
  141. leave a message in the Hard Drive Conference, Sparta PCBoard
  142. (201) 729-7056.
  143.  
  144.  
  145. The BIOS ROM is used to define individual disk drive parameters.
  146. Currently there are two varieties of BIOS ROMs available. The
  147. standard BIOS ROM contains a selection of four sets of drive
  148. parameters that can be used with most existing disk drives.
  149.  
  150. In addition to this same selection of parameters, another BIOS
  151. ROM, called Auto Config BIOS ROM, allows manual assignment and
  152. modification of these drive parameters; has the ability to load
  153. a drive defect list; and lets the user logically format one disk
  154. drive as two virtual drives.
  155.  
  156. Both versions of the BIOS ROM contain four drive configuration
  157. tables or BIOS tables as listed below:
  158.  
  159. BIOS Drive Tables contained within the following BIOS ROMS
  160. Standard - WD62-000042-013
  161. Auto Config - WD62-000043-010
  162.  
  163.                             Table 0
  164. Specifications                          Drive Types
  165. Drive Capacity  20MB                    Microscience HH725/HH325
  166. Cylinders       612                     Tandon TM262/362
  167. Heads           4
  168. RWC             613(none)
  169. WPC             613(none)
  170. Step Rate       Option 5
  171.  
  172.                             Table 1
  173.  
  174. Drive Capacity  10MB                    Miniscribe 3012/3212
  175. Cylinders       612             
  176. Heads           4
  177. RWC             128
  178. WPC             128
  179. Step Rate       Option 5
  180.  
  181.                             Table 2
  182.  
  183. Drive Capacity  20MB                    CDC 9415-525AT/9415-528
  184. Cylinders       612                     Miniscribe 3425
  185. Heads           4                       Mivil M125/M225/M325
  186. RWC             613(none)               Seagate ST225
  187. WPC             128
  188. Step Rate       Option 5
  189.  
  190.                             Table 3
  191.  
  192. Drive Capacity  10MB                    Fujitsu m2233
  193. Cylinders       306                     LaPine 3065/3512/3522
  194. Heads           4                       Microscience HH612/HH312
  195. RWC             306(none)               Miniscribe 2012
  196. WPC             0 (all)                 Rodime 252/352
  197. Step Rate       Option 5                Seagate ST412
  198.  
  199.  
  200.  
  201.                         SW1 Jumper Positions 1 - 4
  202.  
  203. BIOS Table      Drive 1                 Drive 0
  204.                 SW 1-1  SW 1-2          SW 1-3  SW 1-4
  205. 0               Close   Close           Close   Close
  206. 1               Open    Close           Open    Close
  207. 2               Close   Open            Close   Open
  208. 3*              Open    Open            Open    Open
  209.  
  210. *Shipping Configuration
  211.  
  212.                         SW1 Jumper Positions 5 - 8
  213.  
  214. SW 1-8  Open    Reserved for BIOS ROM
  215. SW 1-7  Open    Reserved for BIOS ROM
  216. SW 1-6  Open    Reserved for BIOS ROM
  217. SW 1-5  Open    Reserved for BIOS ROM
  218.  
  219.  
  220. The following jumpers cover the W1 - W7 jumper positions 
  221.  
  222. Jumper  Pin Connects    Status
  223. W1      2-1             Normal*
  224.         2-3             Factory Test Only
  225.  
  226. W2      2-1             Normal*
  227.         2-3             Factory Test Only
  228.  
  229. W3      Closed          BIOS ROM Enabled*
  230.         Open            BIOS ROM Disabled
  231.  
  232. W4      2-3             Device Address 320H*
  233.         2-1             Device Address 324H
  234.  
  235. W5      2-1             BIOS ROM Size 32K or 64K**
  236.         2-3             BIOS ROM Size 16K
  237.  
  238. W6      2-3             Reduced Write Current (8 heads)*
  239.         2-1             Head Select 3 (16 heads)
  240.  
  241. W7      2-1             INTRQ to INTRQ 5 on host connector** 
  242.         2-3             INTRQ to INTRQ 2 on host connector
  243.  
  244. * - As Shipped - Jumper is installed
  245. ** - As Shipped - Jumper is installed, Pins 1 and 2 are joined via an
  246.                   etch on the PCB. To change, the etch must be carefully
  247.                   cut and a jumper installed.
  248.  
  249.  
  250. Step Rates 
  251. The WD1015 Control Processor uses the CCB Option Byte to establish
  252. the actuator step rate.  This step rate is defaulted to either 70 or
  253. 75 microseconds on the installed version of the Control Processor. It
  254. can be modified by the Auto-Config BIOS ROM.  The control processor
  255. is the chip located at U11 on the circuit board.
  256.  
  257. An older version of the control processor, P/N WD1015-14, supports a
  258. maximum of 8 heads and is completely suitable for the lower capacity
  259. ST506 type disk drives.  The default step rate is 70 microseconds.
  260.  
  261. Today's control processor, the WD1015-24, supports up to 16 heads. It
  262. includes controller support to the DMA and Syquest removable drives.
  263. Other differences include: it no longer performs the unnecessary
  264. controller self-test after power-on or soft resets; the processor allows
  265. faster step rates; and the default step rate is 75 microseconds.
  266.  
  267. The Auto-Config BIOS ROM can be used to change the step rate of either
  268. the WD1015-14 or -24 control processors.  Table 5 lists the available
  269. step rates for both the WD1015-14 and the WD1015-24.  Overall system
  270. performance will be enhanced by selecting the fastest possible step rate
  271. supported by the attached drive.
  272.  
  273.                             Table 5
  274.  
  275. WD1015-14 Step Rates
  276. DEC     BIN     Step Rate       Comments
  277. 0       000     3 ms
  278. 1       001     3 ms
  279. 2       010     3 ms
  280. 3       011     3 ms
  281. 4       100     200 us
  282. 5*      101     70 us           Standard Buffered Seek Rate
  283. 6       110     3 ms
  284. 7       111     3 ms
  285.  
  286. WD1015-24 Step Rates
  287. 0       000     3 ms
  288. 1       001     45 us
  289. 2       010     60 us
  290. 3       011     18 us
  291. 4       100     210 us
  292. 5*      101     75 us           Standard Buffered Seek Rate
  293. 6       110     30 us
  294. 7       111     18 us
  295.  
  296. * Default value in WD BIOS ROMS
  297.  
  298.                    Sparta PCBoard Hard Drive Conference
  299.                      (201) 729-5377 or (201) 729-7056
  300.  
  301.  
  302.                      Auto-config Formatting Procedures
  303.                        Western Digital WD 1002S-WX2
  304.  
  305. The following information is taken directly from the Western Digital 
  306. Installation Guide for the WD 1002S-WX2 HD controller. For clarity
  307. I have inserted my own notes on some portions of the procedures that
  308. WD has lightly touched.
  309.  
  310. Step      Instructions
  311.  
  312. 1.    Correctly install or remove jumper on SW1-5. This is the
  313.     uppermost jumper on SW1.
  314.  
  315.         Note: This jumper tells the BIOS to read the jumpers 1-4
  316.               on SW1 for the corresponding table to use or to
  317.               accept keyboard input for the various parameters.
  318.  
  319.  
  320. 2.      At the A Prompt, insert the PC-DOS Supplemental Diskette;
  321.         load and run the PC-DOS debug utility by typing DEBUG.
  322.  
  323.             A>DEBUG c/r
  324.  
  325. 3.      At the debug prompt, initiate the WD format program by
  326.       typing the following command line. The debug prompt is the
  327.     hyphen "-".
  328.  
  329.             -g=c800:5 c/r
  330.  
  331. 4.      The WD format program will display the following message:
  332.  
  333.     WX2 Format Revision T.8 (c) Copyright Western digital Corp. 1985
  334.     Key in drive no and interleave as follows: d ii where
  335.                 d = relative no (0-1)
  336.             ii = interleave factor (1-16)
  337.  
  338.     Enter d and ii separated by a space and followed with a Return
  339.  
  340.     Example:
  341.             0 03 c/r
  342.  
  343.     NOTE: Drive C: = 0, Drive D: = 1. An interleave factor of 3 is
  344.     standard. If formatting two drives, this option must be run 
  345.     twice; once with d=0 and again with d=1.
  346.  
  347. 5.    The following message will be displayed:
  348.  
  349.     Key in disk characteristics as follows: ccc h rrr ppp ee oo
  350.     where
  351.     ccc = total number of cylinders (1-4 digits)
  352.     h   = number of heads (1-2 digits)
  353.        rrr = starting reduced write cylinder (1-4 digits)
  354.     ppp = write precomp cylinder (1-4 digits)
  355.     ee  = max correctable error burst (1-2 digits)
  356.     oo  = CCB option byte (1 hex digit)
  357.  
  358.     Enter each value separated by a space and follow entry with
  359.         a return
  360.  
  361.     Example:
  362.             306 4 128 128 11 05 c/r
  363.  
  364. 6.    CPU Response (did you know cpu's respond?)
  365.  
  366.     Are you virtually configuring the drive - Answer Y/N
  367.  
  368.     Enter a "Y" and c/r for yes or "N" and c/r for no.
  369.  
  370.     Sysop note: All this is asking is "Do you want to split
  371.                     the drive into more than one volume"?
  372.  
  373. 7.     If Yes, the following message is displayed.
  374.  
  375.     Key in virtual drive size list as vvvv
  376.     where vvvv = virtual drive size (1-4 digits)
  377.     
  378.     Enter two cylinder numbers, followed by a space and
  379.         c/r
  380.  
  381.     Note: The sum of these two numbers cannot exceed the 
  382.         maximum number of available cylinders on your hard disk.
  383.  
  384.     Example:
  385.             153 153 c/r
  386.  
  387.     If No, continue to next step
  388.  
  389. 8.    The following message will be displayed.
  390.  
  391.     Press "y" to begin formatting drive d with interleave ii.
  392.  
  393.     Note: d = drive number and ii = interleave factor.
  394.  
  395.     Type "Y" followed by a c/r
  396.  
  397. 9.    System Responses:
  398.  
  399.     If any key other than "Y" is typed, the program displays
  400.     the following message and returns to DOS.
  401.  
  402.     CPU response:
  403.     Nothing done exit
  404.     A>
  405.  
  406.     If an error occurs while formatting, the program will immediately
  407.     terminate, display the following error message, and return to DOS.
  408.     XX is the hexidecimal S-WX2 BIOS completion code.
  409.  
  410.     CPU response:
  411.     Error----completion code XX
  412.     A>
  413.  
  414.     If "Y" is typed, formatting is initiated. If there are no 
  415.     resulting errors, the program displays the following message.
  416.  
  417.     CPU response:
  418.     Do you want to format bad tracks - answer Y/N
  419.  
  420.     Respond with appropriate Y or N followed by a c/r
  421.  
  422. The user is prompted to enter, via the keyboard, a bad track list.
  423. This list should be provided by the drive manufacturer. However, due
  424. to DOS limitations, this procedure is not remommended.
  425.  
  426. Sysop note: Let the sucker format the bad tracks and then use Norton's
  427.             DT immediately after partitioning and high level format
  428.            is performed to pick up any bad track information and mark
  429.             them appropriately in the FAT.
  430.  
  431. Because of the logical addressing used by DOS, marking an entire track
  432. bad will result in more than one logical address being marked bad. As
  433. DOS can only accept a limited number of defects, a drive with excessive
  434. defects may cause the format program to termnate with an error. The
  435. displayed error is typically "TRACK 00 BAD - DRIVE UNUSABLE".
  436.  
  437. As a recommended alternative, execution of the DOS utility program
  438. FORMAT should correctly locate and deallocate all media defects.
  439.  
  440. 10.    If Yes, the following message is displayed.
  441.  
  442.     Key in bad track list as follows: ccc h ...(repeat)
  443.     where
  444.     ccc = bad track cylinder number (1-4 digits)
  445.     h   = bad track head number (1-2 digits)
  446.  
  447.     Type in the cylinder and head numbers for the bad tracks,
  448.     separate them with spaces, and follow with a c/r
  449.  
  450.     Example:
  451.             160 1 161 1 304 3 223 4 223 2 c/r
  452.  
  453.     The bad track message will be displayed again. To
  454.     terminate bad gtrack entry, type "N" followed by a c/r
  455.  
  456. 11.    The following message is displayed.
  457.     Format successful - Returning to system
  458.  
  459. If a second drive is to be formatted, repeat steps 4 through 13 with
  460. d = 1, otherwise continue.
  461.  
  462.  
  463. RUNNING THE FDISK UTILITY
  464.  
  465. The FDISK utility partitions the drive for DOS. Please refer to the
  466. PC-DOS operating manual for detailed instructions regarding this utility.
  467.  
  468. 12.    Load and run the FDISK utility to set up the disk partitions.
  469.  
  470. 13.       CPU Response:
  471.  
  472.     IBM Personal Computer
  473.     Fixed disk Setup Program Version 2.00
  474.     Copyright IBM Corp. 1983
  475.  
  476.     FDISK Options
  477.  
  478.     Choose one of the following:
  479.  
  480.     1. Create DOS Partition
  481.     2. Change Active Partition
  482.     3. Delete DOS Partition
  483.     4. Display Partition Data
  484.        [5. Select Next Fixed Disk Drive]
  485.  
  486.     Enter Choice:
  487.  
  488.     Note: When two disk drives are installed, the system will
  489.     automatically add a fifth choice on the menu:
  490.     "5. Select Next Fixed Disk Drive". The first drive is 
  491.     partitioned using choice number 1. Then, the second drive
  492.     is partitioned starting with choice number 5. All subsequent
  493.     steps are the same for both drives.
  494.  
  495.     Select "Create DOS Partition" and enter a 1 followed by a c/r.
  496.  
  497. 14.    The following message will be displayed:
  498.  
  499.     Create Dos Partition
  500.  
  501.     Do you wish to use the entire fixed
  502.     disk for DOS (Y/N)...........?
  503.  
  504.     Type a Y followed by a c/r
  505.  
  506. 15.     CPU response:
  507.  
  508.     System will now reboot
  509.  
  510.     Insert DOS diskette in Drive A:
  511.     Press any key when ready..
  512.  
  513. RUNNING THE FORMAT UTILITY
  514.  
  515. 16.    Load and run the PC-DOS utility program FORMAT to write the
  516.     DOS structure and syustem files to the disk. At the A prompt,
  517.     type FORMAT C: /S/V followed by a c/r
  518.  
  519. 17.     The CPU will respond with:
  520.     Press any key to begin formatting C:
  521.  
  522. 18.     The System will respond with:
  523.  
  524.     Formatting....Format Complete
  525.     system transferred
  526.  
  527.     Volume Label(11 Characters, ENTER for none)?
  528.  
  529. 19.    Either enter the optional volume name and press c/r or just
  530.     press c/r
  531.  
  532. 20.    When the FORMAT program is finished, the hard disk is ready to be
  533.     booted from. It will contain the file COMMAND.COM and the two
  534.     system files which are hidden.
  535.  
  536.     Note: This is known as the "high level" format process. If a
  537.     second drive, or Drive D:, is to be formatted, repeat steps
  538.     12 through 19. When running FDISK on the second drive, enter 
  539.     choice [5] first, then continue as before.
  540.  
  541. 21,      To verify that the hard disk will now boot, open the door of the
  542.     floppy drive and do a warm boot by simultaneously pressing CTRL,
  543.     ALT, and DEL (We call this the three finger salute). The system
  544.     BIOS first examines Drive A for a system diskette. If it doesn't
  545.     find one, then it will try to boot from the C drive, the hard
  546.     disk. If the hard disk boot is successful, the system will assert
  547.     the date, time, and C> prompts in order. Other files may now be
  548.     copied to the hard disk.
  549.  
  550.  
  551. Sysop Note: I am going to throw some technical mumbo jumbo in here just
  552. to make you feel comfortable with the info you are typing into the
  553. questions asked by WD's program.
  554.  
  555. The HD controller provides a system interface to the hardware and onboard
  556. BIOS through direct and indirect i/o. Direct access is accomplished
  557. by reading and writing to four I/O ports. Indirect access is achieved
  558. by executing pre-written I/O subroutines contained in the BIOS on the
  559. controller.
  560.  
  561. Commands are issued by the CPU to the controller over the host buss 
  562. using a pre-defined protocol (known as ST506/412). The CPU issues
  563. a command sequence by selecting the controller. The controller accepts
  564. the selection, and requests the appropriate command bytes. Upon command
  565. completion, the controller issues completion status to indicate whether
  566. the command was successfully completed or terminated because of an error.
  567.  
  568. Direct access operations are controlled through four I/O ports (assigned
  569. default addresses 320H, 321H, 322H, and 323H). Each port is assigned one
  570. Read register and one Write register as follows:
  571.                         Registers
  572. Port        Read                 Write
  573. 320H        Data IN            Data OUT
  574. 321H        Status            Reset (function)
  575. 322H        Configuration        Select (function)
  576. 323H        N/A            Mask
  577.  
  578.  
  579. The CPU specified the operation or command to be executed by the controller
  580. by sending a 6 or 10 byte Command Descriptor Block (CDB). The CCB we
  581. were asked for earlier in the WD formatter routine is called the Command
  582. Control Byte and is the last byte in the CDB. It specifies the error
  583. recovery procedure during the command execution. 
  584.  
  585. The ECC is comparable to CRC on a floppy drive. It is known as Error
  586. Correction Code and is set on or off by one of the bits in Byte 5 of
  587. the CDB. 
  588.  
  589. My fingers are tired at this point and I am not going to get into
  590. a further detailed discussion of each bit and its values in the
  591. CDB. If you wish to obtain further information, give us a call at
  592. Sparta PCBoard, join the HD conference, and fire away at us. We
  593. may not have the answer, but we can usually get it. 
  594.  
  595. Richard Driggers
  596. SysOp - Sparta PCBoard
  597.  
  598. -eof-
  599.