Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396 - gentoo linux kernel 2.4.17-r2 locks on floppy reads
Summary: gentoo linux kernel 2.4.17-r2 locks on floppy reads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-28 16:02 UTC by Brent Cook
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Cook 2002-01-28 16:02:47 UTC
fdformat /dev/fd0 hangs the kernel on the verification phase (read/write). This
does not occur with the stock linux 2.4.17 sans Gentoo patches. dd if=file
of=/dev/fd0 also hangs the kernel. Will try disabling advanced options of the
gentoo kernel to see if this is a general problem with the gentoo kernel patches
or is related to an individual feature. MB is a Tyan Tiger 100, fyi.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-28 17:51:29 UTC
This problem also seemed to exist in the -mjc3 kernel.  Weird.  We may be
tracking down a bug here.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-01-28 18:01:24 UTC
ok, this is what I'd like you to do.  Try a vanilla 2.4.18-pre7 kernel and see
what happens.  If it doesn't work, we'll report it to LKML.  If it does work,
I'll test each of our patches one by one until I find the problem.
Comment 3 Brent Cook 2002-01-28 22:50:59 UTC
I tried installing tomsrtbt (a floppy-based linux distro) to provide a baseline
test for each of these kernels, though pretty much any floppy read operation
will do. You can download it from here:http://www.toms.net/rb/

These are my findings:
 Vanilla 2.4.18-pre7 kernel
   - install tomsrtbt to fd0 perfectly - Pass
 Gentoo 2.4.18-pre3 kernel
   - locks on verification stage of floppy format - Fail
 Gentoo 2.4.17-r2 kernel
   - locks on verification stage of floppy format - Fail

I will included my kernel .config file to help reproduce the problem. I used the
same configuration for each kernel (did not enable any special features in the
Gentoo kernels)
Comment 4 Brent Cook 2002-01-28 22:57:39 UTC
I will attach a .config file when file attachments work in Bugzilla again. My
setup is quite generic, however. Enable USB, ACPI, no sound, i686, etc.
Comment 5 Brent Cook 2002-01-29 12:47:46 UTC
Tried 2.4.17-r3, works better than 2.4.17-r2 but still locks under certain
floppy reads.

For instance, when installing tomsrtbt, a disk containing 82 sectors is formated
(/dev/fd0u1720 or something), which works fine with 2.4.18-pre7. With 2.4.17-r2,
the format operation hangs when verifying (reading from) sector 0. With
2.4.17-r3, the format operation hangs when verifying sector 80.
Comment 6 Daniel Robbins (RETIRED) gentoo-dev 2002-02-04 18:28:45 UTC
OK.  It would be interesting to know if this bug exists with a stock 2.4.17
kernel.  I'm going to insist that you to try (yet another) kernel, but if you
have some free time... well why not? :)  If the problem exists in stock 2.4.17,
then the problem you are having is unrelated to the kernel patches and when we
move up to 2.4.18 the problem should go away.  *But*, if the problem doesn't
exist in 2.4.17, then it's very likely being caused by one of the patches we
added.  If that's the case, the problem will likely *not* go away at 2.4.18 and
needs to be addressed now.  Make sense?
Comment 7 Brent Cook 2002-02-05 08:32:42 UTC
I noted in my first comment that this bug is not in the 2.4.17 stock kernel. I
am running currently 2.4.18-pre7-ac2, and also no problems with floppy access
either. Perhaps if there were a way that I could apply individual patches from
your kernel tree instead of the one big gentoo patch, I could do some trial and
error (simple,  one at a time. I don't think that I could try every
permutation!) I know that older revisions of the gentoo kernel applied
individual patches.
Comment 8 Daniel Robbins (RETIRED) gentoo-dev 2002-02-05 10:12:18 UTC
Ooops.  OK, great.  Well, we have the info to begin tracking down the bug.  The
first thing I'd suggest if you haven't tried this already is to try 2.4.17-r3
with preempt turned off.  If you've already tried this, let me know and we'll
move on to the next step.
Comment 9 Daniel Robbins (RETIRED) gentoo-dev 2002-02-05 10:35:19 UTC
We're going to try to drop patches in the following order: preempt,
read-latency, ide, irqrate.
Comment 10 Daniel Robbins (RETIRED) gentoo-dev 2002-02-10 22:59:06 UTC
OK, this has been isolated.  From Brent:

The irqrate-2.4.17-A1 patch causes the hang. I tried formating
and verifying a floppy using tomsrtbt, and a hang occurred when reading
from sector 81.
Comment 11 Daniel Robbins (RETIRED) gentoo-dev 2002-02-13 22:47:16 UTC
irqrate-2.4.17-A1 has been removed from linux-sources-2.4.17-r4 (being released
tonight).  This bug will be fixed on CVS within the hour.  Give it a test, but
it should be fixed.