modular floppy broken in 2.5.3
Trying to modprobe it yields
[root@dolphin root]# modprobe floppy/lib/modules/2.5.3/kernel/drivers/block/floppy.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters /lib/modules/2.5.3/kernel/drivers/block/floppy.o: insmod /lib/modules/2.5.3/kernel/drivers/block/floppy.o failed /lib/modules/2.5.3/kernel/drivers/block/floppy.o: insmod floppy failed
and dmesg says
inserting floppy driver for 2.5.3
Floppy drive(s): fd0 is 1.44M
floppy0: Floppy io-port 0x03f0 in use
I haven't been using floppy.o for some times so I can't tell
when this broke. I'll give recent 2.5.x kernels a spin and report (if nobody provided other suggestions).
Thanks,
--alessandro
"this machine will, will not communicate
these thoughts and the strain I am under
be a world child, form a circle before we all go under"
(Radiohead, "Street Spirit [fade out]")
Quoted 9 lines · Alessandro Suardi
Trying to modprobe it yields
[root@dolphin root]# modprobe floppy
/lib/modules/2.5.3/kernel/drivers/block/floppy.o:init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters/lib/modules/2.5.3/kernel/drivers/block/floppy.o: insmod/lib/modules/2.5.3/kernel/drivers/block/floppy.ofailed/lib/modules/2.5.3/kernel/drivers/block/floppy.o: insmod floppy failed
Quoted 6 lines
and dmesg says
inserting floppy driver for 2.5.3
Floppy drive(s): fd0 is 1.44M
floppy0: Floppy io-port0x03f0in use
A simple but nice hint by Pierre Rousselet suggested the I/O port
is in use - I plain assumed it broke because I have been loading modular floppy for the last 36 months or so without specifying any parameters...
It turns out this is due to the new PnPBIOS kernel config option:
[asuardi@dolphin asuardi]$ grep PnPBIOS /proc/ioports 03f0-03f1 : PnPBIOS PNP0c01
0600-067f : PnPBIOS PNP0c01
0680-06ff : PnPBIOS PNP0c01
0800-083f : PnPBIOS PNP0c01
0840-084f : PnPBIOS PNP0c01
0880-088f : PnPBIOS PNP0c01
f400-f4fe : PnPBIOS PNP0c01
But since modular floppy was working before without setting any
ioport parameter I'm not entirely sure this is a "feature".
Thanks,
--alessandro
"this machine will, will not communicate
these thoughts and the strain I am under
be a world child, form a circle before we all go under"
(Radiohead, "Street Spirit [fade out]")
Quoted 11 lines
It turns out this is due to the new PnPBIOS kernel config option:
[asuardi@dolphin asuardi]$ grep PnPBIOS
/proc/ioports03f0-03f1 : PnPBIOS PNP0c01
0600-067f : PnPBIOS PNP0c01
0680-06ff : PnPBIOS PNP0c01
0800-083f : PnPBIOS PNP0c01
0840-084f : PnPBIOS PNP0c01
0880-088f : PnPBIOS PNP0c01
f400-f4fe : PnPBIOS PNP0c01
Quoted 2 lines
But since modular floppy was working before without setting any
ioport parameter I'm not entirely sure this is a "feature".
Its a mix of fp and pnpbios things that need untangling. PnPBIOS should register the resource as not in use, floppy should allocate the right things not blindly reserve the wrong sized chunks
Quoted 11 lines · Alan Cox
Quoted 11 lines
It turns out this is due to the new PnPBIOS kernel config option:
[asuardi@dolphin asuardi]$ grep PnPBIOS
/proc/ioports03f0-03f1 : PnPBIOS PNP0c01
0600-067f : PnPBIOS PNP0c01
0680-06ff : PnPBIOS PNP0c01
0800-083f : PnPBIOS PNP0c01
0840-084f : PnPBIOS PNP0c01
0880-088f : PnPBIOS PNP0c01
f400-f4fe : PnPBIOS PNP0c01
Quoted 5 lines
Quoted 2 lines
But since modular floppy was working before without setting any
ioport parameter I'm not entirely sure this is a "feature".Its a mix of fp and pnpbios things that need untangling. PnPBIOS should register the resource as not in use, floppy should allocate the right
PNPNIOS is right to reserve PNP0C01 as "used". Else there will be hangs when drivers poke in io space (e.g. laptops tend to have special hardware which doesn't like to be touched).
PNPBIOS should not reserve 3f0/3f1 as a _workaround_ for this BIOS bug.
The BIOS probably wants to tell you there is a superio chip at 0x3f0 (try http://home.t-online.de/home/gunther.mayer/lssuperio-0.63.tar.gz).
Quoted 1 line · Alan Cox
... PnPBIOS should register the resource as not in use ..
I believe that this is what it currently does.
Quoted 20 lines · Gunther Mayer
Quoted 11 lines · Alan Cox
Quoted 11 lines
It turns out this is due to the new PnPBIOS kernel config option:
[asuardi@dolphin asuardi]$ grep PnPBIOS
/proc/ioports03f0-03f1 : PnPBIOS PNP0c01
0600-067f : PnPBIOS PNP0c01
0680-06ff : PnPBIOS PNP0c01
0800-083f : PnPBIOS PNP0c01
0840-084f : PnPBIOS PNP0c01
0880-088f : PnPBIOS PNP0c01
f400-f4fe : PnPBIOS PNP0c01Quoted 5 lines
Quoted 2 lines
But since modular floppy was working before without setting any
ioport parameter I'm not entirely sure this is a "feature".Its a mix of fp and pnpbios things that need untangling. PnPBIOS should register the resource as not in use, floppy should allocate the right
Quoted 8 lines
PNPNIOS is right to reserve PNP0C01 as "used". Else there will be hangs when drivers poke in io space (e.g. laptops tend to have special hardware which doesn't like to be touched).
PNPBIOS should not reserve 3f0/3f1 as a _workaround_ for this BIOS bug.
The BIOS probably wants to tell you there is a superio chip at
0x3f0(try http://home.t-online.de/home/gunther.mayer/lssuperio-0.63.tar.gz).
And here it goes...
lssuperio V0.63 (EXPERIMENTAL)
Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...
SMSC Super-IO detection, now testing Ports 2F0, 370, 2E, 4E ...
SMSC chip at EFER=0x3f0 key=0x55 id=09 rev=08
oldid=0x00 oldrev=0x00
LDN 0( FDC): io=0x3f0, irq= 6, dma= 1
LDN 1(reserved): Disabled.
LDN 2(reserved): Disabled.
LDN 3( LPT): io=0x378, irq= 7, dma=No
LDN 4( UART_A): io=0x3f8, irq= 4, dma=No
LDN 5( UART_B): io=0x3e8, io2=0x290, irq= 4, dma= 3
LDN 6(reserved): io=0x0, irq= 8, dma=No
LDN 7( KBC): io=0x0, irq= 1, irq2=12, dma=No
LDN 8(reserved): Disabled.
LDN 9(Gameport): Disabled.
LDN a( PME): Disabled.
LDN b( MPU-401): Disabled.
LPT mode=ECP FIFO thresh.=7
SMSC chip type 37n958
National Semiconductor Super-IO detection,now testing port 2E,4E,15C,26E,398 ...ITE Super-IO detection testing ports 2E,4E,279,370/371 ... ALI Super-IO detection testing ports 370,398,3F0 ...
Intel Super-IO detection testing ports 26E, 398 ...
--alessandro
"this machine will, will not communicate
these thoughts and the strain I am under
be a world child, form a circle before we all go under"
(Radiohead, "Street Spirit [fade out]")