since the nforce2 ide wont work with latest cooker kernel:
kernel-2.4.21.0.pre3.1mdk-1-1mdk
I took Alan Cox ac4 patch and removed all but nforce2
patch and applied it to latest MDK kernel (above)...
(renamed it to: kernel-2.4.21.0.pre3.1TmB-1-1mdk)
It works great:
here is the hd speed with the MDK 9.0 kernel (on full Cooker):
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.33 seconds =387.88 MB/sec
Timing buffered disk reads: 64 MB in 19.11 seconds = 3.35 MB/sec
and here is the speed with my patched kernel (on full Cooker):
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.32 seconds =400.00 MB/sec
Timing buffered disk reads: 64 MB in 2.11 seconds = 30.33 MB/sec
So the patch is included with this mail.
And if you dont want to apply the patch yourself, go to:
http://www.iki.fi/~tmb/Cooker/
where you wil find:
- this patch
- precompiled 'up' kernel
- the kernel SRPM
To get the 3c920 nic on the nforce2 to work,
se my other mail......
-----
Thomas
******
[EMAIL PROTECTED]
www.iki.fi/~tmb/
******
* Theory is when you now everything, but nothing works...
* Reality is when everything works, but nobody nows why...
* Here Theory and Reality is combined...
* Nothing works, and Nobody nows why ...
*
--- linux.21pre3/drivers/ide/pci/nvidia.c 2003-01-07 14:03:09.000000000 +0000
+++ linux.21pre3-ac4/drivers/ide/pci/nvidia.c 2003-01-06 15:38:25.000000000 +0000
@@ -77,6 +77,7 @@
switch(HWIF(drive)->pci_dev->device) {
case PCI_DEVICE_ID_NVIDIA_NFORCE_IDE:
+ case PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE:
mode = 3;
break;
default:
@@ -286,6 +287,7 @@
switch(dev->device) {
case PCI_DEVICE_ID_NVIDIA_NFORCE_IDE:
+ case PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE:
ata66 = (hwif->channel) ?
cable_80_pin[1] :
cable_80_pin[0];
@@ -341,6 +343,7 @@
static struct pci_device_id nforce_pci_tbl[] __devinitdata = {
{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
{ 0, },
};
--- linux.21pre3/drivers/ide/pci/nvidia.h 2003-01-07 14:03:09.000000000 +0000
+++ linux.21pre3-ac4/drivers/ide/pci/nvidia.h 2003-01-12 01:32:36.000000000 +0000
@@ -43,6 +43,21 @@
enablebits: {{0x50,0x01,0x01}, {0x50,0x02,0x02}},
bootable: ON_BOARD,
extra: 0,
+ },
+
+ {
+ vendor: PCI_VENDOR_ID_NVIDIA,
+ device: PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE,
+ name: "NFORCE2",
+ init_chipset: init_chipset_nforce,
+ init_iops: NULL,
+ init_hwif: init_hwif_nforce,
+ init_dma: init_dma_nforce,
+ channels: 2,
+ autodma: AUTODMA,
+ enablebits: {{0x50,0x01,0x01}, {0x50,0x02,0x02}},
+ bootable: ON_BOARD,
+ extra: 0,
}
};
--- linux.21pre3/include/linux/pci_ids.h 2003-01-07 14:03:09.000000000 +0000
+++ linux.21pre3-ac4/include/linux/pci_ids.h 2003-01-11 23:20:03.000000000 +0000
@@ -900,6 +900,7 @@
#define PCI_DEVICE_ID_NVIDIA_UTNT2 0x0029
#define PCI_DEVICE_ID_NVIDIA_VTNT2 0x002C
#define PCI_DEVICE_ID_NVIDIA_UVTNT2 0x002D
+#define PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE 0x0065
#define PCI_DEVICE_ID_NVIDIA_ITNT2 0x00A0
#define PCI_DEVICE_ID_NVIDIA_GEFORCE_SDR 0x0100
#define PCI_DEVICE_ID_NVIDIA_GEFORCE_DDR 0x0101