2.5.51 ide module problem
Quoted 4 lines · Alan Cox
Quoted 2 lines · Adam J. Richter
drivers/pci/pci.c +0
-0
[...]
Quoted 6 lines
Quoted 6 lines
diff -r -u linux-2.5.51/drivers/ide/Kconfig linux/drivers/ide/Kconfig
drivers/ide/Kconfig +0
-0@@ -199,7 +199,7 @@ depends on BLK_DEV_IDE
Quoted 6 lines
drivers/ide/Kconfig line 202
Quoted 3 lines
drivers/ide/Kconfig +1
-1config BLK_DEV_CMD640 - bool "CMD640 chipset bugfix/support" + tristate "CMD640 chipset bugfix/support"Please don't do this. You can't "load" the workaround meaningfully for this device
I'd appreciate some clarification on what trouble the generic
IDE driver can get into when the cmd640 code is not present. linux-2.5.52/Documentation/ide.txt says:
| For the CMD640, linux disables "IRQ unmasking" (hdparm -u1) on any | drive for which the "prefetch" mode of the CMD640 is turned on. | If "prefetch" is disabled (hdparm -p8), then "IRQ unmasking" can be | used again. | | For the CMD640, linux disables "32bit I/O" (hdparm -c1) on any drive | for which the "prefetch" mode of the CMD640 is turned off. | If "prefetch" is enabled (hdparm -p9), then "32bit I/O" can be | used again. | | The CMD640 is also used on some Vesa Local Bus (VLB) cards, and is *NOT* | automatically detected by Linux. For safe, reliable operation with such | interfaces, one *MUST* use the "ide0=cmd640_vlb" kernel option. | | Use of the "serialize" option is no longer necessary.
As I understand it, both IRQ unmasking and 32 bit I/O are off
by default. So, while a system could get into trouble by enabling those options on a cmd640 system before the cmd640 module is loaded, it sounds like it should be feasible to have IDE initially come up without the cmd640 workarounds at a stage where the user level code knows not to enable DMA or 32-bit PIO (for example, a boot floppy or initial ramdisk), and then later loads the cmd640 workaround and other PCI drivers (when a directory tree with a wider selection of modules has been mounted).
I wouldn't mind submitting the other IDE modularization
changes first sorting out cmd640 modularization later, but doing so would involve a couple of inelegant Makefile changes that would have to be reversed if cmd640 could later be a separate module, because it would inolvolve linking d a .o from a subdirectory to build a module (ide-probe.o, ide.o, ..., pci/cmd640.o). So, I'd like to try to understand now if this is really necessary.
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
`h
Quoted 3 lines · Adam J. Richter
I'd appreciate some clarification on what trouble the generic
IDE driver can get into when the cmd640 code is not present.linux-2.5.52/Documentation/ide.txtsays:
I'll get back to 2.5 IDE things next year. For the moment I'm only concerned in getting the modular stuff sorted out completely in 2.4. Hopefully that will be mostly valid for 2.5 as well.
CMD640 has hooks into the code that need generalising and cleaning up.
Alan
Quoted 3 lines · Alan Cox
I'll get back to 2.5 IDE things next year. For the moment I'm only concerned in getting the modular stuff sorted out completely in 2.4. Hopefully that will be mostly valid for 2.5 as well.
I can't even boot 2.4.21-pre1 with IDE as modules. Works fine under 2.4.20
Looks like the IDE patch for 2.4.21-pre1 broke up the modules very similar to 2.5.51
Thanks,
Jeff
Quoted 11 lines · Jeff Chua
Quoted 3 lines · Alan Cox
I'll get back to 2.5 IDE things next year. For the moment I'm only concerned in getting the modular stuff sorted out completely in 2.4. Hopefully that will be mostly valid for 2.5 as well.
I can't even boot 2.4.21-pre1 with IDE as modules. Works fine under 2.4.20
Looks like the IDE patch for 2.4.21-pre1 broke up the modules very similar to 2.5.51
Yes it did, and I plan to fix it there first
Jeff,
Everybody cried screamed an whinned about making the chipsets modular. Now that we are going do that path, you have no choice but to wait. Use 2.4.20 and be happy. Or have FedEX write the check for it to be worked on fulltime. I do not care which, but don't bitch about progress.
Quoted 8 lines · Alan Cox
Quoted 7 lines · Jeff Chua
Quoted 3 lines · Alan Cox
I'll get back to 2.5 IDE things next year. For the moment I'm only concerned in getting the modular stuff sorted out completely in 2.4. Hopefully that will be mostly valid for 2.5 as well.
Quoted 7 lines
Quoted 4 lines
I can't even boot 2.4.21-pre1 with IDE as modules. Works fine under 2.4.20
Looks like the IDE patch for 2.4.21-pre1 broke up the modules very similar to 2.5.51
Yes it did, and I plan to fix it there first
Andre Hedrick
LAD Storage Consulting Group