Re: sata_svw data corruption, strange problems

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <benh@...>
Cc: Pavel Machek <pavel@...>, Andreas Schwab <schwab@...>, kernel list <linux-kernel@...>, <jgarzik@...>, IDE/ATA development list <linux-ide@...>, Trivial patch monkey <trivial@...>
Date: Monday, June 23, 2008 - 5:48 am

Benjamin Herrenschmidt wrote:

Well, it's better than the original which kind of directed the other
way.  :-)


It's how the standard says it should be programmed.  Please take a look
at section 3 of the following document.

http://www.centrillium-it.com/Projects/idems100.pdf

It's a non-issue for PATA ones as the host is responsible for running
the clock and transferring data after the drive indicated readiness, so
the worst that can happen by starting the dma engine after issuing the
command is the drive waiting in ready state.

For SATA, it should work the same.  The host should hold the transfer by
not acking the data transfer request (or prefetch the data if it feels
smart and brave).  So, it's something sata_svw screwed up.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sata_svw data corruption, strange problems, Pavel Machek, (Tue Jun 17, 5:36 am)
Re: sata_svw data corruption, strange problems, Tejun Heo, (Sun Jun 22, 8:37 pm)
Re: sata_svw data corruption, strange problems, Pavel Machek, (Mon Jun 23, 4:20 am)
Re: sata_svw data corruption, strange problems, Andreas Schwab, (Mon Jun 23, 4:39 am)
Re: sata_svw data corruption, strange problems, Pavel Machek, (Mon Jun 23, 4:53 am)
Re: sata_svw data corruption, strange problems, Tejun Heo, (Mon Jun 23, 4:56 am)
Re: sata_svw data corruption, strange problems, Pavel Machek, (Mon Jun 23, 5:01 am)
Re: sata_svw data corruption, strange problems, Jeff Garzik, (Fri Jun 27, 2:41 am)
Re: sata_svw data corruption, strange problems, Benjamin Herrenschmidt, (Mon Jun 23, 5:04 am)
Re: sata_svw data corruption, strange problems, Tejun Heo, (Mon Jun 23, 5:48 am)
Re: sata_svw data corruption, strange problems, Alan Cox, (Mon Jun 23, 5:42 am)
Re: sata_svw data corruption, strange problems, Tejun Heo, (Mon Jun 23, 9:05 am)
Re: sata_svw data corruption, strange problems, Benjamin Herrenschmidt, (Mon Jun 23, 6:23 am)
Re: sata_svw data corruption, strange problems, Pavel Machek, (Mon Jun 23, 5:26 am)
Re: sata_svw data corruption, strange problems, Tejun Heo, (Mon Jun 23, 4:22 am)