Bug 531 - ati-drivers 12.4 fglrx module crash on startx (Gentoo)
Summary: ati-drivers 12.4 fglrx module crash on startx (Gentoo)
Status: CLOSED WONTFIX
Alias: None
Product: AMD Catalyst™Proprietary Display Driver
Classification: Unclassified
Component: Kernel Module (show other bugs)
Version: .archived
Hardware: Radeon HD 4000 Series Linux
: low normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2012-06-12 12:57 CDT by spamzooi1
Modified: 2013-05-08 00:06 CDT (History)
0 users



Attachments
Full dmesg output (30.81 KB, text/plain)
2012-06-12 12:57 CDT, spamzooi1
Details
Xorg log file (30.49 KB, text/plain)
2012-06-12 12:58 CDT, spamzooi1
Details
Xorg config file (684 bytes, text/plain)
2012-06-12 12:58 CDT, spamzooi1
Details
List of loaded kernel modules (4.88 KB, text/plain)
2012-06-12 12:58 CDT, spamzooi1
Details
lspci -v (11.43 KB, text/plain)
2012-06-12 12:59 CDT, spamzooi1
Details
emerge --info (4.07 KB, text/plain)
2012-06-12 12:59 CDT, spamzooi1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spamzooi1 2012-06-12 12:57:48 CDT
Created attachment 489 [details]
Full dmesg output

Description of problem: 
When X is started, the fglrx module is loaded but crashes about immediately. Oddly enough, the X server does start and seem to work properly, even when starting applications (like wine games). Even the graphics are fine.

As soon as the application is closed and another X application is started, the system locks up. Sometimes the Caps-Lock keyboard light blinks and the PC reboots soon afterwards, meaning some kind of kernel panic occurred.

I have trouble debugging, because this error occurs in a livecd environment and the (fullscreen) X server prevents me from reaching the console after the panic.

Just after X is started the following error message appears in dmesg:

fglrx_pci 0000:01:00.0: irq 47 for MSI/MSI-X
[fglrx] Firegl kernel thread PID: 19453
[fglrx] Firegl kernel thread PID: 19454
[fglrx] Firegl kernel thread PID: 19455
divide error: 0000 [#1] 
[fglrx] IRQ 47 Enabled
SMP 
Modules linked in: ipv6 snd_hda_codec_hdmi fglrx(P) snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_pcm snd_timer iTCO_wdt snd atl1 i2c_i801 iTCO_vendor_support intel_agp joydev pcspkr intel_gtt mii i2c_core floppy snd_page_alloc agpgart processor button thermal_sys sha256_generic tg3 libphy e1000 fuse xfs exportfs jfs ext4 jbd2 raid10 dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log dm_mod scsi_wait_scan hid_sunplus hid_sony hid_samsung hid_pl hid_petalynx hid_monterey hid_microsoft hid_logitech hid_gyration hid_ezkey hid_cypress hid_chicony hid_cherry hid_belkin hid_apple hid_a4tech sl811_hcd usbhid ohci_hcd ssb uhci_hcd usb_storage ehci_hcd usbcore usb_common aic94xx libsas lpfc qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_transport_sas mptfc scsi_transport_fc scsi_tgt mptspi mptscsih mptbase atp870u dc395x qla1280 imm parport dmx3191d sym53c8xx qlogicfas408 gdth advansys initio BusLogic arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise pata_pcmcia pcmcia pcmcia_core

Pid: 19453, comm: firegl Tainted: P           O 3.2.12-gentoo #1 System manufacturer P5K SE/EPU/P5K SE/EPU
EIP: 0060:[<f9ae065b>] EFLAGS: 00010246 CPU: 3
EIP is at __udivdi3+0x2a/0x34 [fglrx]
EAX: 3b9aca00 EBX: 00000000 ECX: 00000000 EDX: 00000000
ESI: 3b9aca00 EDI: 00000000 EBP: f2083d84 ESP: f2083d74
 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process firegl (pid: 19453, ti=f2082000 task=f72eb9a0 task.ti=f2082000)
Stack:
 00000000 f044cc80 3b9aca00 00000000 f2083dd4 f9ae1c6a 3b9aca00 00000000
 00000000 00000000 00000003 00000001 f2083dd4 f9b1473f f9d42c8c f2083dd4
 f9ae1bd0 0000000d 00000004 f9c05264 00001336 00000001 f2083e4c f044cc80
Call Trace:
 [<f9ae1c6a>] KAS_Event_WaitForEvent+0x5d/0x430 [fglrx]
 [<f9b1473f>] ? firegl_trace+0x1f/0x180 [fglrx]
 [<f9ae1bd0>] ? KAS_Event_Set+0x53/0x5d [fglrx]
 [<f9afb5c2>] MCIL_KernelEvent+0x152/0x360 [fglrx]
 [<f9bf1f7a>] IRQMGR_KernelEvent_WaitForSignal+0x5a/0x60 [fglrx]
 [<f9bd93c9>] PassiveRing_WorkerThreadRoutine+0xb9/0x300 [fglrx]
 [<c0101aa6>] ? __switch_to+0x116/0x1a5
 [<c04149dc>] ? __schedule+0x633/0x6b0
 [<c012992a>] ? try_to_wake_up+0x1b7/0x1c1
 [<f9b1473f>] ? firegl_trace+0x1f/0x180 [fglrx]
 [<f9adeb66>] ? FGLDRM_name_info+0xac/0xac [fglrx]
 [<f9bedd79>] IRQMGR_WorkerThreadRoutine+0x19/0x40 [fglrx]
 [<f9adeb66>] ? FGLDRM_name_info+0xac/0xac [fglrx]
 [<f9afefdf>] IRQMGR_CallbackWrapper+0xf/0x20 [fglrx]
 [<f9adeb9c>] kasThreadRoutineHelper+0x36/0x54 [fglrx]
 [<f9bedd60>] ? IRQMGR_QueueDpc+0x30/0x30 [fglrx]
 [<c0145076>] kthread+0x62/0x67
 [<c0145014>] ? kthread_worker_fn+0x111/0x111
 [<c041bcb6>] kernel_thread_helper+0x6/0xd
Code: c3 55 89 e5 57 56 53 51 8d 4d 08 8b 31 8b 79 04 8b 59 08 89 f0 89 fa 89 d1 31 d2 85 c9 89 c6 74 08 89 c8 31 d2 f7 f3 89 c1 89 f0 <f7> f3 89 ca 59 5b 5e 5f 5d c3 55 89 e5 56 53 51 8d 4d 08 8b 19 
EIP: [<f9ae065b>] __udivdi3+0x2a/0x34 [fglrx] SS:ESP 0068:f2083d74
---[ end trace b8259a8cccce52b6 ]---
[fglrx] Gart USWC size:1032 M.
[fglrx] Gart cacheable size:407 M.
[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[fglrx] Reserved FB block: Unshared offset:fcc5000, size:33b000 
[fglrx] Reserved FB block: Unshared offset:1fffb000, size:5000

I also tried to compile the 12.4 driver directly from the AMD site, but this caused some compile errors:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5812:28: error: 'TS_USEDFPU' undeclared (first use in this function)
It compiles after applying this patch: http://phoronix.com/forums/showthread.php?68922-Patch-to-compile-fgrlx-module-on-Linux-3-3-rc4-with-x86-32-bit-arch
Sadly it still crashes afterwards.

Hardware:
Intel Core 2 Quad Q8400 @
6GB Kingston ValueRAM
Asus P5K/SE
ATI Radeon HD 4770

Steps to reproduce:
1. Build fglrx module for x86 kernel 3.2.12
2. startx

Actual result: 
Module crash

Expected result: 
No crash
Comment 1 spamzooi1 2012-06-12 12:58:11 CDT
Created attachment 490 [details]
Xorg log file
Comment 2 spamzooi1 2012-06-12 12:58:28 CDT
Created attachment 491 [details]
Xorg config file
Comment 3 spamzooi1 2012-06-12 12:58:44 CDT
Created attachment 492 [details]
List of loaded kernel modules
Comment 4 spamzooi1 2012-06-12 12:59:00 CDT
Created attachment 493 [details]
lspci -v
Comment 5 spamzooi1 2012-06-12 12:59:18 CDT
Created attachment 494 [details]
emerge --info
Comment 6 spamzooi1 2012-06-12 13:48:39 CDT
Found a more official link to the fglrx module patch:
http://ubuntuone.com/5gNgEmVfzs3ytD5QZ2YGCi
Comment 7 spamzooi1 2012-06-12 17:28:31 CDT
I also tried:
* gentoo-sources-3.2.1-r2 with ati-drivers-12.2
* gentoo-sources-3.0.17-r2 with ati-drivers-12.2

These fglrx modules cause the same errors in dmesg.
Comment 8 Michael Cronenworth 2013-04-24 22:57:17 CDT
This message is a reminder that your bug is marked as Catalyst 12.4.

The current Catalyst version is 13.4.

Approximately 7 days from now the Bugzilla administrator will be removing the 12.4 version. At that time your bug will be CLOSED as WONTFIX.

Bug Reporter: Thank you for reporting this issue. However, the Bugzilla administrator provides this as a unofficial, free service to AMD customers, and I like to keep my systems neat and tidy. If you would like to keep your bug from being closed, please try a new Catalyst version and update the 'version' field if the issue still occurs.

If you are unable to update the version, please make a comment and someone will change it for you.
Comment 9 Michael Cronenworth 2013-05-08 00:04:06 CDT
This bug is being closed due to the 'version' being 12.4 after 14 days of the previous closure notice.

Thank you for your bug report.