* [PATCH] SATA support for Intel ICH7 - 2.6.10
@ 2004-12-30 0:13 Gaston, Jason D
2004-12-30 1:19 ` Ulrich Drepper
0 siblings, 1 reply; 4+ messages in thread
From: Gaston, Jason D @ 2004-12-30 0:13 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
Jeff,
This patch adds the Intel ICH7 DID's to the ata_piix SATA driver, ahci
SATA AHCI driver and quirks.c for ICH7 SATA support. If acceptable,
please apply.
Thanks,
Jason Gaston
--- linux-2.6.10/drivers/pci/quirks.c.orig 2004-12-24
13:33:49.000000000 -0800
+++ linux-2.6.10/drivers/pci/quirks.c 2004-12-28 07:07:38.000000000
-0800
@@ -1162,6 +1162,10 @@
case 0x2653:
ich = 6;
break;
+ case 0x27c0:
+ case 0x27c4:
+ ich = 7;
+ break;
default:
/* we do not handle this PCI device */
return;
@@ -1181,7 +1185,7 @@
else
return; /* not in combined mode
*/
} else {
- WARN_ON(ich != 6);
+ WARN_ON((ich != 6) || (ich != 7));
tmp &= 0x3; /* interesting bits 1:0 */
if (tmp & (1 << 0))
comb = (1 << 2); /* PATA port 0, SATA
port 1 */
--- linux-2.6.10/drivers/scsi/ata_piix.c.orig 2004-12-24
13:35:50.000000000 -0800
+++ linux-2.6.10/drivers/scsi/ata_piix.c 2004-12-28
07:07:38.000000000 -0800
@@ -60,6 +60,7 @@
piix4_pata = 2,
ich6_sata = 3,
ich6_sata_rm = 4,
+ ich7_sata = 5,
};
static int piix_init_one (struct pci_dev *pdev,
@@ -90,6 +91,8 @@
{ 0x8086, 0x2651, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich6_sata },
{ 0x8086, 0x2652, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich6_sata_rm },
{ 0x8086, 0x2653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich6_sata_rm },
+ { 0x8086, 0x27c0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata },
+ { 0x8086, 0x27c4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata },
{ } /* terminate list */
};
@@ -236,6 +239,18 @@
.udma_mask = 0x7f, /* udma0-6 */
.port_ops = &piix_sata_ops,
},
+
+ /* ich7_sata */
+ {
+ .sht = &piix_sht,
+ .host_flags = ATA_FLAG_SATA | ATA_FLAG_SRST |
+ PIIX_FLAG_COMBINED |
PIIX_FLAG_CHECKINTR |
+ ATA_FLAG_SLAVE_POSS | PIIX_FLAG_AHCI,
+ .pio_mask = 0x1f, /* pio0-4 */
+ .mwdma_mask = 0x07, /* mwdma0-2 */
+ .udma_mask = 0x7f, /* udma0-6 */
+ .port_ops = &piix_sata_ops,
+ },
};
static struct pci_bits piix_enable_bits[] = {
--- linux-2.6.10/drivers/scsi/ahci.c.orig 2004-12-24
13:34:26.000000000 -0800
+++ linux-2.6.10/drivers/scsi/ahci.c 2004-12-28 07:07:38.000000000
-0800
@@ -239,9 +239,13 @@
static struct pci_device_id ahci_pci_tbl[] = {
{ PCI_VENDOR_ID_INTEL, 0x2652, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- board_ahci },
+ board_ahci }, /* ICH6 */
{ PCI_VENDOR_ID_INTEL, 0x2653, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- board_ahci },
+ board_ahci }, /* ICH6M */
+ { PCI_VENDOR_ID_INTEL, 0x27c1, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+ board_ahci }, /* ICH7 */
+ { PCI_VENDOR_ID_INTEL, 0x27c5, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+ board_ahci }, /* ICH7M */
{ } /* terminate list */
};
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] SATA support for Intel ICH7 - 2.6.10
2004-12-30 0:13 [PATCH] SATA support for Intel ICH7 - 2.6.10 Gaston, Jason D
@ 2004-12-30 1:19 ` Ulrich Drepper
0 siblings, 0 replies; 4+ messages in thread
From: Ulrich Drepper @ 2004-12-30 1:19 UTC (permalink / raw)
To: Gaston, Jason D; +Cc: Jeff Garzik, linux-kernel
On Wed, 29 Dec 2004 16:13:41 -0800, Gaston, Jason D
<jason.d.gaston@intel.com> wrote:
> } else {
> - WARN_ON(ich != 6);
> + WARN_ON((ich != 6) || (ich != 7));
This cannot be right. Every number is either != 6 or != 7. You want &&.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] SATA support for Intel ICH7 - 2.6.10
@ 2004-12-30 2:11 Gaston, Jason D
2004-12-30 4:57 ` Sami Farin
0 siblings, 1 reply; 4+ messages in thread
From: Gaston, Jason D @ 2004-12-30 2:11 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Jeff Garzik, linux-kernel
Thanks Ulrich!
I will edit and resubmit the patch with &&.
Jason
>-----Original Message-----
>From: Ulrich Drepper [mailto:drepper@gmail.com]
>Sent: Wednesday, December 29, 2004 5:19 PM
>To: Gaston, Jason D
>Cc: Jeff Garzik; linux-kernel@vger.kernel.org
>Subject: Re: [PATCH] SATA support for Intel ICH7 - 2.6.10
>
>On Wed, 29 Dec 2004 16:13:41 -0800, Gaston, Jason D
><jason.d.gaston@intel.com> wrote:
>> } else {
>> - WARN_ON(ich != 6);
>> + WARN_ON((ich != 6) || (ich != 7));
>
>This cannot be right. Every number is either != 6 or != 7. You want
&&.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] SATA support for Intel ICH7 - 2.6.10
2004-12-30 2:11 Gaston, Jason D
@ 2004-12-30 4:57 ` Sami Farin
0 siblings, 0 replies; 4+ messages in thread
From: Sami Farin @ 2004-12-30 4:57 UTC (permalink / raw)
To: linux-kernel
On Wed, Dec 29, 2004 at 06:11:20PM -0800, Gaston, Jason D wrote:
> Thanks Ulrich!
>
> I will edit and resubmit the patch with &&.
>
> Jason
also, patches have been wordwrapped:
patch: **** malformed patch at line 104: PCI_ANY_ID, 0, 0, 19},
(J in vim 'fixed' them, but anyways, would be nice if they
worked 'out-of-the-mailbox' :) ).
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-30 4:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-30 0:13 [PATCH] SATA support for Intel ICH7 - 2.6.10 Gaston, Jason D
2004-12-30 1:19 ` Ulrich Drepper
-- strict thread matches above, loose matches on Subject: below --
2004-12-30 2:11 Gaston, Jason D
2004-12-30 4:57 ` Sami Farin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox