K6610170
Rev.2
Dec 22, 2004
- 63 -
7.5.7. Flush Cache [E7h]
Task
File
Registers
7 6 5 4 3 2 1 0
Command E7h
LBA High
XX
LBA Mid
XX
LBA Low
XX
Device/Head
X L X
DRV
X X X X
Sector Count
XX
Features
XX
The FLUSH CACHE command is to check the device if write cache data were written on the disk or not.
BSY is set until all write cache data are written on the disk or a write error is occurred. Maximum time to
write the cache data on the disk is 30 seconds. In case of Write Fault, the command is aborted and Status
Register bit 5 DWF (Device Write Fault) is set to one. For Device/Head Register bit 6 L=0 (CHS mode), a
logical CHS address, which had the first error during write cache, is reported on Task File Register. For
Device/Head Register bit 6 L=1 (LBA mode), a LBA address, which had the first error during write cache, is
reported on Task File Register.
7.5.8. Flush Cache EXT [EAh]
Task
File
Register
7 6 5 4 3 2 1 0
Command EAh
Feature Previous
setting
XX
Current
setting
XX
LBA High
Previous setting
XX
Current
setting
XX
LBA Mid
Previous setting
XX
Current
setting
XX
LBA Low
Previous setting
XX
Current
setting
XX
Sector Count
Previous setting
XX
Current
setting
XX
Device
X X X
DEV
X X X X
The FLUSH CACHE EXT command to used by the host to request the device to flush the write cache. If
there is data in the write cache, that data is written to the media. The BSY bit remains set to one until all data
has been successfully written or an error occurs. Maximum time to write the cache data on the disk is 30
seconds. An unrecoverable error encountered while writing data results in the termination of the command
and the Command Block registers contain the 48-bit address of the sector where the first unrecoverable
error occurred.