linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ata_std_qc_defer not good enough for FIS-based switching ?
@ 2008-04-28 21:06 Mark Lord
  2008-04-28 22:08 ` Mark Lord
  0 siblings, 1 reply; 17+ messages in thread
From: Mark Lord @ 2008-04-28 21:06 UTC (permalink / raw)
  To: Tejun Heo, Jeff Garzik, IDE/ATA development list, Alan Cox

Tejun,

I've been trying to track down interrupt timeouts here with sata_mv,
and I think I've found the problem

With a Marvell 7042 chip and a port-multiplier, the driver selects
.qc_defer = ata_std_qc_defer, which is supposed to be correct for FIS-based switching.

But.. There is a mix of NCQ and non-NCQ drives plugged into that PM,
and ata_std_qc_defer() seems happy to mix things up by issuing NCQ commands
to some ports while simultaneously sending non-NCQ commands to other ports.

Needless to say, this confuses the heck out of the hardware,
which cannot tolerate non-NCQ commands in FIS-based switching mode,
or NCQ commands in non FIS-based switching mode.

Are there controllers which *can* handle such a mix (ahci, sil24 ?)

So it looks like a I need a .qc_defer() function which examines all links
from the common host port for activity, and then asks for command deferral
when the new command has a different protocol than those that are outstanding.

Weird that none of the other LLDs need this.  Or do they?

Cheers

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

end of thread, other threads:[~2008-05-15  7:12 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 21:06 ata_std_qc_defer not good enough for FIS-based switching ? Mark Lord
2008-04-28 22:08 ` Mark Lord
2008-04-28 23:11   ` Tejun Heo
2008-04-28 23:42     ` Mark Lord
2008-04-29  1:18       ` Tejun Heo
2008-04-29  2:26         ` Mark Lord
2008-05-14 14:11           ` Tejun Heo
2008-05-14 14:45             ` Mark Lord
2008-05-14 14:53               ` Mark Lord
2008-05-14 15:50                 ` Mark Lord
2008-05-14 15:59                   ` Mark Lord
2008-05-15  7:12                     ` Tejun Heo
2008-05-15  6:51                 ` Tejun Heo
2008-04-29 17:09     ` Mark Lord
2008-04-29 17:17       ` Mark Lord
2008-04-30  9:38       ` Tejun Heo
2008-04-30 14:02       ` Mark Lord

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).