Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32373 - Kernel 2.4.20-gentoo-r8 locks during IDE detection Vanilla 2.4.22 works
Summary: Kernel 2.4.20-gentoo-r8 locks during IDE detection Vanilla 2.4.22 works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 02:52 UTC by Jeff Mills
Modified: 2004-01-13 05:37 UTC (History)
1 user (show)

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


Attachments
Config from working 2.4.22 kernel (config-2.4.22,16.47 KB, text/plain)
2003-10-31 02:53 UTC, Jeff Mills
Details
Config from locking 2.4.20-gentoo-r8 kernel (config-2.4.20-gentoo-r8,20.16 KB, text/plain)
2003-10-31 02:54 UTC, Jeff Mills
Details
New config from locking 2.4.20-gentoo-r8 kernel (config-2.4.20-gentoo-r8,20.91 KB, text/plain)
2003-11-03 01:25 UTC, Jeff Mills
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Mills 2003-10-31 02:52:32 UTC
I'm currently running Vanilla kernel 2.4.22, which is running fine.
I attempted to change to gentoo sources 2.4.20 r8, but the machine locks during
IDE detection using the same configuration.

Reproducible: Always
Steps to Reproduce:
1. emerge, configure, compile and install gentoo-sources 2.4.20-gentoo-r8
2. 
3.

Actual Results:  
Machine freezes during IDE detection

Expected Results:  
Machine should have booted

root@sarkmekawk piggie # emerge --info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i586 Pentium MMX
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i586 -mcpu=i586 -funroll-loops -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=i586 -mcpu=i586 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo/
ftp://www.planetmirror.com/pub/gentoo/ rsync://203.16.234.20/gentoo/ 
ftp://203.16.234.19/pub/gentoo/ ftp://203.16.234.20/pub/gentoo/ 
http://203.16.234.19/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif imlib jpeg kde libg++
mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl
spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline tetex java gpm
tcpd pam libwww ssl perl python -X -gtk -gnome -alsa -xfree"

Info from dmesg on working 2.4.22:
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 00:01.1
PCI: Assigned IRQ 14 for device 00:01.1
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS5597 ATA 33 controller
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
hda: FUJITSU MPC3043AT, ATA DISK drive
hdb: ATAPI 44X CDROM, ATAPI CD/DVD-ROM drive
blk: queue c02f8320, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 8448300 sectors (4326 MB), CHS=4190/32/63, UDMA(33)
hdb: attached ide-cdrom driver.
hdb: ATAPI 48X CD-ROM drive, 128kB Cache, UDMA(33) 

2.4.20-gentoo-r8 locks hard after:
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

config from 2.4.22
Comment 1 Jeff Mills 2003-10-31 02:53:20 UTC
Created attachment 20005 [details]
Config from working 2.4.22 kernel
Comment 2 Jeff Mills 2003-10-31 02:54:08 UTC
Created attachment 20006 [details]
Config from locking 2.4.20-gentoo-r8 kernel
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-10-31 04:51:27 UTC
Erm, I'm not sure where these are coming from. Do you get them on your vanilla
kernel?

>> hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
>> hda: task_no_data_intr: error=0x04 { DriveStatusError }
Comment 4 Jeff Mills 2003-10-31 04:54:36 UTC
Yes, thats the messages from dmesg on the working kernel.
I havent had a problem with that kernel at all.
Also not sure if that happens every time I boot, or if its just a once off.
Either way, the machine boots and runs fine.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-10-31 06:04:45 UTC
Can you please attach /proc/interrupts and also try the gentoo-sources with
"noapic" added to your boot parameters and try compiling it without preemptive
scheduling.
Comment 6 Jeff Mills 2003-10-31 20:40:25 UTC
root@sarkmekawk src # cat /proc/interrupts
           CPU0
  0:    9630257          XT-PIC  timer
  1:         31          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:     538184          XT-PIC  NE2000
  4:     117889          XT-PIC  serial
  5:    3995644          XT-PIC  eth1
 14:     177389          XT-PIC  ide0
NMI:          0
ERR:          0

Trying to compile the kernel without pre-empt. Its failing so far. Will look
further into it.
Comment 7 Jeff Mills 2003-11-01 02:00:46 UTC
Without pre-empt and nothing else changed, make bzImage dies:

gcc -E -C -P -I/usr/src/linux-2.4.20-gentoo-r8/include -imacros /usr/src/linux-2.4.20-gentoo-r8/include/asm-i386/page_offset.h
-Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux-2.4.20-gentoo-r8/arch/i386/vmlinux.lds -e
stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o
init/do_mounts.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o
drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o
\
        net/network.o \
        grsecurity/grsec.o \
        crypto/crypto.o \
        /usr/src/linux-2.4.20-gentoo-r8/arch/i386/lib/lib.a /usr/src/linux-2.4.20-gentoo-r8/lib/lib.a
/usr/src/linux-2.4.20-gentoo-r8/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
fs/fs.o(.text+0x13737): In function `dput':
: undefined reference to `atomic_dec_and_lock'
make: *** [vmlinux] Error 1
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2003-11-01 04:01:54 UTC
Can you try running:- 'make clean dep bzImage' instead? It might have not
recalculated dependancies properly...
Comment 9 Jeff Mills 2003-11-01 17:05:17 UTC
I tried that, but I still get the exact same message.
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2003-11-02 05:37:35 UTC
I could compile your kernel fine, but I got some strange warnings when I
first tried it with your config and it failed, and remerging gentoo-sources
refreshed the source tree and it compiled fine after that. Corrupt tree?
Comment 11 Jeff Mills 2003-11-03 01:23:26 UTC
Ok, re-emerging gentoo-sources and using a new config allowed it to compile,
but the machine still would not boot.

I will attach the config I used.
Comment 12 Jeff Mills 2003-11-03 01:25:42 UTC
Created attachment 20163 [details]
New config from locking 2.4.20-gentoo-r8 kernel
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2003-11-03 08:27:44 UTC
Also, can we try vanilla 2.4.20?
Comment 14 Jeff Mills 2003-11-03 22:41:26 UTC
Vanilla 2.4.20 also fails.
Is there a new gentoo-sources coming?
Comment 15 Tim Yamin (RETIRED) gentoo-dev 2003-11-04 08:33:54 UTC
If vanilla 2.4.20 fails we can't do that much as the fault is in the underlying
code. Can I suggest you try gentoo-test-sources?
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2004-01-13 05:37:56 UTC
2.4.22 is now stable