On Tue, 12 Mar 2002 21:34:28 +0100 Vojtech Pavlik wrote: > On Tue, Mar 12, 2002 at 09:35:05PM +0100, Sebastian Droege wrote: > > On Tue, 12 Mar 2002 21:00:35 +0100 > > Vojtech Pavlik wrote: > > > > > On Tue, Mar 12, 2002 at 12:00:24PM +0100, Martin Dalecki wrote: > > > > Hello Vojtech. > > > > > > > > I have noticed that the ide-timings.h and ide_modules.h are running > > > > much in aprallel in the purpose they serve. Are the any > > > > chances you could dare to care about propagating the > > > > fairly nice ide-timings.h stuff in favour of > > > > ide_modules.h more. > > > > > > > > BTW.> I think some stuff from ide-timings.h just belongs > > > > as generic functions intro ide.c, and right now there is > > > > nobody who you need to work from behind ;-). > > > > > > > > So please feel free to do the changes you apparently desired > > > > to do a long time ago... > > > > > > Oh, by the way, here goes the PIIX rewrite ... unlike the AMD one, this > > > is completely untested, and may not work at all - I only have the > > > datasheets at hand, no PIIX hardware. > > > > > > Differences from the previous PIIX driver: > > > > > > * 82451NX MIOC isn't supported anymore. It's not an ATA controller, anyway ;) > > > * 82371FB_0 PIIX ISA bridge isn't an ATA controller either. > > > * 82801CA ICH3 support added. Only ICH3-M is supported by the original driver. > > > * 82371MX MPIIX is not supported anymore. Too weird beast and doesn't do > > > DMA anyway, better handled by the generic PCI ATA routines. > > > > > > * Cleaner, converted to ide-timing.[ch] > > > > > > * May not work. ;) > > But does work with an Intel Corp. 82371AB PIIX4 IDE (rev 01) IDE controller... > > Thanks a lot for the testing! > > > I'll do some more stress testing but it boots, works in DMA and the data transfer rates haven't decreased ;) > > *playingwithhdparmanddbench* ;) > > If you can (in addition to the benchmark numbers) also send me the > output of 'cat /proc/ide/piix' and 'dmesg' and 'lspci -vvxxx'both my and > the original version ... that'd help a lot too. OK here they are ;) The only thing which confuses me is the line PCI clock: 33333MHz in /proc/ide/piix It should be 33 MHz I think I think the mistake is in line 199 of piix.c: piix_print("PCI clock: %dMHz", piix_clock); has to be piix_print("PCI clock: %dMHz", piix_clock / 1000); or the whole piix_clock stuff after line 432 is wrong BTW: in /proc/ide/piix are sometimes wrong values for transfer rate and cycle time... I think they can't get negative ;) Benchmark results come tomorrow Bye