mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Ville Herva <vherva@twilight.cs.hut.fi>
Cc: xavier.bestel@free.fr, linux-kernel@vger.kernel.org
Subject: floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?)
Date: Mon, 5 Jan 2004 18:14:31 +0100	[thread overview]
Message-ID: <20040105171431.GA1776@vana.vc.cvut.cz> (raw)
In-Reply-To: <20040105142032.GE11115091@niksula.cs.hut.fi>

On Mon, Jan 05, 2004 at 04:20:32PM +0200, Ville Herva wrote:
> On Mon, Jan 05, 2004 at 11:06:43AM +0100, you [Xavier Bestel] wrote:
> > Hi,
> > 
> > Has anyone managed to make another distro with 2.6 work under vmware ?
> 
> 2.6.1rc1 works great for me under vmware 4.05 (6030), but that's with an
> ancient glibc and /sbin/init that do not know of sysenter among other
> things.
> 
> There is one regression, though: 2.2.x and 2.4.x can see /dev/fd0 and
> /dev/fd1 under vmware. 2.6.1rc1 only find /dev/fd0. Does anyone else see
> this?

Are you sure that VMware is a culprit? I had to apply patch below to get
floppy option to work at all (otherwise buggy kernel options parser which
does not understand quotes comes in a way making it impossible to do
f.e. "floppy=1,6,cmos").

And even then configuration with more than one floppy drive is broken:
all floppies will use same queue, but it is not allowed - there is even
comment in the code saying "to be cleaned up" before add_disk() call,
and from my understanding there must be 1:1 relation between queues
and registered disks. Otherwise (at least) sysfs breaks and will
crash on floppy unload as queue is deleted twice from sysfs, and it does not 
like doing such things...
						Petr Vandrovec
						vandrove@vc.cvut.cz

 
diff -urdN linux/drivers/block/floppy.c linux/drivers/block/floppy.c
--- linux/drivers/block/floppy.c	2003-12-31 02:59:44.000000000 +0100
+++ linux/drivers/block/floppy.c	2003-12-31 14:14:21.000000000 +0100
@@ -150,6 +150,7 @@
 /* do print messages for unexpected interrupts */
 static int print_unex=1;
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
 #include <linux/kernel.h>
@@ -4618,9 +4619,9 @@
 	wait_for_completion(&device_release);
 }
 
-MODULE_PARM(floppy,"s");
-MODULE_PARM(FLOPPY_IRQ,"i");
-MODULE_PARM(FLOPPY_DMA,"i");
+module_param(floppy, charp, 0);
+module_param(FLOPPY_IRQ, int, 0);
+module_param(FLOPPY_DMA, int, 0);
 MODULE_AUTHOR("Alain L. Knaff");
 MODULE_SUPPORTED_DEVICE("fd");
 MODULE_LICENSE("GPL");

  reply	other threads:[~2004-01-05 17:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-05 10:06 2.6.0 under vmware ? Xavier Bestel
2004-01-05 11:21 ` Ernst Herzberg
2004-01-05 11:35   ` Alexander Hoogerhuis
2004-01-06  5:44     ` Zwane Mwaikambo
2004-01-05 14:20 ` Ville Herva
2004-01-05 17:14   ` Petr Vandrovec [this message]
2004-01-07  3:21     ` floppy driver and multiple floppies (was Re: 2.6.0 under vmware ?) Rusty Russell
2004-01-05 18:55   ` 2.6.0 under vmware ? Ville Herva
2004-01-05 19:30     ` Stephen Hemminger
2004-01-05 19:50       ` Ville Herva
     [not found] ` <20040105111549.GD11115091@niksula.cs.hut.fi>
2004-01-05 15:20   ` Xavier Bestel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040105171431.GA1776@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vherva@twilight.cs.hut.fi \
    --cc=xavier.bestel@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®