Re: [PATCH 3/5] sata_dwc: Add support ATAPI transfer

From: Sergei Shtylyov
Date: Thu May 10 2012 - 06:53:19 EST


Hello.

On 10-05-2012 14:12, Thang Q. Nguyen wrote:

Thanks for quick response,
I do not mean user use fdisk command on CD/DVD. However, whenever using 'fdisk
-l' command, the system will access each first sector on each SCSI device
(including CD/DVD on it) and the DMA transfer on blank CD/DVD will not return
any data.

Shouldn't the drive return error status in this case?

The timeout is detected and error handler will be called.

But user may also run 'hdparm -t' or even 'dd' with offset on a drive. Have you tried your workaround with those?

Using PIO on some first sectors will avoid the issue.

Regards,
Thang Nguyen -

MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/