Re: [Cooker] nForce2 IDE support [patch included]
Viestissä Lauantai 18. Tammikuuta 2003 16:51, Thomas Backlund kirjoitti: 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/ There is some features missing in this patch that I haven't fixed yet... It does not recognize the chipsets (or is it the cable?) support for UDMA/133, so it will default to UDMA/33 wich means it's limiting the system performance... Booting with ide0=udma66 switches the support to UDMA/100 !! so you get some more speed out of it: /dev/hda: Timing buffer-cache reads: 128 MB in 0.32 seconds =412.91 MB/sec Timing buffered disk reads: 64 MB in 1.34 seconds = 47.76 MB/sec Another limit of this patch is the fact that it uses nforce1 support as base, wich means AFAIK it wont go over UDMA/100... I can issue the command 'hdparm -X70 /dev/hda' to tell it to go to UDMA/133, and hdparm reports OK but the system stays at UDMA/100. I'll try to fix theese, and make a better patch, if no-one beats me to it... --- 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 ... *
Re: [Cooker] nForce2 IDE support [patch included]
Thomas Backlund [EMAIL PROTECTED] writes: I'll try to fix theese, and make a better patch, if no-one beats me to it... i have included the ide from ac branch see bug (patch attached there) : https://qa.mandrakesoft.com/show_bug.cgi?id=880
[Cooker] nForce2 IDE support [patch included]
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.0 + +++ linux.21pre3-ac4/drivers/ide/pci/nvidia.c 2003-01-06 15:38:25.0 + @@ -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.0 + +++ linux.21pre3-ac4/drivers/ide/pci/nvidia.h 2003-01-12 01:32:36.0 + @@ -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.0 + +++ linux.21pre3-ac4/include/linux/pci_ids.h 2003-01-11 23:20:03.0 + @@ -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
Re: [Cooker] nForce2 IDE support [patch included]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 18 Jan 2003 2:51 pm, Thomas Backlund wrote: 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 ... * Got to 87% on the download...now i just get 500 server error-cant connect :( - -- os[Linux 2.4.19-16mdk - Mandrake Linux release 9.0 (dolphin) for i586] up[ 22 hours, 53 minutes] Qt: 3.1.0 KDE: 3.1.0 (RC6) To add insult to injury. -- Phaedrus -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+KYSZt3yCLmAxGjYRAqIgAKCSHXzVZ309BDCca7fJEIITdDJecQCfRyp6 F3gPvf67/mxYQwrsmI7tAMw= =Yvbv -END PGP SIGNATURE-