Re: INTEL 845G Chipset IDE Quandry

Anthony Spinillo
2002-06-03T23:35:38Z

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

I just tried Andre's patch. I applied it on top of 2.4.19pre9-ac3.(Patch attached below.) It pulled me up to DMA. I tested by setting hdparm -d1 /dev/hdc
(my DVD drive) and played a DVD with Xine. It played great!

I do not have an IDE hard drive to test, since my HD is SCSI.

I will try Vojtech's patch next, and report in.

Thanks for all your help! (Andre, Vojtech, JeffN and everyone else.)

Tony

--
Get your free email from www.linuxmail.org

Powered by Outblaze

[-- Attachment #2: andre.patch --]
[-- Type: application/octet-stream, Size: 3611 bytes --]

diff -urN linux-2.4.19-p9-ac3-pristine/drivers/ide/ide-pci.c
linux-2.4.19-p9-ac3/drivers/ide/ide-pci.c
--- linux-2.4.19-p9-ac3-pristine/drivers/ide/ide-pci.c Sun Jun 2
16:49:06 2002
+++ linux-2.4.19-p9-ac3/drivers/ide/ide-pci.c Sun Jun 2 20:52:49 2002
@@ -47,6 +47,7 @@
#define DEVID_PIIX4U5 ((ide_pci_devid_t){PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_10})
#define DEVID_PIIX4U6 ((ide_pci_devid_t){PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_11})
#define DEVID_PIIX4U7 ((ide_pci_devid_t){PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801E_11})
+#define DEVID_PIIX4U8 ((ide_pci_devid_t){PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_11})
#define DEVID_VIA_IDE ((ide_pci_devid_t){PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C561})
#define DEVID_MR_IDE ((ide_pci_devid_t){PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C576_1})
#define DEVID_VP_IDE ((ide_pci_devid_t){PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1})
@@ -438,6 +439,7 @@
{DEVID_PIIX4U5, "PIIX4", FIXUP_PIIX, PCI_PIIX, ATA66_PIIX, INIT_PIIX, NULL, {{0x41,0x80,0x80},{0x43,0x80,0x80}}, ON_BOARD, 0 },
{DEVID_PIIX4U6, "PIIX4", FIXUP_PIIX, PCI_PIIX, ATA66_PIIX, INIT_PIIX, NULL, {{0x41,0x80,0x80},{0x43,0x80,0x80}}, ON_BOARD, 0 },
{DEVID_PIIX4U7, "PIIX4", FIXUP_PIIX, PCI_PIIX, ATA66_PIIX, INIT_PIIX, NULL, {{0x41,0x80,0x80},{0x43,0x80,0x80}}, ON_BOARD, 0 },
+ {DEVID_PIIX4U8, "PIIX4", FIXUP_PIIX, PCI_PIIX, ATA66_PIIX, INIT_PIIX, NULL, {{0x41,0x80,0x80},{0x43,0x80,0x80}}, ON_BOARD, 0 },
{DEVID_VIA_IDE, "VIA_IDE", NULL, NULL, NULL, NULL, NULL, {{0x00,0x00,0x00},{0x00,0x00,0x00}}, ON_BOARD, 0 },
{DEVID_MR_IDE, "VP_IDE", NULL, PCI_VIA82CXXX, ATA66_VIA82CXXX,INIT_VIA82CXXX, DMA_VIA82CXXX, {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, ON_BOARD, 0 },
{DEVID_VP_IDE, "VP_IDE", NULL, PCI_VIA82CXXX, ATA66_VIA82CXXX,INIT_VIA82CXXX, DMA_VIA82CXXX, {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, ON_BOARD, 0 },
diff -urN linux-2.4.19-p9-ac3-pristine/drivers/ide/piix.c
linux-2.4.19-p9-ac3/drivers/ide/piix.c
--- linux-2.4.19-p9-ac3-pristine/drivers/ide/piix.c Sun Jun 2
16:49:06 2002
+++ linux-2.4.19-p9-ac3/drivers/ide/piix.c Sun Jun 2 20:36:23 2002
@@ -94,6 +94,7 @@
case PCI_DEVICE_ID_INTEL_82801CA_10:
case PCI_DEVICE_ID_INTEL_82801CA_11:
case PCI_DEVICE_ID_INTEL_82801E_11:
+ case PCI_DEVICE_ID_INTEL_82801DB_11:
p += sprintf(p, "Intel PIIX4 Ultra 100 Chipset.\n");
break;
case PCI_DEVICE_ID_INTEL_82372FB_1:
@@ -216,6 +217,7 @@
case PCI_DEVICE_ID_INTEL_82801CA_10:
case PCI_DEVICE_ID_INTEL_82801CA_11:
case PCI_DEVICE_ID_INTEL_82801E_11:
+ case PCI_DEVICE_ID_INTEL_82801DB_11:
mode |= 0x03;
break;
case PCI_DEVICE_ID_INTEL_82801AA_1:
@@ -534,6 +536,7 @@
case PCI_DEVICE_ID_INTEL_82801CA_10:
case PCI_DEVICE_ID_INTEL_82801CA_11:
case PCI_DEVICE_ID_INTEL_82801E_11:
+ case PCI_DEVICE_ID_INTEL_82801DB_11:
{
unsigned int extra = 0;
pci_read_config_dword(dev, 0x54, &extra);
diff -urN linux-2.4.19-p9-ac3-pristine/include/linux/pci_ids.h
linux-2.4.19-p9-ac3/include/linux/pci_ids.h
--- linux-2.4.19-p9-ac3-pristine/include/linux/pci_ids.h Sun
Jun 2 16:49:17 2002
+++ linux-2.4.19-p9-ac3/include/linux/pci_ids.h Sun Jun 2 20:53:53
2002
@@ -1685,6 +1685,7 @@
#define PCI_DEVICE_ID_INTEL_82801CA_10 0x248a
#define PCI_DEVICE_ID_INTEL_82801CA_11 0x248b
#define PCI_DEVICE_ID_INTEL_82801CA_12 0x248c
+#define PCI_DEVICE_ID_INTEL_82801DB_11 0x24cb
#define PCI_DEVICE_ID_INTEL_80310 0x530d
#define PCI_DEVICE_ID_INTEL_82810_MC1 0x7120
#define PCI_DEVICE_ID_INTEL_82810_IG1 0x7121