linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A note on libata passthru patch
@ 2005-08-21 21:37 Jeff Garzik
  2005-08-21 21:44 ` Mark Lord
  2005-08-22 12:26 ` John W. Linville
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Garzik @ 2005-08-21 21:37 UTC (permalink / raw)
  To: linux-ide@vger.kernel.org; +Cc: Mark Lord


Something that Alan unintentionally reminded me, about the libata 
passthru patch:  Some controllers require certain ATA commands to be 
synchronized at the host-wide level.

An example is SET FEATURES - XFER MODE on Promise controllers.  The 
controller snoops the taskfile for the xfer mode, and uses that info to 
program certain timing-related registers.  If you issue a SET FEATURES - 
XFER MODE command on one port while doing data xfer on another port, 
then data corruption can occur.

I'm pretty sure at least one other controller does similar taskfile 
snooping.

Currently probing is 100% synchronous, so our internal use of SET 
FEATURES - XFER MODE is safe.  But when you turn on ATA passthru, it is 
not safe.

This is another issue that needs fixing before we can merge the ATA 
passthru feature, since the consequences can be serious.

	Jeff




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-22 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-21 21:37 A note on libata passthru patch Jeff Garzik
2005-08-21 21:44 ` Mark Lord
2005-08-21 21:46   ` Jeff Garzik
2005-08-22 12:26 ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).