Bug 36973 - [mi] EQ overflowing [...] infinite loop with neverball and kde with DE on (opengl) when changing resolutions
Summary: [mi] EQ overflowing [...] infinite loop with neverball and kde with DE on (op...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.5 (2009.10)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 11:03 UTC by Reartes Guillermo
Modified: 2011-07-15 06:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Reartes Guillermo 2011-05-08 11:03:05 UTC
Problem: In the opengl game neverball, if i switch to windowed 
mode and start to change resolutions, i finally crash xserver....
KDE is configured with DE eanbled (using OpenGL renderer).

OS: Fedora 15 beta (ADM64)

Package Versions:

kdebase.x86_64                        6:4.6.2-1.fc15       @updates-testing     
kdebase-debuginfo.x86_64              6:4.6.2-1.fc15      
@updates-testing-debuginfo
kdebase-libs.x86_64                   6:4.6.2-1.fc15       @updates-testing     
kdebase-runtime.x86_64                4.6.2-1.fc15         @updates-testing     
kdebase-runtime-flags.noarch          4.6.2-1.fc15         @updates-testing     
kdebase-runtime-libs.x86_64           4.6.2-1.fc15         @updates-testing     
kdebase-workspace.x86_64              4.6.2-6.fc15         @fedora              
kdebase-workspace-debuginfo.x86_64    4.6.2-6.fc15         @fedora-debuginfo    
kdebase-workspace-libs.x86_64         4.6.2-6.fc15         @fedora

xorg-x11-server-Xephyr.x86_64         1.10.1-14.fc15       @updates-testing
xorg-x11-server-Xorg.x86_64           1.10.1-14.fc15       @updates-testing
xorg-x11-server-common.x86_64         1.10.1-14.fc15       @updates-testing
xorg-x11-server-utils.x86_64          7.5-5.fc15           @fedora

xorg-x11-drv-ati.x86_64   6.14.1-1.20110504gita6d2dba6.fc15   @updates-testing

mesa-debuginfo.x86_64       7.11-0.8.20110506.0.fc15  
@updates-testing-debuginfo
mesa-dri-drivers.x86_64     7.11-0.8.20110506.0.fc15   @updates-testing         
mesa-dri-filesystem.x86_64  7.11-0.8.20110506.0.fc15   @updates-testing         
mesa-dri-llvmcore.x86_64    7.11-0.8.20110506.0.fc15   @updates-testing         
mesa-libGL.x86_64           7.11-0.8.20110506.0.fc15   @updates-testing         
mesa-libGLU.x86_64          7.11-0.8.20110506.0.fc15   @updates-testing

kernel  2.6.38.5-24.fc15.x86_64

Xorg.0.log.old:

[  2104.685] (II) RADEON(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
[  2122.395] [mi] EQ overflowing. The server is probably stuck in an infinite loop.
[  2122.399] 
Backtrace:
[  2122.417] 0: /usr/bin/X (xorg_backtrace+0x2f) [0x4a13df]
[  2122.417] 1: /usr/bin/X (mieqEnqueue+0x1e9) [0x4a08f9]
[  2122.417] 2: /usr/bin/X (xf86PostMotionEventM+0xa3) [0x47dae3]
[  2122.417] 3: /usr/bin/X (xf86PostMotionEventP+0x52) [0x47dc02]
[  2122.417] 4: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7fcab5545000+0x498b) [0x7fcab554998b]
[  2122.417] 5: /usr/bin/X (0x400000+0x6b538) [0x46b538]
[  2122.417] 6: /usr/bin/X (0x400000+0x119bf0) [0x519bf0]
[  2122.417] 7: /lib64/libpthread.so.0 (0x3bbde00000+0xf440) [0x3bbde0f440]
[  2122.418] 8: /lib64/libc.so.6 (ioctl+0x7) [0x3bbdad8bb7]
[  2122.418] 9: /usr/lib64/libdrm.so.2 (drmIoctl+0x28) [0x3bd2603338]
[  2122.418] 10: /usr/lib64/libdrm.so.2 (drmCommandWriteRead+0x1c) [0x3bd260549c]
[  2122.418] 11: /usr/lib64/libdrm_radeon.so.1 (0x7fcab7b25000+0x1bc9) [0x7fcab7b26bc9]
[  2122.418] 12: /usr/lib64/xorg/modules/drivers/radeon_drv.so (0x7fcab7d47000+0xd4905) [0x7fcab7e1b905]
[  2122.418] 13: /usr/lib64/xorg/modules/extensions/libdri2.so (DRI2SwapBuffers+0x25a) [0x7fcab8258bba]
[  2122.418] 14: /usr/lib64/xorg/modules/extensions/libdri2.so (0x7fcab8256000+0x39f3) [0x7fcab82599f3]
[  2122.418] 15: /usr/bin/X (0x400000+0x2ec11) [0x42ec11]
[  2122.418] 16: /usr/bin/X (0x400000+0x22e1a) [0x422e1a]
[  2122.418] 17: /lib64/libc.so.6 (__libc_start_main+0xed) [0x3bbda2143d]
[  2122.418] 18: /usr/bin/X (0x400000+0x23101) [0x423101]

Messages:

May  8 14:26:30 ulquiorra kernel: [ 2128.303056] radeon 0000:02:00.0: GPU lockup CP stall for more than 10000msec
May  8 14:26:30 ulquiorra kernel: [ 2128.303066] ------------[ cut here ]------------
May  8 14:26:30 ulquiorra kernel: [ 2128.303137] WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:248 radeon_fence_wait+0x2a8/0x32b [radeon]()
May  8 14:26:30 ulquiorra kernel: [ 2128.303145] Hardware name: System Product Name
May  8 14:26:30 ulquiorra kernel: [ 2128.303151] GPU lockup (waiting for 0x0003A781 last fence id 0x0003A77C)
May  8 14:26:30 ulquiorra kernel: [ 2128.303156] Modules linked in: usblp vfat fat usb_storage uas ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat xt_CHECKSUM iptable_mangle bridge 8021q garp sunrpc stp llc cpufreq_ondemand powernow_k8 freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables reiserfs snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_ca0106 snd_rawmidi snd_ac97_codec ac97_bus snd_seq snd_seq_device snd_pcm edac_core snd_timer edac_mce_amd asus_atk0110 serio_raw microcode sundance mii forcedeth snd soundcore snd_page_alloc k10temp i2c_nforce2 wmi virtio_net kvm_amd kvm ipv6 ata_generic pata_acpi firewire_ohci firewire_core crc_itu_t pata_amd video radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan]
May  8 14:26:30 ulquiorra kernel: [ 2128.303264] Pid: 1812, comm: kwin Not tainted 2.6.38.5-24.fc15.x86_64 #1
May  8 14:26:30 ulquiorra kernel: [ 2128.303270] Call Trace:
May  8 14:26:30 ulquiorra kernel: [ 2128.303287]  [<ffffffff8105510e>] warn_slowpath_common+0x83/0x9b
May  8 14:26:30 ulquiorra kernel: [ 2128.303297]  [<ffffffff810551c9>] warn_slowpath_fmt+0x46/0x48
May  8 14:26:30 ulquiorra kernel: [ 2128.303360]  [<ffffffffa00d81d2>] ? evergreen_gpu_is_lockup+0xba/0xc2 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303409]  [<ffffffffa009fa90>] radeon_fence_wait+0x2a8/0x32b [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303457]  [<ffffffffa009f538>] ? radeon_fence_destroy+0x0/0x5b [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303468]  [<ffffffff8106f1f6>] ? autoremove_wake_function+0x0/0x3d
May  8 14:26:30 ulquiorra kernel: [ 2128.303517]  [<ffffffffa00a0055>] radeon_sync_obj_wait+0x11/0x13 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303547]  [<ffffffffa00655da>] ttm_bo_wait+0xbf/0x17a [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303605]  [<ffffffffa00c5e78>] ? r600_cp_commit+0x2a/0x2d [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303628]  [<ffffffffa0067e75>] ttm_bo_move_accel_cleanup+0x9f/0x272 [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303676]  [<ffffffffa00a0187>] radeon_move_blit+0x120/0x13e [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303724]  [<ffffffffa00a038b>] radeon_move_ram_vram+0xc5/0xf0 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303735]  [<ffffffff810eae51>] ? vma_prio_tree_next+0x43/0x5a
May  8 14:26:30 ulquiorra kernel: [ 2128.303755]  [<ffffffffa006a4a2>] ? ttm_eu_list_ref_sub+0x29/0x43 [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303802]  [<ffffffffa00a06ee>] radeon_bo_move+0xe6/0x12a [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303821]  [<ffffffffa00667ff>] ttm_bo_handle_move_mem+0x1b8/0x299 [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303840]  [<ffffffffa00674b2>] ttm_bo_move_buffer+0xd4/0x10c [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303859]  [<ffffffffa006a4a2>] ? ttm_eu_list_ref_sub+0x29/0x43 [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303877]  [<ffffffffa00675a0>] ttm_bo_validate+0xb6/0xf4 [ttm]
May  8 14:26:30 ulquiorra kernel: [ 2128.303926]  [<ffffffffa00a1598>] radeon_bo_list_validate+0x8b/0xdc [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.303984]  [<ffffffffa00b1717>] radeon_cs_parser_relocs+0x198/0x1f5 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.304008]  [<ffffffffa00b1b53>] radeon_cs_ioctl+0xb7/0x1a6 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.304101]  [<ffffffffa0019861>] drm_ioctl+0x29e/0x37b [drm]
May  8 14:26:30 ulquiorra kernel: [ 2128.304112]  [<ffffffff811eb23d>] ? inode_has_perm+0x76/0x8c
May  8 14:26:30 ulquiorra kernel: [ 2128.304168]  [<ffffffffa00b1a9c>] ? radeon_cs_ioctl+0x0/0x1a6 [radeon]
May  8 14:26:30 ulquiorra kernel: [ 2128.304179]  [<ffffffff8104127e>] ? should_resched+0xe/0x2d
May  8 14:26:30 ulquiorra kernel: [ 2128.304188]  [<ffffffff81474290>] ? _cond_resched+0xe/0x22
May  8 14:26:30 ulquiorra kernel: [ 2128.304196]  [<ffffffff81124e6f>] ? might_fault+0x21/0x23
May  8 14:26:30 ulquiorra kernel: [ 2128.304205]  [<ffffffff811eb2f7>] ? file_has_perm+0xa4/0xc6
May  8 14:26:30 ulquiorra kernel: [ 2128.304214]  [<ffffffff8112f4f4>] do_vfs_ioctl+0x47e/0x4bf
May  8 14:26:30 ulquiorra kernel: [ 2128.304222]  [<ffffffff8112f58b>] sys_ioctl+0x56/0x7b
May  8 14:26:30 ulquiorra kernel: [ 2128.304231]  [<ffffffff81009bc2>] system_call_fastpath+0x16/0x1b
May  8 14:26:30 ulquiorra kernel: [ 2128.304238] ---[ end trace 9e4e01d860f687cc ]---
May  8 14:26:30 ulquiorra kernel: [ 2128.305463] radeon 0000:02:00.0: GPU softreset 
May  8 14:26:30 ulquiorra kernel: [ 2128.305471] radeon 0000:02:00.0:   GRBM_STATUS=0xE7730828
May  8 14:26:30 ulquiorra kernel: [ 2128.305478] radeon 0000:02:00.0:   GRBM_STATUS_SE0=0xFC000001
May  8 14:26:30 ulquiorra kernel: [ 2128.305484] radeon 0000:02:00.0:   GRBM_STATUS_SE1=0x00000007
May  8 14:26:30 ulquiorra kernel: [ 2128.305491] radeon 0000:02:00.0:   SRBM_STATUS=0x200000C0
May  8 14:26:30 ulquiorra kernel: [ 2128.305507] radeon 0000:02:00.0:   GRBM_SOFT_RESET=0x00007F6B
May  8 14:26:30 ulquiorra kernel: [ 2128.305615] radeon 0000:02:00.0:   GRBM_STATUS=0x00003828
May  8 14:26:30 ulquiorra kernel: [ 2128.305622] radeon 0000:02:00.0:   GRBM_STATUS_SE0=0x00000007
May  8 14:26:30 ulquiorra kernel: [ 2128.305628] radeon 0000:02:00.0:   GRBM_STATUS_SE1=0x00000007
May  8 14:26:30 ulquiorra kernel: [ 2128.305635] radeon 0000:02:00.0:   SRBM_STATUS=0x200000C0
May  8 14:26:30 ulquiorra kernel: [ 2128.306644] radeon 0000:02:00.0: GPU reset succeed
May  8 14:26:31 ulquiorra kernel: [ 2128.342189] CE: hpet increased min_delta_ns to 17280 nsec
May  8 14:26:31 ulquiorra kernel: [ 2128.374994] radeon 0000:02:00.0: WB enabled
May  8 14:26:31 ulquiorra kernel: [ 2128.391161] [drm] ring test succeeded in 1 usecs
May  8 14:26:31 ulquiorra kernel: [ 2128.391168] [drm] ib test succeeded in 1 usecs
May  8 14:26:42 ulquiorra kernel: [ 2139.337428] radeon 0000:02:00.0: GPU lockup CP stall for more than 10000msec
May  8 14:26:42 ulquiorra kernel: [ 2139.337438] ------------[ cut here ]------------
May  8 14:26:42 ulquiorra kernel: [ 2139.337509] WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:248 radeon_fence_wait+0x2a8/0x32b [radeon]()
May  8 14:26:42 ulquiorra kernel: [ 2139.337517] Hardware name: System Product Name
May  8 14:26:42 ulquiorra kernel: [ 2139.337523] GPU lockup (waiting for 0x0003A78F last fence id 0x0003A78A)
May  8 14:26:42 ulquiorra kernel: [ 2139.337528] Modules linked in: usblp vfat fat usb_storage uas ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat xt_CHECKSUM iptable_mangle bridge 8021q garp sunrpc stp llc cpufreq_ondemand powernow_k8 freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables reiserfs snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_ca0106 snd_rawmidi snd_ac97_codec ac97_bus snd_seq snd_seq_device snd_pcm edac_core snd_timer edac_mce_amd asus_atk0110 serio_raw microcode sundance mii forcedeth snd soundcore snd_page_alloc k10temp i2c_nforce2 wmi virtio_net kvm_amd kvm ipv6 ata_generic pata_acpi firewire_ohci firewire_core crc_itu_t pata_amd video radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan]
May  8 14:26:42 ulquiorra kernel: [ 2139.337637] Pid: 2958, comm: neverball Tainted: G        W   2.6.38.5-24.fc15.x86_64 #1
May  8 14:26:42 ulquiorra kernel: [ 2139.337643] Call Trace:
Comment 1 Reartes Guillermo 2011-07-14 11:16:23 UTC
Update:

I could not reproduce it with these package versions:

kdebase.x86_64                 6:4.6.3-1.fc15  @updates
kdebase-libs.x86_64            6:4.6.3-1.fc15  @updates
kdebase-runtime.x86_64         4.6.3-1.fc15    @updates
kdebase-runtime-flags.noarch   4.6.3-1.fc15    @updates
kdebase-runtime-libs.x86_64    4.6.3-1.fc15    @updates
kdebase-workspace.x86_64       4.6.3-5.fc15    @updates
kdebase-workspace-libs.x86_64  4.6.3-5.fc15    @updates

org-x11-server-Xephyr.x86_64   1.10.2-1.fc15   @updates                    
xorg-x11-server-Xorg.x86_64    1.10.2-1.fc15   @updates                    
xorg-x11-server-common.x86_64  1.10.2-1.fc15   @updates                    
xorg-x11-server-utils.x86_64   7.5-5.fc15      @koji-override-0/$releasever

xorg-x11-drv-ati.x86_64 6.14.1-2.20110525gitfe5c42f51.fc15 @updates

kernel 2.6.38.8-35.fc15.x86_64

mesa-dri-drivers.x86_64     7.11-0.11.20110525.0.fc15        @updates
mesa-dri-filesystem.x86_64  7.11-0.11.20110525.0.fc15        @updates
mesa-dri-llvmcore.x86_64    7.11-0.11.20110525.0.fc15        @updates
mesa-libGL.x86_64           7.11-0.11.20110525.0.fc15        @updates
mesa-libGLU.x86_64          7.11-0.11.20110525.0.fc15        @updates

neverball.x86_64            1.5.4-4.fc15   @fedora

I launched neverball, switched back and forth windowed/full-screen many times without problems.

In full-screen: tested all avaiable resolutions and none crashed (i did see some corruption in one case, but not crash).

In windowed,  tested all avaiable resolutions and none crashed

In fullscreen, switched to various non-native resolution and switched to windowed and no problem.

The xserver did not crash (Some graphical glitches remained till those areas were refreshed by kde/xorg).


All tests were performed with KDE DE Enabled (OpenGL Renderer).

Note: the following kernel parameter is used: radeon.pcie_gen2=1
Because i noticed that the card was used in gen1 only. 
Note2: Selinux is permissive, and a full reinstall was also performed.
Comment 2 Michel Dänzer 2011-07-15 06:58:47 UTC
Resolving per comment #1, thanks for the update.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.