how does ATA or AHCI driver handle for CRC error reported by disk drive


how ata or ahci driver handle crc error reported disk drive when following cases occurred?
1. crc error occurred during 1 or more udma bursts, device reports error address(lba) first error occurred.
2. crc error occurred during 1 or more udma bursts, device reports error address(lba) starting address of command regardless first error occurred.

besides, if device detects crc error has occurred before data transfer command completed, suggest device complete transfer anyway or abort command (stop data transfer immediately)? if choose complete data transfer whatever crc error detected during udma write bursts, there problem if write corrupted data media?

-- ming-jiun

your understanding not quite right. either of data committed permanent storage or none of it.  if there crc error in data fis, none of data shall written command. 

 

there no way report part of write succeeded , part of write failed in ahci.  driver cannot find out the error at, , has no way tell file system part of the transfer succeeded or failed. the write must atomic.  of succeeded, or of failed.  if failed, no data on disk shall change.

 

nathan obr

storage driver developer

microsoft corporation

 



Archived Forums SN-SZ  >  Storage Platform – ATA



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........