Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400621 - LiveDVD-12.0: vmlinuz-3.1.5-gentoo: Kernel oops in fbcon_decor_ioctl()
Summary: LiveDVD-12.0: vmlinuz-3.1.5-gentoo: Kernel oops in fbcon_decor_ioctl()
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Team Anniversary
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 378027
  Show dependency tree
 
Reported: 2012-01-24 18:14 UTC by Martin Mokrejš
Modified: 2012-03-26 18:00 UTC (History)
0 users

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


Attachments
dmesg when booted with "nofb" (added_nofb.txt,30.71 KB, text/plain)
2012-01-25 09:55 UTC, Martin Mokrejš
Details
dmesg with x86 kernel, no extra options (dmesg-normal-x86.txt,30.71 KB, text/plain)
2012-01-25 13:52 UTC, Martin Mokrejš
Details
Xorg.0.log with default x86 kernel, no extra options (Xorg.0.log,33.00 KB, text/plain)
2012-01-25 13:53 UTC, Martin Mokrejš
Details
dmesg with x86 nofb kernel, no extra options (nofb-dmesg.txt,30.69 KB, text/plain)
2012-01-25 13:57 UTC, Martin Mokrejš
Details
Xorg.0.log with x86 nofb kernel, no extra options (nofb-Xorg.0.log,43.02 KB, text/plain)
2012-01-25 14:06 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2012-01-24 18:14:26 UTC
On an old ICH4M-based laptop I get a kernel crash. Searching Google gives me few hits to Gentoo only. It looks this is some Gentoo-specific patch being broken. I get the bug with Gentoo Live DVD 12.0 (x86 kernel).

Gentoo-2012 ~ # lspci
00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 21)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 21)
00:1d.0 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)                                                                                       
00:1d.2 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)                                                                                       
00:1d.7 USB controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)                                                                                                    
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)                                                                                                                               
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)                                                                                                                
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)                                                                                                                   
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)                                                                                                      
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)                                                                          
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)                                                                                                
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV350 [Mobility Radeon 9600 M10]                                                                                             
02:02.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)                                                                                                                         
02:04.0 Ethernet controller: Atheros Communications Inc. AR5413/AR5414 Wireless Network Adapter [AR5006X(S) 802.11abg] (rev 01)                                                                      
02:06.0 CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Controller (rev 02)                                                                                                                
02:06.1 FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller                                                                                                                         
Gentoo-2012 ~ # uname -a                                                                                                                                                                             
Linux Gentoo-2012 3.1.5-gentoo #1 SMP Thu Dec 29 15:01:16 UTC 2011 i686 Intel(R) Pentium(R) M processor 1.50GHz GenuineIntel GNU/Linux                                                               
Gentoo-2012 ~ #

[    0.476971] Linux agpgart interface v0.103
[    0.477159] agpgart-intel 0000:00:00.0: Intel 855PM Chipset
[    0.491770] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
[    0.491941] vesafb: mode is 1024x768x16, linelength=2048, pages=41
[    0.491945] vesafb: protected mode interface info at c000:5678
[    0.491949] vesafb: pmi: set display start = c00c56e6, set palette = c00c5720
[    0.491952] vesafb: pmi: ports = 3010 3016 3054 3038 303c 305c 3000 3004 30b0 30b2 30b4 
[    0.491961] vesafb: scrolling: redraw
[    0.491965] vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
[    0.492214] vesafb: framebuffer at 0xd8000000, mapped to 0xe0a00000, using 3072k, total 65536k
[    0.522882] Console: switching to colour frame buffer device 128x48
[    0.550616] fb0: VESA VGA frame buffer device
[    0.558043] [drm] Initialized drm 1.1.0 20060810
[    0.558087] [drm] radeon defaulting to kernel modesetting.
[    0.558090] [drm] radeon kernel modesetting enabled.
[    0.558137] checking generic (d8000000 4000000) vs hw (d8000000 8000000)
[    0.558140] fb: conflicting fb hw usage radeondrmfb vs VESA VGA - removing generic driver
[    0.558154] Console: switching to colour dummy device 80x25
[    0.562045] radeon 0000:01:00.0: power state changed by ACPI to D0
[    0.562051] radeon 0000:01:00.0: power state changed by ACPI to D0
[    0.562196] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[    0.562200] PCI: setting IRQ 10 as level-triggered
[    0.562206] radeon 0000:01:00.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10
[    0.562921] [drm] initializing kernel modesetting (RV350 0x1002:0x4E50 0x152D:0x6601).
[    0.562941] [drm] register mmio base: 0xD0100000
[    0.562944] [drm] register mmio size: 65536
[    0.567725] agpgart-intel 0000:00:00.0: AGP 2.0 bridge
[    0.571036] agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode
[    0.571075] radeon 0000:01:00.0: putting AGP V2 device into 4x mode
[    0.571101] radeon 0000:01:00.0: GTT: 256M 0xE0000000 - 0xEFFFFFFF
[    0.571106] [drm] Generation 2 PCI interface, using max accessible memory
[    0.571113] radeon 0000:01:00.0: VRAM: 128M 0x00000000D8000000 - 0x00000000DFFFFFFF (64M used)
[    0.571119] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    0.571122] [drm] Driver supports precise vblank timestamp query.
[    0.571134] [drm] radeon: irq initialized.
[    0.571463] [drm] Detected VRAM RAM=128M, BAR=128M
[    0.571467] [drm] RAM width 128bits DDR
[    0.575042] [TTM] Zone  kernel: Available graphics memory: 254344 kiB.
[    0.575045] [TTM] Initializing pool allocator.
[    0.575081] [drm] radeon: 64M of VRAM memory ready
[    0.575086] [drm] radeon: 256M of GTT memory ready.
[    0.575107] [drm] radeon: 1 quad pipes, 1 Z pipes initialized.
[    0.576155] radeon 0000:01:00.0: WB disabled
[    0.576279] [drm] Loading R300 Microcode
[    0.576595] [drm] radeon: ring at 0x00000000E0001000
[    0.576618] [drm] ring test succeeded in 1 usecs
[    0.576830] [drm] radeon: ib pool ready.
[    0.576850] [drm] ib test succeeded in 0 usecs
[    0.588035] [drm] Panel ID String: CPT                     
[    0.588039] [drm] Panel Size 1400x1050
[    0.613083] [drm] radeon legacy LVDS backlight initialized
[    0.633078] [drm] Radeon Display Connectors
[    0.633081] [drm] Connector 0:
[    0.633083] [drm]   VGA
[    0.633086] [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[    0.633089] [drm]   Encoders:
[    0.633091] [drm]     CRT1: INTERNAL_DAC1
[    0.633094] [drm] Connector 1:
[    0.633096] [drm]   LVDS
[    0.633097] [drm]   Encoders:
[    0.633100] [drm]     LCD1: INTERNAL_LVDS
[    0.633102] [drm] Connector 2:
[    0.633104] [drm]   S-video
[    0.633106] [drm]   Encoders:
[    0.633108] [drm]     TV1: INTERNAL_DAC2
[    0.652515] [drm] Radeon display connector VGA-1: No monitor connected or invalid EDID
[    0.652532] [drm] radeon: power management initialized
[    0.798264] BUG: unable to handle kernel NULL pointer dereference at 00000e34
[    0.798280] IP: [<c1227df1>] fbcon_decor_ioctl+0x369/0x639
[    0.798295] *pde = 00000000 
[    0.798300] Oops: 0000 [#1] SMP 
[    0.798307] Modules linked in:
[    0.798311] 
[    0.798316] Pid: 377, comm: fbcondecor_help Not tainted 3.1.5-gentoo #1 ATComputers  / 
[    0.798326] EIP: 0060:[<c1227df1>] EFLAGS: 00010206 CPU: 0
[    0.798332] EIP is at fbcon_decor_ioctl+0x369/0x639
[    0.798337] EAX: 00000e00 EBX: de805600 ECX: 00000400 EDX: 080b02a0
[    0.798343] ESI: ffffffea EDI: 00000000 EBP: bfcdccb8 ESP: dd371ee4
[    0.798349]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[    0.798355] Process fbcondecor_help (pid: 377, ti=dd370000 task=de8cc5d0 task.ti=dd370000)
[    0.798361] Stack:
[    0.798364]  de847000 ffff0000 00000000 04000060 080b02a0 b78d8010 de814b00 de458818
[    0.798376]  4adb5513 0000000a de847005 00000000 de401798 de45e928 00000101 00000004
[    0.798390]  dd7611c0 ffffffea c1227a88 de45e928 c1096925 de45e928 dd7611c8 de87aac0
[    0.798403] Call Trace:
[    0.798412]  [<c1227a88>] ? fbcon_decor_disable+0xb8/0xb8
[    0.798423]  [<c1096925>] ? do_vfs_ioctl+0x485/0x4be
[    0.798433]  [<c1089417>] ? fd_install+0x1b/0x37
[    0.798440]  [<c108a343>] ? do_sys_open+0x16b/0x175
[    0.798448]  [<c109698b>] ? sys_ioctl+0x2d/0x46
[    0.798458]  [<c13cc535>] ? syscall_call+0x7/0xb
[    0.798469]  [<c1030000>] ? ptrace_request+0xb3/0x551
[    0.798475] Code: 0f 84 eb 02 00 00 66 8b 4c 24 0e 66 85 c9 0f 84 dd 02 00 00 8b 54 24 10 66 85 d2 0f 84 d0 02 00 00 0f b7 7c 24 0a 0f b7 c9 01 f9 <3b> 48 34 0f 87 bd 02 00 00 0f b7 4c 24 0c 0f b7 d2 01 ca 3b 50 
[    0.798531] EIP: [<c1227df1>] fbcon_decor_ioctl+0x369/0x639 SS:ESP 0068:dd371ee4
[    0.798542] CR2: 0000000000000e34
[    0.798559] ---[ end trace be0a4e4255ebce2f ]---
[    0.799162] [drm] fb mappable at 0xD8040000
[    0.799169] [drm] vram apper at 0xD8000000
[    0.799174] [drm] size 5914624
[    0.799179] [drm] fb depth is 24
[    0.799183] [drm]    pitch is 5632
[    0.799341] fbcon: radeondrmfb (fb0) is primary device
[    0.895614] Console: switching to colour frame buffer device 175x65
[    0.928042] fb0: radeondrmfb frame buffer device
[    0.928208] drm: registered panic notifier
[    0.928364] [drm] Initialized radeon 2.11.0 20080528 for 0000:01:00.0 on minor 0



Reproducible: Always
Comment 1 Fernando (likewhoa) 2012-01-24 19:20:22 UTC
Can you boot with nofb boot option?
Comment 2 Martin Mokrejš 2012-01-25 09:55:29 UTC
Created attachment 299813 [details]
dmesg when booted with "nofb"

Adding "nofb" to the commandline does not help - I still do get the Oops. However, adding "nox" prevents the Oops, for an unknown reason.
Comment 3 Fernando (likewhoa) 2012-01-25 11:41:42 UTC
(In reply to comment #2)
> Created attachment 299813 [details]
> dmesg when booted with "nofb"
> 
> Adding "nofb" to the commandline does not help - I still do get the Oops.
> However, adding "nox" prevents the Oops, for an unknown reason.

The Oops happens only with KMS enabled. Post the dmesg on the 'nox' boot or output of 'cat /proc/cmdline'

I cannot reproduce this on my end and you're the first report of a kernel Oops using ATI.
Comment 4 Martin Mokrejš 2012-01-25 13:50:46 UTC
(In reply to comment #2)
> Created attachment 299813 [details]
> dmesg when booted with "nofb"
> 
> Adding "nofb" to the commandline does not help - I still do get the Oops.
> However, adding "nox" prevents the Oops, for an unknown reason.

Sorry but seems I misunderstood. I added the nofb to the commandline but picked up the very first entry in grub menu (x86). You probably wanted me to test the second option in the grub menu (x86 nofb). Will re-post the dmesg and Xorg.0.log files. ;-).

BTW: adding "nox" to the default x86 kernel does not really prevent the Oops. It just happened for me recently.
Comment 5 Martin Mokrejš 2012-01-25 13:52:30 UTC
Created attachment 299855 [details]
dmesg with x86 kernel, no extra options

As you can see the Oops happens with the default x86 kernel regardles one specified "nox" "nofb" "nox". Sure, "nofb" did not disable framebuffer. ;)
Comment 6 Martin Mokrejš 2012-01-25 13:53:17 UTC
Created attachment 299857 [details]
Xorg.0.log with default x86 kernel, no extra options
Comment 7 Fernando (likewhoa) 2012-01-25 13:56:42 UTC
You need to boot with the secondary kernel which not only sets nofb but also nomodeset which is what you need. Do not boot the default kernel.
Comment 8 Martin Mokrejš 2012-01-25 13:57:18 UTC
Created attachment 299859 [details]
dmesg with x86 nofb kernel, no extra options

With this nofb kernel there is no Oops but X does not start up.
Comment 9 Martin Mokrejš 2012-01-25 14:06:45 UTC
Created attachment 299865 [details]
Xorg.0.log with x86 nofb kernel, no extra options

X dies badly and I get a black screen with blinking cursor on the left upper corner. Switching to Alt+F1 or Alt+F12 works, luckily.

Not sure what is the real error from the Xorg.0.log file. Seems the last EE was overcome by a fallback so maybe this is some other bug:

[   108.374] (EE) AIGLX error: Calling driver entry point failed
[   108.379] (EE) AIGLX: reverting to software rendering
[   116.010] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
[   116.010] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   116.015] (II) RADEON(0): Setting screen physical size to 370 x 277
Comment 10 Fernando (likewhoa) 2012-03-26 17:29:24 UTC
please try 12.1 which will be out by april