Hitachi Global Storage Technologies Hard Disk Drive Specification Hitachi Deskstar 7K1000.C Hitachi Ultrastar A7K2000 Hitachi CinemaStar 7K1000.C 3.
Revision 2.6 (30 June 2011) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: HITACHI GLOBAL STORAGE TECHNOLOGIES PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Table of contents 1 General................................................................................................................................................................10 1.1 1.2 1.3 1.4 2 Introduction .................................................................................................................................... 10 Glossary ...........................................................................................................................................
9.4 9.5 9.6 9.7 9.8 9.9 9.10 9.11 9.12 9.13 9.14 9.15 9.16 9.17 9.18 10 Command Protocol ........................................................................................................................................100 10.1 10.2 10.3 10.4 10.5 11 Power Management Feature ......................................................................................................... 57 SMART Function .......................................................................................................
11.33 11.34 11.35 11.36 11.37 11.38 11.39 11.40 11.41 11.42 11.43 11.44 11.45 11.46 11.47 11.48 11.49 11.50 11.51 11.52 11.53 11.54 11.55 11.56 11.57 11.58 12 Security Freeze Lock (F5h) ...................................................................................................... 183 Security Set Password (F1h) .................................................................................................... 184 Security Unlock (F2h) ...............................................................
List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 17 Table 18 Table 19 Table 20 Table 21 Table 22 Table 23 Table 24 Table 25 Table 26 Table 27 Table 28 Table 29 Table 30 Table 31 Table 32 Table 33 Table 34 Table 35 Table 36 Table 37 Table 38 Table 39 Table 40 Table 41 Table 42 Table 43 Table 44 Table 45 Table 46 Table 47 Table 48 Table 49 Table 50 Type and Model# .......................................
Table 51 Table 52 Table 53 Table 54 Table 55 Table 56 Table 57 Table 58 Table 59 Table 60 Table 61 Table 62 Table 63 Table 64 Table 65 Table 66 Table 67 Table 68 Table 69 Table 70 Table 71 Table 72 Table 73 Table 74 Table 75 Table 76 Table 77 Table 78 Table 79 Table 80 Table 81 Table 82 Table 83 Table 84 Table 85 Table 86 Table 87 Table 88 Table 89 Table 90 Table 91 Table 92 Table 93 Table 94 Table 95 Table 96 Table 97 Table 98 Table 99 Table 100 Table 101 Table 102 Table 103 Table 104 Input Registers of S
Table 105 Table 106 Table 107 Table 108 Table 109 Table 110 Table 111 Table 112 Table 113 Table 114 Table 115 Table 116 Table 117 Table 118 Table 119 Table 120 Table 121 Table 122 Table 123 Table 124 Table 125 Table 126 Table 127 Table 128 Table 129 Table 130 Table 131 Table 132 Table 133 Table 134 Table 135 Table 136 Table 137 Table 138 Table 139 Table 140 Table 141 Table 142 Table 143 Table 144 Table 145 Table 146 Table 147 Table 148 Table 149 Table 150 Table 151 Table 152 Table 153 Table 154 Table 155 Ta
Table 159 Table 160 Table 161 Table 162 Table 163 Table 164 Table 165 Table 166 Table 167 Table 168 Table 169 Table 170 Table 171 Table 172 Table 173 Table 174 Table 175 Table 176 Table 177 Table 178 Table 179 Table 180 Table 181 Error data structure ............................................................................................................ 218 Self-test log data structure .................................................................................................
1 General 1.1 Introduction This document describes the specifications of the Deskstar 7K1000.C, CinemaStar 7K1000.C and Ultrastar A7K2000, an Hitachi Global Storage Technologies 3.
1.2 Glossary ESD Kbpi Ktpi Gbps Mbps MB/s TB GB MB KB S.M.A.R.T. DFT ADM 1.
2 General features Data capacities of 160 GB – 1 TB Spindle speeds of 7200 RPM Fluid Dynamic Bearing motor Serial ATA interface Sector format of 512 bytes/sector Closed-loop actuator servo Load/Unload mechanism, non head disk contact start/stop Automatic Actuator lock Interleave factor 1:1 Seek time of 14 ms(1Disk model) / 8.5 ms(2Disk model) typical without Command Overhead Sector Buffer size of 8, 16 or 32 MB (Upper 2024KB(8MB) / 2272.5KB(16MB)/ 2768.
Part 1.
3 Fixed disk subsystem description 3.1 Control Electronics The drive is electronically controlled by a microprocessor, several logic modules, digital/analog modules, and various drivers and receivers. The control electronics performs the following major functions: Controls and interprets all interface signals between the host controller and the drive. Controls read write accessing of the disk media, including defect management and error recovery.
4 Drive characteristics This section describes the characteristics of the drive. 4.1 Default logical drive parameters The default of the logical drive parameters in Identify Device data is as shown below.
Description Physical Layout Label capacity (GB) Bytes per Sector Number of Heads Number of Disks 2 Logical Layout Number of Heads Number of Sectors/ Track 1 Number of Cylinders Number of Sectors Total Logical Data Bytes 1TB model 1000 512 4 2 16 63 16,383 1,953,525,168 1,000,204,886,016 Table 5 Formatted capacity --Continued-Notes: 1 Number of cylinders: For drives with capacities greater an 8.45 GB the IDENTIFY DEVICE information word limits the number of cylinders to 16,383 per the ATA specification.
4.
4.4 Drive organization 4.4.1 Drive Format Upon shipment from Hitachi Global Storage Technologies manufacturing the drive satisfies the sector continuity in the physical format by means of the defect flagging strategy described in Section 5 on page 23 in order to provide the maximum performance to users. 4.4.2 Cylinder allocation Physical cylinder is calculated from the starting data track of 0. It is not relevant to logical CHS.
4.5 Performance characteristics Drive performance is characterized by the following parameters: Command overhead Mechanical positioning Seek time Latency Data transfer speed Buffering operation (Look ahead/Write cache) All the above parameters contribute to drive performance. There are other parameters that contribute to the performance of the actual system.
4.5.2 Mechanical positioning 4.5.2.1 Average seek time (without command overhead, including settling) Command Type 1 Disk model Typical (ms) Max (ms) 14.0 14.7 15.0 15.7 14.0 14.7 15.0 15.7 Read Write Read (Quiet Seek mode) Write (Quiet Seek mode) 2 Disk model Typical (ms) Max (ms) 8.5 9.2 9.5 10.2 14.0 14.7 15.0 15.7 Table 9 Mechanical positioning performance The terms “Typical” and “Max” are used throughout this specification with the following meanings: Typical.
4.5.2.2 Single track seek time (without command overhead, including settling) Common to all models and all seek modes Function Typical (ms) Read 0.8 Write 1.3 Max (ms) 1.5 2.0 Table 10 Single Track Seek Time Single track seek is measured as the average of one (1) single track seek from every track with a random head switch in both directions (inward and outward). 4.5.2.3 Average latency Rotational speed 7200 RPM Time for a revolution (ms) 8.3 Average latency (ms) 4.17 Table 11 Latency Time 4.5.
4.5.4 Operating modes 4.5.4.1 Operating mode descriptions Operating mode Spin-up Description Start up time period from spindle stop or power down Seek Seek operation mode Write Write operation mode Read Read operation mode Unload Idle Spindle rotation at 7200 RPM with heads unloaded Idle Spindle motor and servo system are working normally. and processed immediately Commands can be received Standby Actuator is unloaded and spindle motor is stopped.
5 Defect flagging strategy Media defects are remapped to the next available sector during the Format Process in manufacturing. The mapping from LBA to the physical locations is calculated by an internally maintained table. Shipped format Data areas are optimally used. No extra sector is wasted as a spare throughout user data areas. All pushes generated by defects are absorbed by the spare tracks of the inner zone.
6 Specification 6.1 Electrical interface 6.1.1 Connector location Refer to the following illustration to see the location of the connectors. SATA Figure 2 6.1.1.1 Connector location (2 disk model shown) signal connector The SATA signal connector is a 8-pin connector. Power connector is a 15-pin connector.
6.1.2 Signal definition SATA has receivers and drivers to be connected to Tx+/- and Rx +/- Serial data signal. Defines the signal names of I/O connector pin and signal name. Signal Power No.
6.1.2.3 5V PRECHARGE +5 Vdc power that is available on the extended pins. This is used for pre-charging the I/O module. The enclosure shall provide for a current limit of 4.5 A peak on each 5V pre-charge pin (R=1.1 Ohms).These signals are the inbound high-speed differential signals that are connected to the serial ATA cable. 6.1.2.4 12V PRECHARGE +12 Vdc power that is available on the extended pins. This is used for pre-charging the 12V circuitry in the I/O Option slot module.
6.1.3 Out of band signaling(SATA) t1 C O M R ESET/C O M IN IT t3 C O M W A KE Figure 3 t1 t2 t3 t4 t2 t4 the timing of COMRESET, COMINIT and COMWAKE PARAMETER DESCRIPTION ALINE primitives Spacing ALIGN primitives Psacing Table 15 Parameter descriptions Hitachi hard disk drive specifications 27 Nominal (ns) 106.7 320 106.7 106.
6.2 Environment 6.2.1 Temperature and humidity Operating conditions Temperature CinemaStar : 0 to 70°C (See notes) Deskstar/Ultrastar : 0 to 60°C (See notes) 8 to 90% non-condensing 29.
Figure 4 Limits of temperature and humidity Note: 6.2.2 Storage temperature range is 0 to 70°C Corrosion test The drive shows no sign of corrosion inside and outside of the hard disk assembly and is functional after being subjected to seven days at 50°C with 90% relative humidity. 6.2.3 Atmospheric condition Environments that contain elevated levels of corrosives (e.g. hydrogen sulfide, sulfur oxides, or hydrochloric acid) should be avoided.
6.3 DC power requirements Damage to the drive electronics may result if the power supply cable is connected or disconnected to the legacy Power connector while power is being applied to the drive (no hot plug/unplug is allowed). If SATA power supply cable is connected or disconnected to the SATA power connector, hot plug/unplug is allowed. 6.3.1 Input voltage Input voltage During run and spin up +5 Volts Supply +12 Volts Supply 5V ± 5% 12V ±10% Absolute max spike voltage –0.3 to 5.5V –0.3 to 15.
Power supply current of 1 Disk models (values in milliamps. RMS) Idle average Idle ripple (peak-to-peak) +5 Volts [mA] +12 Volts [mA] Pop Mean 220 200 Pop Mean 210 300 Low RPM Idle Low RPM Idle Ripple 160 100 90 250 Unload Idle average Unload Idle Ripple 1 Random R/W average (Quiet Seek) Random R/W peak(Quiet Seek) Start up (max) Standby average Sleep average 160 100 350 1100 1100 160 160 200 300 400 1200 1900 7 7 Total [W] 3.6 1.9 3.2 6.6 0.9 0.
6.4 Reliability 6.4.1 Data integrity No more than one sector is lost at Power loss condition during the write operation when the write cache option is disabled. If the write cache option is active, the data in write cache will be lost. To prevent the loss of customer data, it is recommended that the last write access before power off be issued after setting the write cache off. 6.4.
6.4.7 Required Power-Off Sequence The required BIOS sequence for removing power from the drive is as follows: Step 1: Issue one of the following commands. Standby Standby immediate Sleep Note: Do not use the Flush Cache command for the power off sequence because this command does not invoke Unload Step 2: Wait until the Command Complete status is returned.
6.5 Mechanical specifications 6.5.
Figure 6 1D model Top and side views with breather hole location and mechanical dimensions All dimensions are in millimeters.
Figure 7 Bottom and side views with mounting hole locations All dimensions in the above figure are in millimeters. The breather hole must be kept uncovered in order to keep the air pressure inside of the disk enclosure equal to external air pressure.
The following table shows the physical dimensions of the drive. Height (mm) Width (mm) Length (mm) 26.1 MAX 101.6 ± 0.25 147 MAX Weight (grams) 1 Disk model 400 MAX Weight (grams) 2 Disk model 680 MAX Table 21 Physical Dimensions 6.5.2 Hole locations The mounting hole location and size for the hard disk drive is shown below. (4) (6X) Max. penetration 4.5 mm Side View (6) (7) (5) I/F Connector (3) Bottom View (2) (4X) Max. penetration 4.
6.5.
6.5.4 Drive mounting The drive will operate in all axes (6 directions). Performance and error rate will stay within specification limits if the drive is operated in the other orientations from which it was formatted. For reliable operation, the drive must be mounted in the system securely enough to prevent excessive motion or vibration of the drive during seek operation or spindle rotation, using appropriate screws or equivalent mounting hardware. The recommended mounting screw torque is 0.6 - 1.
6.6 Vibration and shock All vibration and shock measurements recorded in this section are made with a drive that has no mounting attachments for the systems. The input power for the measurements is applied to the normal drive mounting points. 6.6.1 Operating vibration 6.6.1.1 Random vibration (Linear) The test is 30 minutes of random vibration using the power spectral density (PSD) levels shown below in each of three mutually perpendicular axes.
6.6.2 Nonoperating vibration The drive does not sustain permanent damage or loss of previously recorded data after being subjected to the environment described below 6.6.2.1 Random vibration The test consists of a random vibration applied for each of three mutually perpendicular axes with the time duration of 10 minutes per axis. The PSD levels for the test simulate the shipping and relocation environment shown below. The overall RMS (Root Mean Square) level of vibration is 1.04 G.
6.6.4 Nonoperating shock The drive will operate with no degradation of performance after being subjected to shock pulses with the following characteristics. 6.6.4.1 Trapezoidal shock wave Approximate square (trapezoidal) pulse shape Approximate rise and fall time of pulse is1 ms Average acceleration level is 50 G. (Average response curve value during the time following the 1 ms rise time and before the 1 ms fall with a time "duration of 11 ms") Minimum velocity change is 4.23 meters/second 6.
6.7 Acoustics The upper limit criteria of the octave sound power levels are given in Bels relative to one picowatt and are shown in the following table. The sound power emission levels are measured in accordance with ISO 7779. Typical / Max Mode 1 disk model 2 disk model 2.5 / 2.7 2.4 / 2.5 Performance seek mode N/A 2.9/ 3.1 Quiet seek mode 2.7 / 3.0 2.5 / 2.7 Idle Operating Table 26 Sound power levels Mode definition: Idle mode.
6.9 Safety 6.9.1 UL and CSA standard conformity The product is qualified per UL60950-1:2005 Second Edition and CAN/CSA-C22.2 No.60950-1-07 Second Edition, for use in Information Technology Equipment including Electric Business Equipment. The UL recognition or the CSA certification is maintained for the product life. The UL and C-UL recognition mark or the CSA monogram for CSA certification appear on the drive. 6.9.
6.10 Electromagnetic compatibility When installed in a suitable enclosure and exercised with a random accessing routine at maximum data rate, the drive meets the following worldwide EMC requirements: United States Federal Communications Commission (FCC) Rules and Regulations (Class B), Part 15. (A 6 dB buffer shall be maintained on the emission requirements).
Part 2.
7 General 7.1 Introduction This specification describes the host interface of HDS7210xxCLA3yz / HUA7220xxCLA33z / HCS5C10xxCLA382 / HCS7210xxCLA3y2 / HDS5C10xxCLA382 . The interface conforms to the following working documents of Information technology with certain limitations described in the chapter 0 “Deviations from Standard” on page 47 – Serial ATA II: Extensions to Serial ATA Revision 2.6 7.
8 Registers In Serial ATA, the host adapter contains a set of registers that shadow the contents of the traditional device registers, referred to as the Shadow Register Block. Shadow Register Block registers are interface registers used for delivering commands to the device or posting status from the device. About details, please refer to the Serial ATA Specification.
8.4 Cylinder Low Register This register contains the low order bits of the starting cylinder address for any disk access. At the end of the command, this register is updated to reflect the current cylinder number. In LBA Mode this register contains Bits 8-15. At the end of the command, this register is updated to reflect the current LBA Bits 8-15. The cylinder number may be from zero to the number of cylinders minus one.
8.7 Drive Address Register Drive Address Register Table 29 7 6 5 4 3 2 1 0 HIZ -WTG -H3 -H2 -H1 -H0 -DS1 -DS0 Drive Address Register This register contains the inverted drive select and head select addresses of the currently selected drive. Bit Definitions HIZ High Impedance. This bit is not driven and will always be in a high impedance state. -WTG -Write Gate. This bit is 0 when writing to the disk device is in progress. -H3,-H2,-H1,-H0 -Head Select.
8.9 Error Register Error Register 7 6 5 4 3 2 1 0 ICRCE UNC 0 IDNF 0 ABRT TK0NF AMNF Table 31 Error Register This register contains status from the last command executed by the device, or a diagnostic code. At the completion of any command except Execute Device Diagnostic, the contents of this register are valid always even if ERR=0 in the Status Register. Following a power on, a reset, or completion of an Execute Device Diagnostic command, this register contains a diagnostic code.
8.10 Features Register This register is command specific. This is used with the Set Features command, SMART Function Set command and Format Unit command. 8.11 Sector Count Register This register contains the number of sectors of data requested to be transferred on a read or write operation between the host and the device. If the value in the register is set to 0, a count of 256 sectors (in 28-bit addressing) or 65,536 sectors (in 48-bit addressing) is specified.
8.13 Status Register Status Register 7 6 5 4 3 2 1 0 BSY DRDY DF DSC /SERV DRQ CORR IDX ERR Table 32 Status Register This register contains the device status. The contents of this register are updated whenever an error occurs and at the completion of each command. If the host reads this register when an interrupt is pending, it is considered to be the interrupt acknowledge. Any pending interrupt is cleared whenever this register is read. If BSY=1, no other bits in the register are valid.
9 General Operation Descriptions 9.1 Reset Response There are three types of reset in ATA as follows: Power On Reset (POR) The device executes a series of electrical circuitry diagnostics, spins up the HDA, tests speed and other mechanical parametric, and sets default values. COMRESET COMRESET is issued in Serial ATA bus. The device resets the interface circuitry as well as Soft Reset. Soft Reset (Software Reset) SRST bit in the Device Control Register is set, and then is reset.
9.1.1 Register Initialization Register Default Value Error Diagnostic Code Sector Count 01h Sector Number 01h Cylinder Low 00h Cylinder High 00h Device/Head 00h Status 50h Alternate Status 50h Table 34 Default Register Values After power on, hard reset, or software reset, the register values are initialized as shown in Table 34.
9.3 Sector Addressing Mode All addressing of data sectors recorded on the device's media is by a logical sector address. The logical CHS address for HDS7210xxCLA3yz / HUA7220xxCLA33z / HCS5C10xxCLA382 / HCS7210xxCLA3y2 / HDS5C10xxCLA382 is different from the actual physical CHS location of the data sector on the disk media. All addressing of data sectors recorded on the device's media.
9.4 Power Management Feature The power management feature set permits a host to modify the behavior in a manner which reduces the power required to operate. The power management feature set provides a set of commands and a timer that enables a device to implement low power consumption modes. HDS7210xxCLA3yz / HUA7220xxCLA33z / HCS5C10xxCLA382 HDS5C10xxCLA382 implement the following set of functions. / HCS7210xxCLA3y2 / 1. A Standby timer 2. Idle command 3. Idle Immediate command 4. Sleep command 5.
9.4.4 Interface Capability for Power Modes Each power mode affects the physical interface as defined in the following table: Mode BSY RDY Interface active Media Active x x Yes Active Idle Standby sleep 0 0 x 1 1 x Yes Yes No Active Inactive Inactive Table 36 Power conditions Ready (RDY) is not a power condition. A device may post ready at the interface even though the media may not be accessible.
9.5 SMART Function The intent of Self-monitoring, analysis and reporting technology (SMART) is to protect user data and prevent unscheduled system downtime that may be caused by predictable degradation and/or fault of the device. By monitoring and storing critical performance and calibration parameters, SMART devices employ sophisticated data analysis algorithms to predict the likelihood of near-term degradation or fault condition.
9.5.6 Off-line Read Scanning The device provides the off-line read scanning feature with reallocation. This is the extension of the off-line data collection capability. The device performs the entire read scan with reallocation for the marginal sectors to prevent the user data lost. If interrupted by the host during the read scanning, the device services the host command. 9.5.7 Error Log Logging of reported errors is supported.
9.6 Security Mode Feature Set Security Mode Feature Set is a powerful security feature. With a device lock password, a user can prevent unauthorized access to hard disk device even if the device is removed from the computer. The following commands are supported for this feature. Security Set Password ('F1'h) Security Unlock ('F2'h) Security Erase Prepare ('F3'h) Security Erase Unit ('F4'h) Security Freeze Lock ('F5'h) Security Disable Password ('F6'h) 9.6.
9.6.3 Password This function can have 2 types of passwords as described below. Master Password When the Master Password is set, the device does NOT enable the Device Lock Function, and the device can NOT be locked with the Master Password, but the Master Password can be used for unlocking the device locked. Identify Device Information word 92 contains the value of the Master Password Revision Code set when the Master Password was last changed. Valid values are 0001h through FFFEh.
9.6.4.3 Operation from POR after User Password is set When Device Lock Function is enabled, the device rejects media access command until a Security Unlock command is successfully completed.
9.6.4.4 User Password Lost If the User Password is forgotten and High level security is set, the system user can't access any data. However, the device can be unlocked using the Master Password. If a system user forgets the User Password and Maximum security level is set, data access is impossible. However, the device can be unlocked using the Security Erase Unit command to unlock the device and erase all user data with the Master Password.
9.6.5 Command Table This table shows the device's response to commands when the Security Mode Feature Set (Device lock function) is enabled.
Command Locked Mode Unlocked Mode Frozen Mode Executable Executable Command aborted Security Freeze Lock Command aborted Executable Executable Security Set Password Command aborted Executable Command aborted Security Unlock Executable Executable Command aborted Seek Executable Executable Executable Set Features Executable Executable Executable Set Max Address Command aborted Executable Executable Set Max Address Ext Command aborted Executable Executable Set Multiple Mode
9.7 Host Protected Area Feature Host Protected Area Feature is to provide the 'protected area' which can not be accessed via conventional method. This 'protected area' is used to contain critical system data such as BIOS or system management information. The contents of entire system main memory may also be dumped into 'protected area' to resume after system power off. The LBA/CYL changed by following command affects the Identify Device Information.
Write information data such as BIOS code within the protected area. Change maximum LBA using Set Max Address command to 12,289,535 (BB85FFh) with nonvolatile option. From this point, the protected area cannot be accessed till next Set Max Address command is issued. Any BIOSes, device drivers, or application software access the HDD as if that is the 6.2GB device because the device acts exactly the same as real 6.2GB device does. 3. Conventional usage without system software support Since the HDD works as 6.
9.8 Write Cache Function Write cache is a performance enhancement whereby the device reports as completing the write command (Write Sector(s), Write Multiple and Write DMA) to the host as soon as the device has received all of the data into its buffer. And the device assumes responsibility to write the data subsequently onto the disk. While writing data after completed acknowledgment of a write command, soft reset or hard reset does not affect its operation.
9.9 Reassign Function The reassign Function is used with read commands and write commands. The sectors of data for reassignment are prepared as the spare data sector. This reassignment information is registered internally, and the information is available right after completing the reassign function. Also the information is used on the next power on reset or hard reset. If the number of the spare sector reaches 0 sectors, the reassign function will be disabled automatically.
9.10 Power-up in Standby feature set Power-Up In Standby feature set allows devices to be powered-up into the Standby power management state to minimize inrush current at power-up and to allow the host to sequence the spin-up of devices. This feature set will be enabled/disabled via the SET FEATURES command. The enabling of this feature set shall be persistent after power cycle. A device needs a SET FEATURES subcommand to spin-up to active state when the device has powered-up into Standby.
9.12 48-bit Address Feature Set The 48-bit Address feature set allows devices with capacities up to 281,474,976,710,655 sectors. This allows device capacity up to 144,115,188,075,855,360 bytes. In addition, the number of sectors that may be transferred by a single command are increased by increasing the allowable sector count to 16 bits.
9.13 Streaming feature Set The Streaming feature set is an optional feature set that allows a host to request delivery of data from a contiguous logical block address range within an allotted time. This places a priority on time to access the data rather than the integrity of the data. Streaming feature set commands only support 48-bit addressing.
9.13.1.1 Urgent bit The Urgent bit in the Read Stream and Write Stream commands specifies that the command should be completed in the minimum possible time by the device and shall be completed within the specified Command Completion Time Limit. 9.13.1.2 Flush to Disk bit The Flush to Disk bit in the Write Stream command specifies that all data for the specified stream shall be flushed to the media before posting command completion.
9.14 SATA BIST (Built-in Self Test) The device supports the following BIST modes, and begins operations when it receives BIST Activate FIS. F – Far End Analog Loopback. L – Far End Retimed Loopback T – Far End Transmit only A – ALIGN Bypass (valid only in combination with T bit) S – Bypass Scrambling (valid only in combination with T bit) 9.15 SATA Interface Power Management The device supports both receiving host-initiated interface power management requests and initiating interface power management.
9.16 Software Setting Preservation When a device is enumerated, software will configure the device using SET FEATURES and other commands. These software settings are often preserved across software reset but not necessarily across hardware reset. In Parallel ATA, only commanded hardware resets can occur, thus legacy software only reprograms settings that are cleared for the particular type of reset it has issued.
9.17 SATA II Optional Features There are several optional features defined in SATA II. The following shows whether these features are supported or not. 9.17.1 Asynchronous Signal Recovery The device supports asynchronous signal recovery defined in SATA II. 9.17.2 Device Power Connector Pin 11 Definition SATA II specification defines that Pin 11 of the power segment of the device connector may be used to provide the host with an activity indication and disabling of staggered spin-up.
9.17.3.2 Counter Identifiers Each counter begins with a 16-bit identifier. 0 defines the counter value for each identifier. Any unused counter slots in the log page should have a counter identifier value of 0h. Optional counters that are not implemented shall not be returned in log page 11h. A value of „0‟ returned for a counter means that there have been no instances of that particular event.
9.17.3.2.1 Counter Definitions The counter definitions in this section specify the events that a particular counter identifier represents. 9.17.3.2.1.1 Identifier 000h There is no counter associated with identifier 000h. A counter identifier of 000h indicates that there are no additional counters in the log page. 9.17.3.2.1.
9.17.3.3 READ LOG EXT Log Page 11h READ LOG EXT log page 11h is one page (512 bytes) in length. The first Dword of the log page contains information that applies to the rest of the log page. Software should continue to process counters until a counter identifier with value 0h is found or the entire page has been read. A counter identifier with value 0h indicates that the log page contains no more counter values past that point. Log page 11h is defined in Table 40.
9.18 SCT Command Transport feature Set 9.18.1 Overview 9.18.1.1 Introduction SMART Command Transport (SCT) is the method for the drive to receive commands using log page E0h and transporting data using log page E1h.
9.18.1.3 SCT Command Nesting and intermingling with Standard commands In general, standard ATA commands can be intermingled with SCT Commands but SCT commands cannot be nested. SCT commands that do not require a follow-on data transfer operation never have an issue with being intermixed with any ATA commands or each other.
9.18.2 SCT Command Protocol 9.18.2.1 Command Transport SCT Command Transport occurs when a 512-byte data packet (called “Key Sector”) is created and the written to SMART or extended log page E0h. The key sector specifies Action and Function Codes along with the parameters that are required to perform the action. 9.18.2.1.
9.18.2.1.
9.18.2.1.3 Key Sector Format An SCT command (Key Sector) is always 512 bytes long. Table below shows the generic format of an SCT command. Byte 1:0 Field Action Code Words 1 3:2 Function Code 1 X:4 Y:x+1 … Parameter1 Parameter2 … Total Words Depends on command Depends on command … 256 Description This field defines the command type and generally specifies the type of data being accessed, such as sector or physical action being performed, such as seek.
9.18.2.1.4 Extended Status Code Status Code 0000h 0001h 0002h 0003h 0004h 0005h 0006h 0007h 0008h 0009h 000Ah 000Bh 000Ch 000Dh 000Eh 000Fh 0010h 0011h 0012h 0013h 0017h 0018h-BFFFh C000h-C002h C003h C004h C005h C006h C007h-FFEFh FFF0h-FFFEh FFFFh Definition Command complete without error Invalid Function Code Input LBA out of range Request sector count overflow. The number of sectors requested to transfer (Sector Count register) in the read or write log command is larger than required by SCT command.
9.18.2.2 Data transfer Once an SCT command has been issued, status can be checked and data can be transferred. Data transfer uses log page E1h. 9.18.2.2.1 Read/Write SCT Data Using SMART Command Block Output Registers Register 7 6 5 4 3 2 1 0 Feature D5h(Read)/D6h(Write) Sector Count Number of sectors to be transferred Sector Number E1h Cylinder Low 4Fh Cylinder High C2h Device/Head - - - D - Command - - - B0h Table 50 Input Registers of SCT Data Transfer Using SMART 9.18.2.2.
9.18.2.3 SCT Status Request Once an SCT command has been issued, a status is reported in the ATA registers. This status indicates that the command was accepted or that an error occurred. This ATA status return does not indicate successful completion of the SCT actions. Some commands can take several minutes or even hours to execute. In this case, the host can determine execution progress by requesting SCT status. Log page E0h contains the status information.
9.18.2.3.3 Format of SCT Status Response Byte 1:0 3:2 Type Word Word Field Name Format Version SCT Version Value 0003h 5:4 Word SCT Spec.
205 209:206 Byte Dword Reserved 00h 213:210 Dword Under Limit Count 479:214 511:480 Byte[275] Byte[32] Reserved Vendor Specific Over Limit Count Number of temperature recording Intervals since the last power-on reset where the recorded temperature was greater than Max Op Limit. See table 93 for information about this Interval. Number of temperature recording Intervals since the last power-on reset where the recorded temperature was less than Min Op Limit.
9.18.3 SCT Command Set 9.18.3.1 SCT Write Same (action code : 0002h) Inputs: (Key Sector) Word Name Value Description 0 Action Code 0002h This action writes a pattern or sector of data repeatedly to the media. This capability could also be referred to as “Write All” or “Write Same”.
Once the key sector has been issued, if the Function Code was 0002h or 0102h and the TF Data indicates that the drive is ready to receive data, log page E1h should be written to transfer the data. This command can change the Segment Initialized Flag. If the command writes all the user addressable sectors and completes without encountering an error or being aborted, then the “Segment Initialized Flag” (bit 0 of the Status Flags in the SCT Status. See0) shall be set to 1.
Implementation note for Background Operation (Function code = 0001h, 0002h) In this mode, the drive will return command completion status when the drive finished receiving data. Any command, including IDENTIFY DEVICE, other than SCT Status, issued to the drive while this command is in progress will terminate the SCT Write Same command. The incoming command is executed. Use the SCT Status command to retrieve status information about the current SCT command.
9.18.3.2 Error Recovery Control command (action code : 0003h) Inputs: (Key Sector) Word Name Value Description 0 Action Code 0003h Set the read and write error recovery time 1 Function Code 0001h Set New Value 0002h Return Current Value 0001h Read Timer 0002h Write Timer If the function code is 0001h, then this field contains the recovery time limit in 100ms units. The minimum SCT timeout value is 65 (=6.5 second). When the specified time limit is shorter than 6.
9.18.3.
Feature Code State Definition 0001h 0001h : Allow write cache operation to be determined by Set Feature command 0002h : Force write cache enabled 0003h : Force write cache disabled If State 0001h is selected, the ATA Set Feature command will determine the operation state of write cache. If State 0002h or 0003h is selected, write cache will be forced into the corresponding operation state, regardless of the current ATA Set Feature state.
9.18.3.
Byte Size Field Name Description 1:0 Word Format Version Data table format version (=0002h) 3:2 Word Sampling Period Absolute HDA Temperature sampling period in minutes. 0000h indicates sampling is disabled. 5:4 Word Interval Timer interval between entries in the history queue. 6 Byte Max Op Limit Maximum recommended continuous operating temperature. This is a one byte 2‟s complement number that allows a range from -127°C to +127°C to be specified. 80h is an invalid value.
(Queue Size+33):34 Byte[Queue Size] Queue Buffer This is a circular buffer of absolute HDA Temperature values. These are one byte 2‟s complement numbers, which allow a range from -127°C to +127°C to be specified. A value of 80h indicates an initial value or a discontinuity in temperature recording. The Actual time between samples may vary because commands may not be interrupted. The sampling period is the minimum time between samples. See Not 1.
10 Command Protocol The commands are grouped into different classes according to the protocols followed for command execution. The command classes with their associated protocols are defined below. Please refer to Serial ATA Revision 1.0a (Section 9. device command layer protocol) and Serial ATA II: Extensions to Serial ATA 1.0a (Section 4. Command layer) about each protocol. For all commands, the host must first check if BSY=1, and should proceed no further unless and until BSY=0.
10.
SMART Enable Operations SMART Execute Off-line Data Collection SMART Return Status SMART Save Attribute Values SMART Enable/Disable Automatic Off-Line Standby Standby Immediate Write Uncorrectable Ext Execution of these commands involves no data transfer. 10.
11 Command Descriptions Protocol 3 3 3 3 3 1 2 2 3 3 3 2 1 3 3 3 3 3 1 4 4 4 5 1 1 1 3 3 1 1 1 4 4 3 3 3 3 2 3 2 3 2 2 Command Check Power Mode Check Power Mode* Configure Stream Device Configuration Restore Device Configuration Freeze Lock Device Configuration Identify Device Configuration Set Download Microcode Execute Device Diagnostic Flush Cache Flush Cache Ext Format Track Identify Device Idle Idle* Idle Immediate Idle Immediate* Initialize Device Parameters Read Buffer Read DMA Read DMA Read DMA E
Protocol 3 3 3 3 3 3 3 3 3 3 3 1 1 3 3 2 3 3 3 3 3 2 4 4 4 4 5 2 2 2 2 2 2 2 4 4 3 Command Seek Set Features Set Max Address Set Max Address Ext Set Multiple Mode Sleep Sleep* SMART Disable Operations SMART Enable/Disable Attribute Auto save SMART Enable Operations SMART Execute Off-line Data Collection SMART Read Attribute Values SMART Read Attribute Thresholds SMART Return Status SMART Save Attribute Values SMART Write Log Sector SMART Enable/Disable Automatic Off-line Standby Standby* Standby Immediate
Command (Subcommand) Command code (Hex) Feature Register (Hex) B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 D0 D1 D2 D3 D4 D5 D6 D8 D9 DA DB EF EF EF EF EF EF EF EF EF EF EF EF 02 03 05 06 07 55 66 82 85 86 AA CC (SMART Function) SMART Read Attribute Values SMART Read Attribute Thresholds SMART Enable/Disable Attribute Autosave SMART Save Attribute Values SMART Execute Off-line Data Collection SMART Read Log SMART Write Log SMART Enable Operations SMART Disable Operations SMART Return Status SMART Enable/Disable
The following symbols are used in the command descriptions: Output Registers 0 Indicates that the bit must be set to 0. 1 Indicates that the bit must be set to 1. D The device number bit. Indicates that the device number bit of the Device/Head Register should be specified. This bit is reserved since all Serial ATA devices behave like Device 0. H Head number. Indicates that the head number part of the Device/Head Register is an output parameter and should be specified. L LBA mode. mode. R Retry.
11.
11.
Output Parameters To The Device Feature Current bit 7 (A/R) Feature Current bit 6 (R/W) Feature Current bit 0..2 (Stream ID) Feature Previous If set to one, a request to add a new stream. If cleared to zero, a request to remove a previous configured stream is specified. R/W specifies a read stream if cleared to zero and a write stream if set to one. The Stream ID shall be a value between 0 and 7. The default Command Completion Time Limit (CCTL).
11.
11.3.2 Device Configuration Freeze Lock (Subcommand C1h) The Device Configuration Freeze Lock command prevents accidental modification of the Device Configuration Overlay settings. After successful execution of a Device Configuration Freeze Lock command, all Device Configuration Set, Device Configuration Freeze Lock, Device Configuration Identify, and Device Configuration Restore commands are aborted by the device. The Device Configuration Freeze Lock condition shall be cleared by a power-down.
Word 0 1 2 3-6 7 8 9-20 21 22-254 255 Content 0002h Data Structure revision Multiword DMA modes supported 15-3 Reserved 2 1 = Multiword DMA mode 2 and below are supported 1 1 = Multiword DMA mode 1 and below are supported 0 1 = Multiword DMA mode 0 is supported Ultra DMA modes supported 15-7 Reserved 6 1 = Ultra DMA mode 6 and below are supported 5 1 = Ultra DMA mode 5 and below are supported 4 1 = Ultra DMA mode 4 and below are supported 3 1 = Ultra DMA mode 3 and below are supported 2
Note. Bits 7:0 of this word contain the value A5h. Bits 15:8 of this word contain the data structure checksum. The data structure checksum is the two's complement of the sum of all byte in words 0 through 254 and the byte consisting of bits 7:0 of word 255. Each byte is added with unsigned arithmetic, and overflow is ignored. The sum of all bytes is zero when the checksum is correct.
11.4 Download Microcode (92h) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data - - - - - - - - Data - - - - - - - - Feature Error SUBCOMMAND(00-07) ...See Below...
Number and Sector Count registers shall indicate no data is to be transferred. ABT will be set to 1 in the Error Register if the value in the Feature register is neither 03h nor 07h, or the device is in Security Locked mode. When the reload of new microcode is requested in the data sent by the host for this Download command, UNC error will be set to 1 in the Error Register if the device fails to reload new microcode. This error is reported only when the reload of microcode is requested.
11.
11.
11.7 Flush Cache Ext (EAh) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data Low - - - - - - - - Data Low - - - - - - - - Data High - - - - - - - - Data High - - - - - - - - Current - - - - - - - - Error Previous - - - - - - - - Current - - - - - - - - ...See Below...
11.
Output Parameters To The Device Sector Number In LBA mode, this register specifies LBA address bits 0 - 7 to be formatted. (L=1) Cylinder High/Low The cylinder number of the track to be formatted. (L=0) In LBA mode, this register specifies LBA address bits 8-15 (Low), 16-23 (High) to be formatted. (L=1) H The head number of the track to be formatted. (L=0) In LBA mode, this register specifies LBA address bits 24-27 to be formatted.
11.
11.
Word 00 Content 045AH or 045EH Description Drive classification, bit assignments: 15 (=0): 1=ATAPI device, 0=ATA device 14 - 8 : retired 7 (=0): 1=removable cartridge device 6 (=1): 1=fixed device 5 - 3 : retired 2 (=0): Response incomplete 1 : retired 0 (=0): Reserved Number of cylinders in default translate mode Specific Configuration Need Set Feature for spin-up after power-up 37C8H: Identify Device is incomplete Need Set Feature for spin-up after power-up 738CH: Identify Device is complete No Need Set
Word 49 Content xF00H 50 4000H 51 0200H 52 0200H 53 0007H 54 55 56 xxxxH xxxxH xxxxH 57-58 xxxxH 59 0xxxH 60-61 xxxxH 62 63 0000H xx07H 64 0003H 65 0078H Description Capabilities, bit assignments: 15-14 (=0) Reserved 13 Standby timer (=1) values as specified in ATA standard are supported (=0) values are vendor specific 12 (=0) Reserved 11 (=1) IORDY Supported 10 (=1) IORDY can be disabled 9 (=1) LBA supported 8 (=1) DMA supported 7- 0 (=0) Reserved Capabilities, bit assignments: 15-1
Word Content 66 0078H 67 0078H 68 0078H 69-74 75 0000H 001FH 76 170xH 77 000xH 78 005EH 79 0040H Description Manufacturer's Recommended Multiword DMA Transfer Cycle Time 15-0(=78) Cycle time in nanoseconds (120ns, 16.6MB/s) Minimum PIO Transfer Cycle Time Without Flow Control 15-0(=78) Cycle time in nanoseconds (120ns, 16.6MB/s) Minimum PIO Transfer Cycle Time With IORDY Flow Control 15- 0(=78) Cycle time in nanoseconds (120ns, 16.
Word 80 Content 01FCH 81 0029H 82 346BH Description Major version number ATA-2, ATA-3, ATA/ATAPI-4, ATA/ATAPI-5, ATA/ATAPI-6.
Word 83 Content 7D69H 84 4163H or 4773H 85 xxxxH Description Command set supported 15-14(=01) Word 83 is valid 13 (=1) FLUSH CACHE EXT command supported 12 (=1) FLUSH CACHE command supported 11 (=1) Device Configuration Overlay command supported 10 (=1) 48-bit Address feature set supported 9 (=0) Reserved 8 (=1) SET Max Security extension 7 (=0) Set Features Address Offset feature mode SET FEATURES subcommand required to spin-up 6 (=1) after power-up 5 (=1) Power-Up In Standby feature set supported 4
Word 86 Content xxxxH Description Command set/feature enabled 15 Words 120:119 are valid.
Word 88 Content 0x7FH 89 xxxxH 90 91 92 93 0000H 0000H FFFEH 0000H Description Ultra DMA Transfer modes 15- 8(=xx) Current active Ultra DMA transfer mode 15 Reserved (=0) 14 Mode 6 1 = Active 13 Mode 5 1 = Active 12 Mode 4 1 = Active 11 Mode 3 1 = Active 10 Mode 2 1 = Active 9 Mode 1 1 = Active 8 Mode 0 1 = Active 7- 0(=7F) Ultra DMA transfer mode supported 7 Reserved (=0) 6 Mode 6 1 = Support 5 Mode 5 1 = Support 4 Mode 4 1 = Support 3 Mode 3 1 = Support 2 Mode 2 1 = Support 1 Mode 1 1 = Support 0 Mo
Word 94 Content 0000H 95 xxxxH 96 xxxxH 97 xxxxH 98-99 xxxxH 100-103 xxxxH 104 xxxxH 105-106 107 0000H 5A87H 108-111 xxxxH 112-118 119 0000H 4014h 120 4014h 121-126 127 0000H 0000H Description Reserved Stream Minimum Request Size Number of sectors that provides optimum performance in streaming environment. This number shall be a power of two, with a minimum of eight sectors (4096 bytes).
Word 128 Content xxxxH 129 xxxxH * 130-159 160-167 168 xxxxH 0000H 0002H * 169-175 176-205 206 0000H 0000H Description Security status. Bit assignments 15-9 Reserved 8 Security Level 1= Maximum, 0= High 7-6 Reserved 5 Enhanced erase 1= Support 4 Expired 1= Expired 3 Freeze 1= Frozen 2 Lock 1= Locked 1 Enabled/Disable 1= Enable 0 Capability 1= Support Current Set Feature Option.
Word Content 207-208 209 0000H 0000H 210-211 0000H 212-213 0000H 214 0000H 215-216 218 219 0000H 1C20H or 1644H 0000H 0000H 220 0000H 221 222 0000H 101FH 223 224-233 0021H 0000H 234 0001H 235 03E0H 236-254 0000H 255 xxA5H 217 Description Reserved Alignment of logical blocks within a larger physical block 0000H=Not supported Write-Read-Verify Sector Count Mode 3 (DWord) 0000H=Not supported Write-Read-Verify Sector Count Mode 2 (DWord) 0000H=Not supported NV Cache Capabilities 0000
11.
Output Parameters To The Device Sector Count Timeout Parameter. If zero, then the automatic power down sequence is disabled.
11.
11.
11.
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be transferred. If zero is specified, then 256 sectors will be transferred. Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register specifies LBA address bits 0-7 to be transferred. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register specifies LBA address bits 8-15 (Low) 16-23 (High) to be transferred.
11.
Output Parameters To The Device Sector Count Current The number of sectors to be transferred low order, bits (7:0). Sector Count Previous The number of sectors to be transferred high order, bits (15:8). If 0000h in the Sector Count register is specified, then 65,536 sectors will be transferred.
11.
Output Parameters To The Device Feature Current The number of sectors to be transferred low order, bits (7:0). Feature Previous The number of sectors to be transferred high order, bits (15:8). Sector Count Current . TAG (bits 7-3) The TAG value shall be assigned to be different from all other queued commands. The value shall not exceed the maximum queue depth specified by the Word 75 of the Identify Device information.
11.18 Read Log Ext (2Fh) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data Low - - - - - - - - Data Low - - - - - - - - Data High - - - - - - - - Data High - - - - - - - - Current V V V V V V V V Error Previous V V V V V V V V Current V V V V V V V V ...See Below...
Output Parameters To The Device Feature Log Address Specific Sector Count Current The number of sectors to be read from the specified log low order, bits (7:0). The log transferred by the drive shall start at the sector in the specified log at the specified offset, regardless of the sector count requested. Sector Count Previous Sector Number Current The number of sectors to be read from the specified log high orders, bits (15:8). The log to be returned as described in 0.
11.18.1 General Purpose Log Directory Table 101 defines the 512 bytes that make up the General Purpose Log Directory.
11.18.2 Extended Comprehensive SMART Error log Table 102 defines the format of each of the sectors that comprise the Extended Comprehensive SMART error log. Error log data structure shall not include errors attributed to the receipt of faulty commands such as command codes not implemented by the device or requests with invalid parameters or in valid addresses.
Description Bytes Offset 1st command data structure 18 00h 2nd command data structure 18 12h 3rd command data structure 18 24h 4th command data structure 18 36h 5th command data structure 18 48h Error data structure 34 5Ah 124 Table 103 Extended Error log data structure Command data structure: Data format of each command data structure is shown below.
Error data structure: Data format of error data structure is shown below.
11.18.2.4 Device error count This field shall contain the total number of errors attributable to the device that have been reported by the device during the life of the device. This count shall not include errors attributed to the receipt of faulty commands such as commands codes not implemented by the device or requests with invalid parameters or invalid addresses. If the maximum value for this field is reached the count shall remain at the maximum value when additional errors are encountered and logged.
11.18.3.3 Extended Self-test log descriptor entry The content of the self-test descriptor entry is shown below.
11.18.4 Command Error Table 108 defines the format of the Command Error data structure.
11.18.5 Read Stream Error log Table 109 defines the format of the Read Stream Error log. Entries are placed into the Read Stream Error log only when the SE bit is set to one in the Status Register. The 512 bytes returned shall contain a maximum of 31 error entries. The Read Stream Error Count shall contain the total number of Read Stream Errors detected since the last successful completion of the Read Log Ext command with LBA Low register set to 22h.
Table 109 defines the format of each entry in the Read Stream Error Log.
11.18.6 Write Stream Error log Table 111 defines the format of the Write Stream Error log. Entries are placed into the Write Stream Error log only when the SE bit is set to one in the Status Register. The 512 bytes returned shall contain a maximum of 31 error entries. The Write Stream Error Count shall contain the total number of Write Stream Errors detected since the last successful completion of the Read Log Ext command with LBA Low register set to 21h.
11.18.7 Streaming Performance log Table 112 defines the format of the log returned by the Read Log Ext command, when the LBA Low register is 20h. This data set is referred to as the Streaming Performance Parameters log, the length of which (in sectors) is statically indicated in Read Log Ext log address 00h (Log Directory).
11.
11.
Output Parameters To The Device Sector Count Current Sector Count Previous The number of continuous sectors to be transferred low order, bits (7:0). The number of continuous sectors to be transferred high order, bits (15:8). If 0000h is specified in the Sector Count register, then 65,536 sectors will be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
11.
Input Parameters From The Device Sector Number (HOB=0) LBA (7:0) of the address of the Native max address. Sector Number (HOB=1) LBA (31:24) of the address of the Native max address. Cylinder Low (HOB=0) LBA (15:8) of the address of the Native max address. Cylinder Low (HOB=1) LBA (39:32) of the address of the Native max address. Cylinder High (HOB=0) LBA (23:16) of the address of the Native max address. Cylinder High (HOB=1) LBA (47:40) of the address of the Native max address.
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be transferred. sectors will be transferred. If zero is specified, then 256 Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 0 – 7. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 8 – 15 (Low), 16 – 23 (High).
11.
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0) Sector Count Previous The number of continuous sectors to be transferred high order, bits (15:8). If zero is specified in the Sector Count register, then 65,536 sectors will be transferred. Sector Number Current Sector Number Previous Cylinder Low Current LBA (7:0). LBA (31:24). LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
Completion Time Limit event if some data transferred is in error. Output Parameters To The Device Feature Current URG (bit7) URG specifies an urgent transfer request. The Urgent bit specifies that the command should be completed in the minimum possible time by the device and shall be completed within the specified Command Completion Time Limit. RC RC specifies Read Continuous mode enabled. If the Read Continuous bit is set to one, the device shall not stop execution of the command due to errors.
Cylinder Low (HOB=1) Cylinder High (HOB=0) Cylinder High (HOB=1) CCTO (Error, bit 0) SE (Status, bit 5) LBA (39:32) of the address of the first unrecoverable error. LBA (23:16) of the address of the first unrecoverable error. LBA (47:40) of the address of the first unrecoverable error. CCTO bit shall be set to one if a Command Completion Time Limit Out error has occurred.
11.
Output Parameters To The Device Feature Current URG (bit7) URG specifies an urgent transfer request. The Urgent bit specifies that the command should be completed in the minimum possible time by the device and shall be completed within the specified Command Completion Time Limit. RC RC specifies Read Continuous mode enabled. If the Read Continuous bit is set to one, the device shall not stop execution of the command due to errors.
Cylinder High (HOB=1) CCTO (Error, bit 0) LBA (47:40) of the address of the first unrecoverable error. CCTO bit shall be set to one if a Command Completion Time Limit Out error has occurred. SE (Status, bit 5) SE (Stream Error) shall be set to one if an error has occurred during the execution of the command and the RC bit is set to one.
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be verified. sectors will be verified. If zero is specified, then 256 Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 0 – 7. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 8 – 15 (Low), 16 – 23 (High).
11.
Output Parameters To The Device Sector Count Current Sector Count Previous Sector Number Current The number of continuous sectors to be verified low order, bits (7:0). The number of continuous sectors to be verified high order, bits (15:8). If zero is specified in the Sector Count register, then 65,536 sectors will be verified. LBA (7:0). Sector Number Previous LBA (31:24) Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
11.
Word Description 00 Control word bit 0 bit 1-15 01-16 Password 17-255 Reserved : Identifier (1-Mater, 0-User) : Reserved (32 bytes) Table 128 Password Information for Security Disable Password command The device will compare the password sent from this host with that specified in the control word. Identifier Zero indicates that the device should check the supplied password against the user password stored internally.
11.
11.
If the password does not match, then the device rejects the command with an Aborted error. Word Description 00 Control word bit 0 01-16 17-255 : Identifier (1-Mater, 0-User) bit 1 : Erase mode (1- Enhanced, 0- Normal) Enhanced mode is not supported bit 2-15 : Reserved Password Reserved (32 bytes) Table 131 Erase Unit Information Identifier Zero indicates that the device should check the supplied password against the user password stored internally.
11.
11.
Word Description 00 Control word bit 0 : Identifier (1-Mater, 0-User) bit 1-7 : Reserved bit 8 : Security level (1-Maximum, 0-High) : Reserved bit 9-15 01-16 17 18-255 Password (32 byte) Master Password Revision Code (valid if Word 0 bit 0 = 1) Reserved Table 134 Security Set Password Information Identifier Zero indicates that the device regards Password as User Password. One indicates that device regards Password as Master Password.
11.
When this counter reaches zero then all password protected commands are rejected until a hard reset or a power off. Word Description 00 Control word bit 0 bit 1-15 01-16 17-255 : Identifier (1-Mater, 0-User) : Reserved Password Reserved (32 bytes) Table 136 Security Unlock Information Identifier Zero indicates that device regards Password as User Password. One indicates that device regards Password as Master Password.
Seek (7xh) 11.
11.
11.37.1 Set Features (EFh) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data - - - - - - - - Data - - - - - - - - Feature V V V V V V V V Error Sector Count Note.
Output Parameters To The Device Feature Destination code for this command 02H Enable write cache 03H Set transfer mode based on value in sector count register 05H Enable Advanced Power Management 06H Enable Power-up in Standby feature set 07H Power-Up In Standby feature set device spin-up 10H Enable use of Serial ATA feature 43H Set Maximum Host Interface Sector Time 55H Disable read look-ahead feature 66H Disable reverting to power on defaults 82H Disable write cache 85H Disable Advan
11.37.2 Set Transfer mode When Feature register is 03h (=Set Transfer mode), the Sector Count Register specifies the transfer mechanism. The upper 5 bits define the type of transfer and the low order 3 bits encode the mode value. PIO Default Transfer Mode PIO Default Transfer Mode Disable IORDY PIO Flow Control Transfer Mode x Multiword DMA mode x Ultra DMA mode x 00000 00000 000 001 00001 00100 01000 nnn nnn nnn (nnn=000,001,010,011,100) (nnn=000,001,010) (nnn=000,001,010,011,100,101,11 0) 11.37.
Y2=(x-40h) * 60 + 600[sec] (600<=Y2<=4380) When Low RPM standby mode is the deepest Power Saving mode and the value in Sector Count register is between 01h and 3Fh, 120<=Y1<=435 [sec] (default: 120 [sec]) Y2=600 [sec] where x is the value in Sector Count register, y1 is the idle time to Low Power Idle mode, and y2 is the idle time to Low RPM standby mode. If Low power idle mode has already been enabled (i.e., y1 has been set) before Low RPM standby mode is enabled, y1 is preserved.
11.
address shall be changed to the native maximum address, the value placed in words (61:60) shall be 268,435,455 and the value placed in words (103:100) shall be the native maximum address. If a host protected area has been established by a Set Max Address Ext command, the device shall return command aborted. Output Parameters To The Device B Option bit for selection whether nonvolatile or volatile. B=0 is volatile condition. When B=1, MAX Address which is set by Set Max Address command is preserved by POR.
11.38.
11.38.
11.38.
11.38.
11.
Output Parameters To The Device B Sector Number Current Option bit for selection whether nonvolatile or volatile. B=0 is volatile condition. When B=1, MAX Address which is set by Set Max Address Ext command is preserved by POR. When B=0, MAX Address which is set by Set Max Address Ext command will be lost by POR. B=1 is not valid when the device is in Address Offset mode. Set Max LBA (7:0). Sector Number Previous Set Max LBA (31:24). Cylinder Low Current Set Max LBA (15:8).
11.
11.
11.
11.42.1 SMART Subcommand In order to select a subcommand the host must write the subcommand code to the device‟s Features Register before issuing the SMART Function Set command. The subcommands and their respective codes are listed below.
11.42.1.4 SMART Save Attribute Values (Subcommand D3h) This subcommand causes the device to immediately save any updated Attribute Values to the device‟s Attribute Data sector regardless of the state of the Attribute Autosave feature. Upon receipt of the SMART Save Attribute Values subcommand from the host, the device writes any updated Attribute Values to the Attribute Data sector. 11.42.1.
11.42.1.6 SMART Read Log Sector (Subcommand D5h) This command returns the specified log sector contents to the host. The 512 bytes data are returned at a command and the Sector Count value shall be set to one. The Sector Number shall be set to specify the log sector address.
11.42.1.9 SMART Disable Operations (Subcommand D9h) This subcommand disables all SMART capabilities within the device including the device‟s attribute autosave feature. After receipt of this subcommand the device disables all SMART operations. Non self-preserved Attribute Values will no longer be monitored. The state of SMART (either enabled or disabled) is preserved by the device across power cycles.
11.42.2 Device Attributes Data Structure The following defines the 512 bytes that make up the Attribute Value information. This data structure is accessed by the host in its entirety using the SMART Read Attribute Values subcommand. All multi-byte fields shown in these data structures are in byte ordering, namely that the least significant byte occupies the lowest numbered byte address location in the field. Description Bytes Data Structure Revision Number Offset 2 00h st 12 02h … ..
11.42.2.2 Individual Attribute Data Structure The following defines the 12 bytes that make up the information for each Attribute entry in the Device Attribute Data Structure. Description Bytes Offset Attribute ID Number (01h to FFh) 1 00h Status Flags 2 01h Attribute Value (valid values from 01h to FDh) 1 03h Vender specific 8 04h Total Bytes 12 Table 152 Individual Attribute Data Structure Attribute ID Numbers: Any non-zero value in the Attribute ID Number indicates an active attribute.
Status Flag Definitions Bit Definition 0 Pre-failure/advisory bit 0 2-5 An Attribute Value less than or equal to its corresponding Attribute Threshold indicates an advisory condition where the usage or age of the device has exceeded its intended design life period. 1 An Attribute Value less than or equal to its corresponding attribute threshold indicates a pre-Failure condition where imminent loss of data is being predicted.
11.42.2.4 Self-test execution status Bit 0-3 4-7 Definition Percent Self-test remaining An approximation of the percent of the self-test routine remaining until completion in ten percent increments. Valid values are 0 through 9.
11.42.2.7 SMART Capability This word of bit flags describes the SMART capabilities of the device. The device will return 03h indicating that the device will save its Attribute Values prior to going into a power saving mode and supports the SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE command. Bit 0 1 2-15 Definition Pre-power mode attribute saving capability If bit = 1, the device will save its Attribute Values prior to going into a power saving mode (Standby or Sleep mode).
11.42.3 Device Attribute Thresholds Data Structure The following defines the 512 bytes that make up the Attribute Threshold information. This data structure is accessed by the host in its entirety using the SMART Read Attribute Thresholds. All multi-byte fields shown in these data structures follow the ATA/ATAPI-7 specification for byte ordering, namely that the least significant byte occupies the lowest numbered byte address location in the field.
11.42.4 SMART Log Directory Table 155 defines the 512 bytes that make up the SMART Log Directory. The SMART Log Directory is SMART Log Address zero and is defined as one sector long.
11.42.5 SMART summary error log sector The following defines the 512 bytes that make up the SMART summary error log sector. All multi-byte fields shown in this data structure follow the ATA/ATAPI-7 specifications for byte ordering.
11.42.5.4 Error log data structure Data format of each error log structure is shown below. Description Bytes st 1 error log data structure Offset 12 00h error log data structure 12 0Ch 3 error log data structure rd 12 18h th 12 24h 5 error log data structure th 12 30h Error data structure 30 3Ch 2 nd 4 error log data structure 90 Table 157 Error log data structure Command data structure: Data format of each command data structure is shown below.
Error data structure: Data format of error data structure is shown below.
11.42.6 Self-test log data structure The following defines the 512 bytes that make up the Self-test log sector. All multi-byte fields shown in these data structures follow the ATA/ATAPI-7 specifications for byte ordering.
11.42.7 Selective self-test log data structure The Selective self-test log is a log that may be both written and read by the host. This log allows the host to select the parameters for the self-test and to monitor the progress of the self-test. The following table defines the contents of the Selective self-test log which is 512 bytes long. All multi-byte fields shown in these data structures follow the ATA/ATAPI-7 specifications for byte ordering.
11.42.8 Error Reporting The following table shows the values returned in the Status and Error Registers when specific error conditions are encountered by a device. Error Condition Status Register Error Register A SMART FUNCTION SET command was received by the device without the required key being loaded into the Cylinder High and Cylinder Low registers.
11.
Value Timeout -----------------------------------------0 Timer disabled 1-240 Value * 5 seconds 241-251 (Value-240) * 30 minutes 252 21 minutes 253 8 hours 254 21 minutes 10 seconds 255 21 minutes 15 seconds When the automatic power down sequence is enabled, the drive will enter Standby mode automatically if the timeout interval expires with no drive access from the host. The timeout interval will be reinitialized if there is a drive access before the timeout interval expires.
11.
11.
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be transferred. sectors will be transferred. Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 0 – 7. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 8 – 15 (Low), 16 – 23 (High). (L=1) H The head number of the first sector to be transferred.
11.
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0). Sector Count Previous The number of continuous sectors to be transferred high order bits (15:8). If zero is specified in the Sector Count register, then 65,536 sectors will be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0). Sector Count Previous The number of continuous sectors to be transferred high order bits (15:8). If zero is specified in the Sector Count register, then 65,536 sectors will be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
Output Parameters To The Device Feature Current The number of sectors to be transferred low order, bits (7:0). Feature Previous The number of sectors to be transferred high order, bits (15:8). Sector Count Current . TAG (bits 7-3) The TAG value shall be assigned to be different from all other queued commands. The value shall not exceed the maximum queue depth specified by the Word 75 of the Identify Device information.
11.
Output Parameters To The Device Sector Count Current The number of sectors to be written to the specified log low order, bits (7:0). Sector Count Previous The number of sectors to be written to the specified log high orders, bits (15:8). If the number of sectors is greater than the number indicated in the Log directory, which is available in Log number zero, the device shall return command aborted.
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be transferred. sectors will be transferred. Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 0 - 7. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 8 - 15 (Low), 16 - 23 (High). (L=1) H The head number of the first sector to be transferred.
11.52 Write Multiple Ext (39h) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data Low - - - - - - - - Data Low - - - - - - - - Data High - - - - - - - - Data High - - - - - - - - Current - - - - - - - - Error Previous - - - - - - - - Current V V V V V V V V ...See Below...
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0) Sector Count Previous The number of continuous sectors to be transferred high order, bits (15:8). zero is specified in the Sector Count register, then 65,536 sectors shall be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.53 Write Multiple FUA Ext (CEh) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data Low - - - - - - - - Data Low - - - - - - - - Data High - - - - - - - - Data High - - - - - - - - Current - - - - - - - - Error Previous - - - - - - - - Current V V V V V V V V ...See Below...
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0) Sector Count Previous The number of continuous sectors to be transferred high order, bits (15:8). zero is specified in the Sector Count register, then 65,536 sectors shall be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16).
11.
Output Parameters To The Device Sector Count The number of continuous sectors to be transferred. sectors will be transferred. Sector Number The sector number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 0 - 7. (L=1) Cylinder High/Low The cylinder number of the first sector to be transferred. (L=0) In LBA mode, this register contains LBA bits 8 - 15 (Low), 16 - 23 (High). (L=1) H The head number of the first sector to be transferred.
11.55 Write Sector(s) Ext (34h) Command Block Output Registers Command Block Input Registers Register 7 6 5 4 3 2 1 0 Register 7 6 5 4 3 2 1 0 Data Low - - - - - - - - Data Low - - - - - - - - Data High - - - - - - - - Data High - - - - - - - - Current - - - - - - - - Error Previous - - - - - - - - Current V V V V V V V V ...See Below...
Output Parameters To The Device Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0). Sector Count Previous The number of continuous sectors to be transferred high order bits (15:8). If zero is specified, then 65,536 sectors will be transferred. Sector Number Current LBA (7:0). Sector Number Previous LBA (31:24). Cylinder Low Current LBA (15:8). Cylinder Low Previous LBA (39:32). Cylinder High Current LBA (23:16). Cylinder High Previous LBA (47:40).
11.
Output Parameters To The Device Feature Current URG (bit7) URG specifies an urgent transfer request. The Urgent bit specifies that the command should be completed in the minimum possible time by the device and shall be completed within the specified Command Completion Time Limit. WC WC specifies Write Continuous mode enabled. If the Write Continuous bit is set to one, the device shall not stop execution of the command due to errors.
Sector Number (HOB=1) LBA (31:24) of the address of the first unrecoverable error. Cylinder Low (HOB=0) LBA (15:8) of the address of the first unrecoverable error. Cylinder Low (HOB=1) LBA (39:32) of the address of the first unrecoverable error. Cylinder High (HOB=0) LBA (23:16) of the address of the first unrecoverable error. Cylinder High (HOB=1) LBA (47:40) of the address of the first unrecoverable error.
11.
Output Parameters To The Device Feature Current URG (bit7) URG specifies an urgent transfer request. The Urgent bit specifies that the command should be completed in the minimum possible time by the device and shall be completed within the specified Command Completion Time Limit. WC WC specifies Write Continuous mode enabled. If the Write Continuous bit is set to one, the device shall not stop execution of the command due to errors.
Input Parameters From The Device Sector Number (HOB=0) LBA (7:0) of the address of the first unrecoverable error. Sector Number (HOB=1) LBA (31:24) of the address of the first unrecoverable error. Cylinder Low (HOB=0) LBA (15:8) of the address of the first unrecoverable error. Cylinder Low (HOB=1) LBA (39:32) of the address of the first unrecoverable error. Cylinder High (HOB=0) LBA (23:16) of the address of the first unrecoverable error.
11.
flagged uncorrectable status of a sector shall remain through a power cycle. If the drive is unable to process a Write Uncorrectable EXT command for any reason the device shall abort the command. Output Parameters To The Device Feature Current Uncorrectable options 55h :Create a pseudo-uncorrectable error with logging AAh :Created a flagged error without logging Other value : Reserved Sector Count Current The number of continuous sectors to be transferred low order, bits (7:0).
12 Timings The timing of BSY and DRQ in Status Register are shown in Table 180Table 181. The other timings are described in HDS7210xxCLA3yz / HUA7220xxCLA33z / HCS5C10xxCLA382 / HCS7210xxCLA3y2 / HDS5C10xxCLA382 Final Functional Specification.
FUNCTION DMA Data Transfer Command INTERVAL START Device Busy after a Register FIS to issue a command The hosts sets proper values in the registers and sends a Register FIS STOP The host sets BSY(=1) to the Status Register. TIMEOUT 400 ns Table 181 Timeout Values --Continued-Command category is referred to 10, "Command Protocol" on page 100. The abbreviations "ns", "us", "ms" and "sec" mean nanoseconds, microseconds, milliseconds and seconds, respectively.
Index Security Erase Unit (F4h) ........................................ 181 Security Freeze Lock (F5h) ...................................... 183 Security Set Password (F1h) .................................... 184 Security Unlock (F2h) .............................................. 186 Seek (7xh) ......................................................... 188, 189 Set Features (Efh) .................................................... 190 Set Max (F9h) Set Max Freeze Lock (Feature = 04h) .................
Reassign Function .......................................................... 70 Register Alternate Status Register .......................................... 48 Command register ...................................................... 48 Cylinder High Register .............................................. 48 Cylinder Low Register ................................................ 49 Data Register .............................................................. 49 Device Control Register..........................