public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 2.4] ata_piix on ich6r in RAID mode
@ 2005-01-28 17:54 Martins Krikis
  2005-01-29  1:30 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Martins Krikis @ 2005-01-28 17:54 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-kernel, mkrikis

Jeff,

You might have come across this hack before, but I figured I should
remind you that it is still very useful for ata_piix...

Without this patch, if the BIOS of an ICH6R box has IDE set to "RAID"
mode then ata_piix will not find any SATA disks because it incorrectly
tries the legacy mode. With the patch all 4 SATA drives become visible.
I don't think it would break any other vendor's SATA, but you can be
the judge of that. If so, perhaps we can restrict the test some more
by checking vendor/device IDs.

  Martins Krikis
  Storage Components Division
  Intel Massachusetts



--- linux-2.4.29/drivers/scsi/libata-core.c	2005-01-28 12:07:56.000000000 -0500
+++ linux-2.4.29-iswraid/drivers/scsi/libata-core.c	2005-01-28 12:14:43.000000000 -0500
@@ -3605,6 +3605,9 @@ int ata_pci_init_one (struct pci_dev *pd
 			legacy_mode = (1 << 3);
 	}
 
+	if ((pdev->class >> 8) == PCI_CLASS_STORAGE_RAID)
+		legacy_mode = 0;
+
 	/* FIXME... */
 	if ((!legacy_mode) && (n_ports > 1)) {
 		printk(KERN_ERR "ata: BUG: native mode, n_ports > 1\n");




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

end of thread, other threads:[~2005-01-29  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28 17:54 [RFC PATCH 2.4] ata_piix on ich6r in RAID mode Martins Krikis
2005-01-29  1:30 ` Jeff Garzik
2005-01-29  2:54   ` Martins Krikis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox