linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issues with SIS 964 chipset on SATA
@ 2005-02-07 19:02 Gary Poppitz
  2005-02-07 21:44 ` Jeff Garzik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Gary Poppitz @ 2005-02-07 19:02 UTC (permalink / raw)
  To: linux-ide

We tracked down a problem with the 964 chipset with a 0x180 ID code 
that may save someone on the list some time.

The chip will only transfer multiples of 4 bytes. Anything else will 
cause it to hang.

Our specific case occurred in cdrom.c in cdrom_get_disc_info.

There the code asks for 2 bytes to get the data length and in our case, 
got a value of 34 bytes to read.

Both transfers would fail if not rounded up.


The next part that is interesting is that this error caused the process 
to hang. There was an assertion failure in ata_qc_complete for 
qc->flags & ATA_QUEUE_ACTIVE.

Again, in our case, when the 2 byte transfer failed, the attempt at the 
next read would hang the process when it attempted to queue the 
command. There is wait for lock which never gets satisfied.

It may be that this SIS error has uncovered an issue in the Linux code. 
If anyone who understands the command queueing process would like more 
trace data, I will try to provide it.

Gary Poppitz
Iomega


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

end of thread, other threads:[~2005-02-17 18:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-07 19:02 Issues with SIS 964 chipset on SATA Gary Poppitz
2005-02-07 21:44 ` Jeff Garzik
2005-02-17  8:26 ` Jeff Garzik
2005-02-17  8:38   ` Jens Axboe
2005-02-17 13:26     ` Mark Lord
2005-02-17 18:36       ` Jeff Garzik
2005-02-17 18:38     ` Jeff Garzik
2005-02-17  8:37 ` ATAPI issues (was Re: Issues with SIS 964 chipset on SATA) Jeff Garzik

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