ATAPI: MEDIUM ERROR - UNRECOVERED READ ERROR
Posted: Mon Feb 14, 2011 3:03 pm
Hi guys !
Recently, I have been trying to enable PCI DMA for ATAPI drives. my DMA code works well on ATA, and PIO works well on ATA & ATAPI. but when i try to use DMA Protocol with ATAPI, it ends with an error. Status Byte 0x1F7 is 0x51, and Error Byte is 0x50, this should mean that a SCSI error have happened, and this error is one of these:
MEDIUM ERROR - UNRECOVERED READ ERROR
MEDIUM ERROR - ADDRESS MARK NOT FOUND FOR ID FIELD (What do these heavy words mean????)
MEDIUM ERROR - RECORD NOT FOUND
MEDIUM ERROR - LOGICAL BLOCK ADDRESS OUT OF RANGE
I use the same 6-word packet and send it, then do a PIO transfer, and it works well.. why ATAPI DMA is problematic??
Any one has any idea plz?? I followed up these well done articles on the wiki but really the problem still exists... any help would be appreciated...
Thanks in advance and regards!
Recently, I have been trying to enable PCI DMA for ATAPI drives. my DMA code works well on ATA, and PIO works well on ATA & ATAPI. but when i try to use DMA Protocol with ATAPI, it ends with an error. Status Byte 0x1F7 is 0x51, and Error Byte is 0x50, this should mean that a SCSI error have happened, and this error is one of these:
MEDIUM ERROR - UNRECOVERED READ ERROR
MEDIUM ERROR - ADDRESS MARK NOT FOUND FOR ID FIELD (What do these heavy words mean????)
MEDIUM ERROR - RECORD NOT FOUND
MEDIUM ERROR - LOGICAL BLOCK ADDRESS OUT OF RANGE
I use the same 6-word packet and send it, then do a PIO transfer, and it works well.. why ATAPI DMA is problematic??
Any one has any idea plz?? I followed up these well done articles on the wiki but really the problem still exists... any help would be appreciated...
Thanks in advance and regards!