Bug 1458

Summary: Kernel does not Uncompress
Product: Platform Specific/Hardware Reporter: Stefan Fleiter (stefan.fleiter)
Component: OtherAssignee: Zwane Mwaikambo (zwane)
Status: CLOSED CODE_FIX    
Severity: blocking CC: bunk, mikedoug, zwane
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.0 Subsystem:
Regression: --- Bisected commit-id:
Attachments: .config for kernel that does not uncompress
.config working with 2.5.67-bk5, but not with 2.5.67-bk6
ultra minimal config
disable store_edid
Skip EDID on VBE1.2
Skip EDID on VBE1.2
No EDID/DDC on VBE12

Description Stefan Fleiter 2003-10-30 09:12:55 UTC
Distribution: Debian unstable
Hardware Environment: ASUS P2L97 (LX-Chipset), P22 333

Problem Description:
First I have to say, taht I searched throuh the oether bug reports and that I am
quite sure that my .config is right.

To the problem:
I built a kernel from source and wanted to boot it, but nothing is printed on
the screen after the boot command of grub, if I copy a 2.4-kernel image at the
same location it boots fine.


# sh scripts/ver_linux (of kernel 2.4.23-pre5)
Linux ID-24857 2.4.23-pre5 #2 Di Sep 23 00:03:27 CEST 2003 i686 GNU/Linux
?
Gnu C                  3.3.2
Gnu make               3.80
util-linux             2.12
mount                  2.12
module-init-tools      0.9.15-pre2
e2fsprogs              1.35-WIP
PPP                    2.4.2b3
nfs-utils              1.0.5
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.1.14
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.0.91
Modules Loaded         ppp_async nfsd lockd sunrpc serial binfmt_misc
ipt_MASQUERADE ipt_LOG ipt_state iptable_filter iptable_nat ip_conntrack_ftp
ip_conntrack ip_tables microcode ne 8390 crc32 usbkbd hid mousedev keybdev input
msr usb-uhci usbcore agpgart apm reiserfs loop floppy sr_mod cdrom bsd_comp
ppp_generic isdn_bsdcomp hisax isdn slhc isa-pnp msdos isofs st dummy parport_pc
lp parport vfat fat smbfs nls_iso8859-2 nls_iso8859-15 nls_iso8859-1 nls_cp852
nls_cp850 nls_cp437 rtc unix

# cat /proc/cpuinfo
processor???????: 0
vendor_id???????: GenuineIntel
cpu family??????: 6
model???????????: 5
model name??????: Pentium II (Deschutes)
stepping????????: 0
cpu MHz?????????: 334.098
cache size??????: 512 KB
fdiv_bug????????: no
hlt_bug?????????: no
f00f_bug????????: no
coma_bug????????: no
fpu?????????????: yes
fpu_exception???: yes
cpuid level?????: 2
wp??????????????: yes
flags???????????: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr
bogomips????????: 666.82

#cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0213-0213 : isapnp read
02f8-02ff : serial(auto)
0300-031f : eth0
0378-037a : parport0
037b-037f : parport0
03c0-03df : vga+
03f8-03ff : serial(auto)
0778-077a : parport0
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
b800-b8ff : Adaptec AHA-2940U/UW/D / AIC-7881U
d000-d01f : AVM Audiovisuelles MKTG & Computer System GmbH A1 ISDN [Fritz]
  d000-d01f : avm PCI
d400-d41f : Intel Corp. 82371AB/EB/MB PIIX4 USB
  d400-d41f : usb-uhci
d800-d80f : Intel Corp. 82371AB/EB/MB PIIX4 IDE
e400-e43f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
e800-e81f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI

# cat /proc/iomem
00000000-0009f7ff : System RAM
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000ce5ff : Extension ROM
000f0000-000fffff : System ROM
00100000-0fffffff : System RAM
  00100000-002086a7 : Kernel code
  002086a8-0027033f : Kernel data
e0000000-e0000fff : Adaptec AHA-2940U/UW/D / AIC-7881U
  e0000000-e0000fff : aic7xxx
e0800000-e080001f : AVM Audiovisuelles MKTG & Computer System GmbH A1 ISDN [Fritz]
e1000000-e2dfffff : PCI Bus #01
  e1000000-e1ffffff : nVidia Corporation NV4 [RIVA TNT]
e2f00000-e3ffffff : PCI Bus #01
  e3000000-e3ffffff : nVidia Corporation NV4 [RIVA TNT]
e4000000-e7ffffff : Intel Corp. 440LX/EX - 82443LX/EX Host bridge
ffff0000-ffffffff : reserved

# lspci -vvv
00:00.0 Host bridge: Intel Corp. 440LX/EX - 82443LX/EX Host bridge (rev 03)
????????Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
????????Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR+ <PERR-
????????Latency: 64
????????Region 0: Memory at e4000000 (32-bit, prefetchable) [size=64M]
????????Capabilities: [a0] AGP version 1.0
????????????????Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW- AGP3- Rate=x1,x2
????????????????Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

00:01.0 PCI bridge: Intel Corp. 440LX/EX - 82443LX/EX AGP bridge (rev 03)
(prog-if 00 [Normal decode])
????????Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 64
????????Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
????????I/O behind bridge: 0000e000-0000dfff
????????Memory behind bridge: e1000000-e2dfffff
????????Prefetchable memory behind bridge: e2f00000-e3ffffff
????????BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-

00:04.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
????????Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 0

00:04.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80
[Master])
????????Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 32
????????Region 4: I/O ports at d800 [size=16]
00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00
[UHCI])
????????Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 32
????????Interrupt: pin D routed to IRQ 9
????????Region 4: I/O ports at d400 [size=32]

00:04.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
????????Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Interrupt: pin ? routed to IRQ 9

00:0a.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH A1
ISDN [Fritz] (rev 02)
????????Subsystem: AVM Audiovisuelles MKTG & Computer System GmbH FRITZ!Card
ISDN Controller
????????Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Interrupt: pin A routed to IRQ 9
????????Region 0: Memory at e0800000 (32-bit, non-prefetchable) [size=32]
????????Region 1: I/O ports at d000 [size=32]

00:0b.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U
????????Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 32 (2000ns min, 2000ns max), Cache Line Size: 0x08 (32 bytes)
????????Interrupt: pin A routed to IRQ 9
????????Region 0: I/O ports at b800 [disabled] [size=256]
????????Region 1: Memory at e0000000 (32-bit, non-prefetchable) [size=4K]
????????Expansion ROM at <unassigned> [disabled] [size=64K]

01:00.0 VGA compatible controller: nVidia Corporation NV4 [RIVA TNT] (rev 03)
(prog-if 00 [VGA])
????????Subsystem: Elsa AG Erazor II SGRAM
????????Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
????????Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
????????Latency: 64 (1250ns min, 250ns max)
????????Interrupt: pin A routed to IRQ 15
????????Region 0: Memory at e1000000 (32-bit, non-prefetchable) [size=16M]
????????Region 1: Memory at e3000000 (32-bit, prefetchable) [size=16M]
????????Expansion ROM at e2ff0000 [disabled] [size=64K]
????????Capabilities: [60] Power Management version 1
????????????????Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
????????????????Status: D0 PME-Enable- DSel=0 DScale=0 PME-
????????Capabilities: [44] AGP version 1.0
????????????????Status: RQ=16 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW- AGP3- Rate=x1,x2
????????????????Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

# cat /proc/scsi/scsi
Attached devices:?
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM-PCCO Model: DDRS-39130Y   !# Rev: S97B
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: SEAGATE  Model: ST34572W         Rev: 0784
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: PLEXTOR  Model: CD-ROM PX-12TS   Rev: 1.02
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 05 Lun: 00
  Vendor: TEAC     Model: CD-R58S          Rev: 1.0H
  Type:   CD-ROM                           ANSI SCSI revision: 02

# dmesg
Linux version 2.4.23-pre5 (sf@ID-24857) (gcc-Version 3.3.2 20030908 (Debian
prerelease)) #2 Di Sep 23 00:03:27
 CEST 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
256MB LOWMEM available.
On node 0 totalpages: 65536
zone(0): 4096 pages.
zone(1): 61440 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/sdb6 ro vga=extended
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 334.096 MHz processor.
Console: colour VGA+ 80x50
Calibrating delay loop... 666.82 BogoMIPS
Memory: 257140k/262144k available (1057k kernel code, 4616k reserved, 415k data,
92k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff 00000000 00000000 00000000
CPU:             Common caps: 0183fbff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 00
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 334.1022 MHz.
..... host bus clock speed is 66.8203 MHz.
cpu: 0, clocks: 668203, slice: 334101
CPU0<T0:668192,T1:334080,D:11,S:334101,C:668203>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf06d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX/ICH [8086/7110] at 00:04.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
pty: 256 Unix98 ptys configured
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 9 for device 00:0b.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
        <Adaptec 2940 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

(scsi0:A:0): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
  Vendor: IBM-PCCO  Model: DDRS-39130Y   !#  Rev: S97B
  Type:   Direct-Access                      ANSI SCSI revision: 02
(scsi0:A:1): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
  Vendor: SEAGATE   Model: ST34572W          Rev: 0784
  Type:   Direct-Access                      ANSI SCSI revision: 02
(scsi0:A:3): 10.000MB/s transfers (10.000MHz, offset 15)
  Vendor: PLEXTOR   Model: CD-ROM PX-12TS    Rev: 1.02
  Type:   CD-ROM                             ANSI SCSI revision: 02
(scsi0:A:5): 10.000MB/s transfers (10.000MHz, offset 15)
  Vendor: TEAC      Model: CD-R58S           Rev: 1.0H
  Type:   CD-ROM                             ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 4
scsi0:A:1:0: Tagged Queuing enabled.  Depth 4
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
SCSI device sda: 17774160 512-byte hdwr sectors (9100 MB)
Partition check:
 sda: sda1 sda2 sda3
SCSI device sdb: 8888924 512-byte hdwr sectors (4551 MB)
 sdb: sdb1 < sdb5 sdb6 sdb7 > sdb2
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 92k freed
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Adding Swap: 128512k swap-space (priority -1)
Real Time Clock Driver v1.10e
parport0: PC-style at 0x378 (0x778), irq 7, using FIFO
[PCSPP,TRISTATE,COMPAT,EPP,ECP]
lp0: using parport0 (interrupt-driven).
isapnp: Scanning for PnP cards...
isapnp: SB audio device quirk - increasing port range
isapnp: AWE32 quirk - adding two ports
isapnp: Card 'Creative SB32 PnP'
isapnp: 1 Plug & Play card detected total
CSLIP: code copyright 1989 Regents of the University of California
ISDN subsystem Rev: 1.1.4.1/1.1.4.1/1.1.4.1/1.1.4.1/none/1.1.4.1 loaded
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.5 (module)
HiSax: Layer1 Revision 1.1.4.1
HiSax: Layer2 Revision 1.1.4.1
HiSax: TeiMgr Revision 1.1.4.1
HiSax: Layer3 Revision 1.1.4.1
HiSax: LinkLayer Revision 1.1.4.1
HiSax: Total 1 card defined
HiSax: Card 1 Protocol EDSS1 Id=teles (0)
HiSax: AVM PCI driver Rev. 1.1.4.1
PCI: Found IRQ 9 for device 00:0a.0
AVM PCI: stat 0x2020a
AVM PCI: Class A Rev 2
HiSax: AVM Fritz!PCI config irq:9 base:0xD000
AVM PCI: ISAC version (0): 2086/2186 V1.1
AVM Fritz PnP/PCI: IRQ 9 count 1007
AVM Fritz PnP/PCI: IRQ 9 count 1010
HiSax: DSS1 Rev. 1.1.4.1
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
PPP BSD Compression module registered
PPP generic driver version 2.4.2
PPP BSD Compression module registered
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 5, lun 0
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
inserting floppy driver for 2.4.23-pre5
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 204M
agpgart: Detected Intel 440LX chipset
agpgart: AGP aperture is 64M @ 0xe4000000
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 00:27:10 Sep 23 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 9 for device 00:04.2
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
mice: PS/2 mouse device common for all mice
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device sd(8,23)) ...
for (sd(8,23))
sd(8,23):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device sd(8,3)) ...
for (sd(8,3))
sd(8,3):Using r5 hash to sort names
usb.c: registered new driver usbkbd
usbkbd.c: :USB HID Boot Protocol keyboard driver
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x300: 00 c0 26 b0 30 a2
eth0: NE2000 found at 0x300, using IRQ 10.
IA-32 Microcode Update Driver: v1.11 <tigran@veritas.com>
microcode: CPU0 already at revision 64 (current=64)
microcode: freed 2048 bytes
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (2048 buckets, 16384 max) - 292 bytes per conntrack
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI
ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
isdn: Verbose-Level is 2
isdn: Verbose-Level is 2
isdn: Verbose-Level is 2
isdn: Verbose-Level is 2
HiSax: debugging flags card 1 set to 4
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Comment 1 Stefan Fleiter 2003-10-30 09:14:25 UTC
Created attachment 1291 [details]
.config for kernel that does not uncompress

.config for kernel that does not uncompress
Comment 2 Martin J. Bligh 2003-10-30 09:31:04 UTC
Try the early printk stuff to see if you get anything. Be sure to turn it on ;-)

ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.0-test8/2.6.0-test8-mjb1/100-early_printk
Comment 3 Stefan Fleiter 2003-10-31 03:11:37 UTC
Did patch, configure, recompile and set boot-param, but no change.
Any other idea?
Comment 4 Stefan Fleiter 2003-11-04 14:51:34 UTC
Invested a lot of work:
Kernel 2.5.67-bk5 still works.
Kernel 2.5.67-bk6 shows the symptom described above.

patch-2.5.67-bk5-bk6 is quite big, but also has a lot
of architecture specific stuff.

Maybe someone familiar with kernel-hacking could have a look,
I would try suggested patches.
Comment 5 Stefan Fleiter 2003-11-04 14:54:15 UTC
Created attachment 1351 [details]
.config working with 2.5.67-bk5, but not with 2.5.67-bk6

The above is a more minimal .config.
Comment 6 Zwane Mwaikambo 2003-11-21 10:17:46 UTC
Created attachment 1509 [details]
ultra minimal config
Comment 7 Stefan Fleiter 2003-12-15 02:38:40 UTC
So you don't ask for additional info but close this bug report because of
insufficient data?
I spend many hours tracking the bug down to the patch 2.5.67-bk5-bk6.bz2 and you
tell me I gave not enough data?

What do you need to know?
What patch/version should I test?
Comment 8 Zwane Mwaikambo 2003-12-15 05:17:29 UTC
I did require additional info, that's why i posted the 'ultra minimal' config,
could you try the latest kernel with that configuration? It's unlikely to boot
all the way but getting to mounting root will suffice.
Comment 9 Stefan Fleiter 2003-12-15 11:45:26 UTC
You did *not* tell me to test the minimal config.
How should I know it wasn't for your testing.
Will do it as I've time.
Comment 10 Zwane Mwaikambo 2003-12-15 11:52:03 UTC
My apologies then, it was my incorrect assumption. Thanks for testing.
Comment 11 Stefan Fleiter 2003-12-15 13:37:57 UTC
No problems.
I'm glad there is somebody interested in my kernel problems!

[Kernel test11]
Your ultra minimal config works, it can't boot because my root disk
is on a SCSI disk.
I'll try to find the config option causing the lockup/hang/crash/whatever.

I'm compiling your config with SCSI added at the moment.
Comment 12 Stefan Fleiter 2003-12-15 14:49:46 UTC
I was right, adding SCSI, i.e.

CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=32
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
CONFIG_AIC7XXX_DEBUG_ENABLE=y
CONFIG_AIC7XXX_DEBUG_MASK=0
CONFIG_AIC7XXX_REG_PRETTY_PRINT=y

makes the kernel hang at boot time without any output,
earlyprintk does not work in this situation.

Could this be related to
http://www.ussg.iu.edu/hypermail/linux/kernel/0310.1/1523.html
?
It is a UP-System and preempt is not set.

So which SCSI-specififc part of patch-2.5.67-bk5-bk6
could make this happen?
Comment 13 Zwane Mwaikambo 2003-12-15 16:26:11 UTC
Thanks for narrowing it down so quickly! i have a Dell 410 with a similar
controller, does aic7xxx_old work for you? Can you just to play it safe, disable
CONFIG_PREEMPT? Another thing to check for is your final kernel image size
because the SCSI code doesn't get initialised until much later after boot so you
would at least see console output. `size vmlinux` and ls -l arch/i386/boot/bzImage.
Comment 14 Zwane Mwaikambo 2003-12-15 16:29:11 UTC
My mistake, ignore the comment about CONFIG_PREEMPT. Also i don't think the
problem in the URL and yours are related.
Comment 15 Stefan Fleiter 2003-12-17 16:03:31 UTC
Ok it is *not SCSI-related.
Was a bug in mybuild scripts which did not detec a build-error and
copied a broken bzImage.

The config option leading to the kernel not booting is
CONFIG_VIDEO_SELECT=y.

I checked sveral .config-files which did not produce a working kernel for me,
all worked after setting CONFIG_VIDEO_SELECT=n.

So again ( :-) ):
Which part of patch-2.5.67-bk5-bk6 could cause this?

Thanks for your attention.
Comment 16 Zwane Mwaikambo 2003-12-18 06:04:25 UTC
What does your kernel command line look like? vga=ask?
Comment 17 Stefan Fleiter 2003-12-18 15:45:06 UTC
vga boot-params
===============

none: kernel does not boot
vga=extended: kernel does not boot
vga=ask: I get the menu, after entering mode number kernel halts

The following part of the diff seems suspicious to me:

diff -urN linux-2.5.67-bk5/arch/i386/boot/video.S
linux-2.5.67-bk6/arch/i386/boot/video.S
--- linux-2.5.67-bk5/arch/i386/boot/video.S?????2003-04-07 10:30:58.000000000 -0700
+++ linux-2.5.67-bk6/arch/i386/boot/video.S?????2003-04-15 04:36:14.000000000 -0700
Comment 18 Zwane Mwaikambo 2003-12-19 03:50:52 UTC
Created attachment 1698 [details]
disable store_edid

Could you test the following patch with CONFIG_VIDEO_SELECT=y
Comment 19 Zwane Mwaikambo 2003-12-19 03:54:36 UTC
For future reference, the preceding patch was to disable the following changeset;
ChangeSet 1.1035 2003/04/14 12:14:31 torvalds@home.transmeta.com
  Store EDID only when CONFIG_VIDEO_SELECT is set and edid
  function actually exists.

But the real changeset to watch out for would be;
ChangeSet 1.1006 2003/04/10 11:20:26 jsimmons@kozmo.(none)
  [FBDEV] EDID support from OpenFirmware on PPC platoforms and from the BIOS on
intel platforms.
Comment 20 Zwane Mwaikambo 2003-12-19 04:05:42 UTC
What happens with vga=normal?
Comment 21 Stefan Fleiter 2003-12-19 11:54:47 UTC
> Could you test the following patch with CONFIG_VIDEO_SELECT=y
Building at the moment...

> What happens with vga=normal?
Without patch?
Doesn't boot either.
Comment 22 Stefan Fleiter 2003-12-19 13:01:06 UTC
> Could you test the following patch with CONFIG_VIDEO_SELECT=y
The patch fixes the problem for me.
Thanks a lot!
Comment 23 Zwane Mwaikambo 2004-02-08 13:33:32 UTC
Hello Stefan, sorry for the long delay in following up to you. Do you experience
the same problem (without the patch) in current 2.6 kernels?
Comment 24 Stefan Fleiter 2004-02-12 00:22:40 UTC
Yes, it still happens with kernel 2.6.3-rc2.
Comment 25 Zwane Mwaikambo 2004-02-25 11:08:34 UTC
James could you please have a look at this?
Comment 26 Stefan Fleiter 2004-08-17 06:37:06 UTC
So half a year has passed with no action on this. :-(
I have a new System now and no access to the old one any more.
Sorry.
Comment 27 Zwane Mwaikambo 2004-11-30 23:37:58 UTC
*** Bug 3291 has been marked as a duplicate of this bug. ***
Comment 28 Zwane Mwaikambo 2005-08-01 23:52:38 UTC
This bug certainly hasn't been fixed, it requires specific video hardware but is
still out there. Unless someone points me towards a changelog, we should at
least leave it open.
Comment 29 Tobias H. 2007-01-31 06:14:18 UTC
I verify the bug, being still open.

graphics card: Chips & Technologies 65548 VESA VBE 1.2

Configuration
CONFIG_VIDEO_SELECT=Y
CONFIG_FIRMWARE_EDID=Y

kernel <= 2.6.17.14 : works
kernel >2.6.18 : crashes hanging right before uncompressing kernel.

The first patch suggested here
http://bugme.osdl.org/attachment.cgi?id=1698&action=view
works fine.

Actually I have not tried this, since

CONFIG_FIRMWARE_EDID=N

also disables the store_edid [at least during booting the kernel. I do not know
about other side effects]. But not at the same time disabling video select
(which I consider still useful).

With this altered configuration even kernel 2.6.19.2 boots fine.

:) diff linux-2.6.17.14/arch/i386/boot/video.S linux-2.6.18.6/arch/i386/boot/video.S
1932c1932
< #ifdef CONFIG_FB_FIRMWARE_EDID
---
> #ifdef CONFIG_FIRMWARE_EDID
1949a1950,1965
>       pushw   %es                             # save ES
>       xorw    %di, %di                        # Report Capability
>       pushw   %di
>       popw    %es                             # ES:DI must be 0:0
>       movw    $0x4f15, %ax
>       xorw    %bx, %bx
>       xorw    %cx, %cx
>       int     $0x10
>       popw    %es                             # restore ES
> 
>       cmpb    $0x00, %ah                      # call successful
>       jne     no_edid
> 
>       cmpb    $0x4f, %al                      # function supported
>       jne     no_edid
> 
1956a1973
> no_edid:

This diff is from inside the store_edid subroutine. Basically it's the check to
see if 0x4f15 is available at all. It's introduced by the chancesets Zwane
Mwaikambo mentioned.

It's interesting, since this check crashes my machine, but the actual call
0x4f15 with bx=$0x01 does not crash my machine. The latter one is performed by
2.6.17.x

ct4554x BIOS Manual
http://www.asiliant.com/pdf/oc54x.pdf
states offering only functions 0x4f00 - 0x4f10. I assume they did not implement
the check for 0x4f15.

http://www.vesa.org/public/VBE/vbe3.pdf
Appendix 3, page 82
states "Added Supplemental Functions definition and defined Supplemental
Functions 10-16h". Therefore the actual check for 0x4f15 is NOT required by VBE 1.2.

Suggested fixes:

Option 1: Add a note to the description text of "CONFIG_FIRMWARE_EDID" saying
not to be used in <=VBE 1.2

Option 2: If CONFIG_FIRMWARE_EDID provides in other source codes that I have not
looked into any useful functionality even with VBE 1.2, than maybe dynamically
check VBE version before trying to call 0x4f15.


Some other related information:
Crashes my machine right after check for 0x4f15
http://john.fremlin.de/programs/linux/read-edid/

X.Org X11R7.1 (Debian Testing 1:7.1.0-10)
chips server with DDC/EDID : seems to work
vesa server with DDC/EDID : seems also to work (I expected this to crash)
Comment 30 Zwane Mwaikambo 2007-02-11 17:20:59 UTC
Created attachment 10388 [details]
Skip EDID on VBE1.2

Test with CONFIG_FIRMWARE_EDID and CONFIG_VIDEO_SELECT
Comment 31 Zwane Mwaikambo 2007-02-13 16:28:12 UTC
Created attachment 10411 [details]
Skip EDID on VBE1.2

Use %ds
Comment 32 Zwane Mwaikambo 2007-02-13 16:29:42 UTC
Tested by Tobias Hain, i'll get this pushed upstream.
Comment 33 Zwane Mwaikambo 2007-02-13 22:03:48 UTC
Created attachment 10412 [details]
No EDID/DDC on VBE12

Updated for i386 & x86_64
Comment 34 Tobias H. 2007-04-29 03:31:02 UTC
Thanks to Zwane a fix has been integrated in vanilla kernel 2.6.21:

-- 8< --

    [PATCH] x86: Don't probe for DDC on VBE1.2
    
    VBE1.2 doesn't support function 15h (DDC) resulting in a 'hang' whilst
    uncompressing kernel with some video cards. Make sure we check VBE version
    before fiddling around with DDC.
    Tested on;
    
    i386, Chips & Technologies 65548 VESA VBE 1.2
    CONFIG_VIDEO_SELECT=Y
    CONFIG_FIRMWARE_EDID=Y
    
    Untested on x86_64.
    
    Signed-off-by: Zwane Mwaikambo <zwane@infradead.org>
    Signed-off-by: Andi Kleen <ak@suse.de>