Samsung M8-DVR manual Write Caching

Page 39

could save most of the disk transaction time by eliminating the seek and rotational latency delays that prominently dominate the typical disk transaction.

Read Caching operates by continuing to fill its cache memory with adjacent data after transferring data requested by the host. Unlike a non-caching controller, the 88i6526 Interface Controller continues a read operation after the requested data has been transferred to the host system. This read operation terminates after a programmed amount of subsequent data has been read into the cache memory.

The cache memory consists of a sync DRAM buffer allocated to hold the data. It can be directly accessed by the host by means of read and write commands. The unit of data stored is the logical block, or a multiple of the 512- byte sector. Therefore, all accesses to cache memory must be in multiples of the sector size. The following commands empty the cache:

IDENTIFY DRIVE (ECh)

FORMAT TRACK (50h)

EXECUTE DRIVE DIAGNOSTIC (90h)

READ LONG (23h)

WRITE VERIFY (3Ch)

INITIALIZE DEVICE PARAMETER (91h)

SLEEP (99h, E6h)

STANDBY IMMEDIATELY (94h, E0h)

READ BUFFER (E4h)

WRITE BUFFER (E8h)

WRITE SAME (E9h)

5.5.2Write Caching

Write caching improves both single and multi-sector write performance by reducing delays introduced by rotational latency. When the drive writes a pattern of multiple sequential data, it stores the data to a cache buffer and immediately sends a COMMAND COMPLETE message to the host before it writes the data to the disk.

The data is then written collectively to the drive thereby minimizing the disk seeking operation. Data is held in cache no longer than the maximum seek time plus rotational latency. Host retries must be enabled for Write Caching to be active.

If the data request is random, the data of the previous command is written to the disk before COMMAND COMPLETE is posted for the current command. Read commands work similarly. The previous write is allowed to finish before the read operation starts.

If a defective sector is found during a write, the sector is automatically relocated before the write occurs. This ensures that cached data that already has been reported as written successfully gets written, even if an error should occur.

If the sector is not automatically relocated, the drive drops out of write caching and reports the error as an ID Not Found. If the write command is still active on the AT interface, the error is reported during that command. Otherwise, it is reported on the next command.

Spinpoint M8-DVR Disti Product Manual REV 2.0

33

Image 39 Contents
M8-DVR Product Manual Page Table of Contents Smart APM Read Fpdma Queued 60h Read Log Extended 2Fh Read Long 22h Table of Tables Scope User DefinitionManual Organization Reference SataIntroduction DescriptionKey Features Hardware Requirements Standards and RegulationsSpecification Summary SpecificationsPhysical dimensions Physical SpecificationsLogical Configurations Physical SpecificationsPerformance Specifications Rated Power consumptionPower consumption Power RequirementsRotational Shock Environmental SpecificationsEnvironmental Specifications Linear Shock 1/2 sine pulse1Measurement Position Annualized Failure Rate AFR Reliability SpecificationsSpace Requirements InstallationMounting Unpacking InstructionsOrientation Mounting DimensionsCable Connectors VentilationSata Connectivity Computer mainboard Serial ATA Management PowerHDD Power, Sata Interface, and Factory Jumper Connector SATA-Bus Interface ConnectorPin Locations on the Drive Pcba DC Power Connector and SATA-Bus Interface Cable Connections Drive InstallationDisk Drive Operation Head / Disk Assembly HDABase Casting Assembly DC Spindle Motor AssemblyCoverAssembly Air Filtration System Disk Stack AssemblyHead Stack Assembly Voice Coil Motor and Actuator Latch AssembliesDigital Signal Process and Interface Controller Drive ElectronicsDisk Controller DDR Buffer Control Block Host Interface Control BlockDisk Control Block Disk Ldpc Control BlockFrequency Synthesizer Automatic Gain Control Power Management Read/Write IC Time Base GeneratorAnalog to Digital Converter ADC and FIR Analog Anti-Aliasing Low Pass FilterServo System Read and Write OperationsRead Channel Firmware Features Write ChannelRead Caching Write Caching 6 APM Defect ManagementAutomatic Defect Allocation SmartSata Terminology Sata II InterfaceSpinpoint M8-DVR Disti Product Manual REV Signal Descriptions Physical Interface Signal SummaryRegisters When read When written2 I/O Register Address Control Block Register DescriptionsCommand Block Register Descriptions Device Register Ex F6h Command Register Ex F7hStatus Register Ex F7h Auto-Activate in DMA Setup FIS Sata II Feature SETDevice Activity Signal Staggered Spin-up Disable ControlPhy. Event Counters Sata Power Management Software Settings PreservationATA Command Descriptions Command TableCommand Code Parameters Smart Download Micro Code 92h Command DescriptionsCheck Power Mode E5h Device Configuration Overlay B1hDevice Configuration Identify data structure Word Content Format Track 50h Execute Device Diagnostics 90hDiagnostic Codes Flush Cache E7h, EAh extendedIdentify Device information Content Description=the fields reported in word 88 are valid EXT =Media Card Pass Through command feature set supported WWN Word Content DescriptionAutomatic Standby Timer Periods Idle E3hIdle Immediate E1h Read DMA C8h, 25h extended Initialize Device Parameters 91hNOP 00h Read Buffer E4hRead Multiple Command C4h, 29h extended Read Log Extended 2FhRead Long 22h Read Native Max Address F8h, 27h extended Read Sectors 20h, 24h extendedRead Verify Sectors 40h, 41h extended Security Erase Unit F4h Security Disable Password F6hRecalibrate 10h Security Erase Prepare F3hSecurity Freeze Lock F5h Security Set Password F1hSecurity Erase Unit Password Security Set Password data contentSeek 7xh Set Features EFhIdentifier Level Command result Security Unlock F2h12 Transfer Mode Values 11 Set Features Register DefinitionsSleep E6h Set Multiple Mode C6h13 Set Max Feature Register Values Set Max Address F9h, 37h extendedSmart B0h 14 Smart Feature Registers ValuesSmart disable operations D9h Smart enable/disable attribute auto-save D2hSmart execute off-line immediate D4h Smart enable operations D8h15 Device Smart Data Structure Smart read data D0hByte 16 Smart Attribute Status Flags Bit Name Description18 Off-line Data Collection Status Values 17 Smart Attribute Data List19 Self-test Execution Status Values Self-test execution status byteSmart read log sector D5h Smart return status DAhSmart write log sector D6h Write Fpdma Queued 61h Standby Immediate E0hWrite Buffer E8h Write DMA CAh, 35h extendedWrite Multiple Command C5h, 39h extended Write Long 32hWrite Sectors 30h, 34h extended Spinpoint M8-DVR Disti Product Manual REV Maintenance Maintenance PrecautionsGeneral Information HDD handling guide -Please handle HDD by side surfaces HDD handling guide Prevent Shocks Service and Repair