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
Created attachment 20005 [details] Config from working 2.4.22 kernel
Created attachment 20006 [details] Config from locking 2.4.20-gentoo-r8 kernel
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 }
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.
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.
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.
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
Can you try running:- 'make clean dep bzImage' instead? It might have not recalculated dependancies properly...
I tried that, but I still get the exact same message.
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?
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.
Created attachment 20163 [details] New config from locking 2.4.20-gentoo-r8 kernel
Also, can we try vanilla 2.4.20?
Vanilla 2.4.20 also fails. Is there a new gentoo-sources coming?
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?
2.4.22 is now stable