public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* modular floppy broken in 2.5.3
@ 2002-02-02  1:38 Alessandro Suardi
  2002-02-03 20:48 ` Alessandro Suardi
  0 siblings, 1 reply; 8+ messages in thread
From: Alessandro Suardi @ 2002-02-02  1:38 UTC (permalink / raw)
  To: linux-kernel

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]")

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: modular floppy broken in 2.5.3
@ 2002-02-04 19:26 Thomas Hood
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Hood @ 2002-02-04 19:26 UTC (permalink / raw)
  To: linux-kernel

Gunther Mayer wrote:
> 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).
> [...]
> The BIOS probably wants to tell you there
> is a superio chip at 0x3f0

The floppy controller commonly uses io ports
0x3f2-0x3f5 and 0x3f7.  0x3f0-0x3f1 were used
by the floppy controller on the PC AT (only).
The latter two ports are now frequently used
for superio chips or other motherboard
devices, as the BIOS will report.  PnPBIOS
is acting properly in reserving the ports.

Since the floppy driver does not use ioports
0x3f0-0x3f1 it should not reserve them.

The issue was previously discussed in this
thread:
http://marc.theaimsgroup.com/?l=linux-kernel&m=100516032204531&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=100495936122982&w=2
and the conclusion, I believe, was that the
floppy driver should be patched so as not to
reserve 0x3f0 and 0x3f1.  Someone even 
submitted a patch.

> PNPBIOS should not reserve 3f0/3f1
> as a _workaround_ for this BIOS bug.

The correct solution is to modify the floppy
driver.

Until that happens, use the "pnpbios=no-res"
option, which prevents pnpbios from reserving
any ioports.

--
Thomas Hood

-- 

_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: modular floppy broken in 2.5.3
@ 2002-02-07  1:30 Thomas Hood
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Hood @ 2002-02-07  1:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: Gunther Mayer, Alessandro Suardi

The latest version of the PnP BIOS driver, available at:
   http://panopticon.csustan.edu/thood/pnpbios.html
refrains from reserving ioports 0x3f0 and 0x3f1.  This
is a temporary fix for the floppy problem.  I hope
someone will fix the floppy driver soon so that this
change can be reverted.

Note that at earlier version of the driver was included
in 2.4.18-pre7-ac2 and an even earlier version was
included in 2.5.3.  If you are using either of these
kernels and you don't want to update the pnpbios driver
then boot with "pnpbios=no-res".

--
Thomas


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-02-07  1:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-02  1:38 modular floppy broken in 2.5.3 Alessandro Suardi
2002-02-03 20:48 ` Alessandro Suardi
2002-02-03 21:22   ` Alan Cox
2002-02-04 17:29     ` Gunther Mayer
2002-02-04 23:58       ` Thomas Hood
2002-02-05 10:13       ` Alessandro Suardi
  -- strict thread matches above, loose matches on Subject: below --
2002-02-04 19:26 Thomas Hood
2002-02-07  1:30 Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox