Bug 27283

Summary: last xf86-video-ati git (24/03/100) : drm:radeon_cs_ioctl *ERROR* Failed to parse relocation and gpu lockup
Product: xorg Reporter: Alexandre Derumier <aderumier>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.5 (2009.10)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
here the dmesg (same errors with dynpm=0) none

Description Alexandre Derumier 2010-03-24 00:23:54 UTC
Hi, since i'v compiled last xf86-video-ati git (24/03/100), I have many errors (i'm using drm testing branch with pm patches)


with dynpm=1 


drm] Requested: e: 30000 m: 40500 p: 16
[drm] GUI not idle!!!
radeon 0000:01:00.0: GPU lockup CP stall for more than 1000msec
------------[ cut here ]------------
WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:234 radeon_fence_wait+0x26f/0x2c0 [radeon]()
Hardware name: Studio 1537
GPU lockup (waiting for 0x00002A7F last fence id 0x00002A72)
Modules linked in: nls_utf8 cifs fuse ipv6 usbhid hid snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device joydev dell_wmi arc4 uvcvideo videodev v4l1_compat ecb snd_hda_codec_atihdmi snd_pcm_oss rtc_cmos rtc_core rtc_lib snd_mixer_oss video output snd_hda_codec_idt sdhci_pci sdhci firewire_ohci wmi ac firewire_core iwlagn snd_hda_intel battery mmc_core crc_itu_t led_class snd_hda_codec snd_hwdep iwlcore thermal dell_laptop ricoh_mmc psmouse button processor snd_pcm snd_timer mac80211 uhci_hcd snd soundcore snd_page_alloc sg cfg80211 pcspkr serio_raw dcdbas rfkill evdev i2c_i801 intel_agp ehci_hcd iTCO_wdt iTCO_vendor_support usbcore tg3 libphy ext4 mbcache jbd2 crc16 sr_mod sd_mod cdrom ahci libata scsi_mod radeon ttm drm_kms_helper drm agpgart i2c_algo_bit i2c_core
Pid: 4080, comm: Xorg Tainted: G        W  2.6.33-50662-g434eab5-dirty #1
Call Trace:
 [<c103e9be>] ? warn_slowpath_common+0x6e/0xb0
 [<f8210b1f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c103ea4b>] ? warn_slowpath_fmt+0x2b/0x30
 [<f8210b1f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c105ad70>] ? autoremove_wake_function+0x0/0x40
 [<f8226de5>] ? radeon_ib_get+0xe5/0x1d0 [radeon]
 [<c10c5034>] ? unmap_vmas+0x2c4/0x6f0
 [<f8264f98>] ? r600_vb_ib_get+0x18/0x60 [radeon]
 [<f8264ff0>] ? r600_blit_prepare_copy+0x10/0xe70 [radeon]
 [<f824edf2>] ? r600_copy_blit+0x42/0xc0 [radeon]
 [<f8210d37>] ? radeon_fence_create+0xa7/0x130 [radeon]
 [<c10c5556>] ? zap_page_range+0xf6/0x110
 [<f82114ca>] ? radeon_move_blit+0x12a/0x1d0 [radeon]
 [<f821160b>] ? radeon_bo_move+0x9b/0x370 [radeon]
 [<f80f8706>] ? ttm_bo_unmap_virtual+0x46/0x60 [ttm]
 [<f8211570>] ? radeon_bo_move+0x0/0x370 [radeon]
 [<f80f8809>] ? ttm_bo_handle_move_mem+0xe9/0x330 [ttm]
 [<f80fa352>] ? ttm_bo_move_buffer+0x112/0x130 [ttm]
 [<f80fa3f7>] ? ttm_bo_validate+0x87/0x110 [ttm]
 [<f82123d5>] ? radeon_bo_list_validate+0x55/0x90 [radeon]
 [<f8227cb4>] ? radeon_cs_ioctl+0x74/0x160 [radeon]
 [<f80a347a>] ? drm_ioctl+0x17a/0x380 [drm]
 [<f8227c40>] ? radeon_cs_ioctl+0x0/0x160 [radeon]
 [<c10aeb29>] ? generic_file_aio_write+0xa9/0xc0
 [<c10e1a95>] ? do_sync_write+0xb5/0xf0
 [<f8210e04>] ? radeon_ttm_fault+0x14/0x20 [radeon]
 [<f80a3300>] ? drm_ioctl+0x0/0x380 [drm]
 [<c10efadb>] ? vfs_ioctl+0x2b/0xa0
 [<c10efcb9>] ? do_vfs_ioctl+0x79/0x5c0
 [<f8210df0>] ? radeon_ttm_fault+0x0/0x20 [radeon]
 [<c10e1c26>] ? rw_verify_area+0x66/0xe0
 [<c10e2671>] ? vfs_write+0x121/0x190
 [<c10f0276>] ? sys_ioctl+0x76/0x90
 [<c100381f>] ? sysenter_do_call+0x12/0x28
---[ end trace 14612d8cbaf3ab99 ]---
[drm] Disabling audio support
radeon 0000:01:00.0: f73cf500 unpin not necessary
radeon 0000:01:00.0: GPU softreset 
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200000C0
radeon 0000:01:00.0:   R_008020_GRBM_SOFT_RESET=0x00007FEE
radeon 0000:01:00.0: R_008020_GRBM_SOFT_RESET=0x00000001
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200080C0
radeon 0000:01:00.0: GPU reset succeed
[drm] Clocks initialized !
[drm] ring test succeeded in 1 usecs
[drm] ib test succeeded in 1 usecs
[drm] Enabling audio support
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] Setting: e: 30000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Setting: e: 11000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] Setting: e: 30000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Setting: e: 11000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] Setting: e: 30000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Setting: e: 11000
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm] Requested: e: 11000 m: 40500 p: 16
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] GUI not idle!!!
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] GUI not idle!!!
radeon 0000:01:00.0: GPU lockup CP stall for more than 1056msec
------------[ cut here ]------------
WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:234 radeon_fence_wait+0x26f/0x2c0 [radeon]()
Hardware name: Studio 1537
GPU lockup (waiting for 0x00003C59 last fence id 0x00003C4B)
Modules linked in: nls_utf8 cifs fuse ipv6 usbhid hid snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device joydev dell_wmi arc4 uvcvideo videodev v4l1_compat ecb snd_hda_codec_atihdmi snd_pcm_oss rtc_cmos rtc_core rtc_lib snd_mixer_oss video output snd_hda_codec_idt sdhci_pci sdhci firewire_ohci wmi ac firewire_core iwlagn snd_hda_intel battery mmc_core crc_itu_t led_class snd_hda_codec snd_hwdep iwlcore thermal dell_laptop ricoh_mmc psmouse button processor snd_pcm snd_timer mac80211 uhci_hcd snd soundcore snd_page_alloc sg cfg80211 pcspkr serio_raw dcdbas rfkill evdev i2c_i801 intel_agp ehci_hcd iTCO_wdt iTCO_vendor_support usbcore tg3 libphy ext4 mbcache jbd2 crc16 sr_mod sd_mod cdrom ahci libata scsi_mod radeon ttm drm_kms_helper drm agpgart i2c_algo_bit i2c_core
Pid: 4080, comm: Xorg Tainted: G        W  2.6.33-50662-g434eab5-dirty #1
Call Trace:
 [<c103e9be>] ? warn_slowpath_common+0x6e/0xb0
 [<f8210b1f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c103ea4b>] ? warn_slowpath_fmt+0x2b/0x30
 [<f8210b1f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c105ad70>] ? autoremove_wake_function+0x0/0x40
 [<f80f7f10>] ? ttm_bo_wait+0x100/0x1a0 [ttm]
 [<f8225ae4>] ? radeon_gem_wait_idle_ioctl+0x84/0x110 [radeon]
 [<f80a347a>] ? drm_ioctl+0x17a/0x380 [drm]
 [<f8225a60>] ? radeon_gem_wait_idle_ioctl+0x0/0x110 [radeon]
 [<c1064fdb>] ? ktime_get+0x5b/0xf0
 [<c100be5b>] ? restore_i387_fxsave+0x6b/0x80
 [<f80a3300>] ? drm_ioctl+0x0/0x380 [drm]
 [<c10efadb>] ? vfs_ioctl+0x2b/0xa0
 [<c10efcb9>] ? do_vfs_ioctl+0x79/0x5c0
 [<c100c57b>] ? restore_i387_xstate+0x19b/0x270
 [<c10f0276>] ? sys_ioctl+0x76/0x90
 [<c100381f>] ? sysenter_do_call+0x12/0x28
---[ end trace 14612d8cbaf3ab9a ]---
[drm] Disabling audio support
radeon 0000:01:00.0: f73cf500 unpin not necessary
radeon 0000:01:00.0: GPU softreset 
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200000C0
radeon 0000:01:00.0:   R_008020_GRBM_SOFT_RESET=0x00007FEE
radeon 0000:01:00.0: R_008020_GRBM_SOFT_RESET=0x00000001
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200080C0
radeon 0000:01:00.0: GPU reset succeed
[drm] Clocks initialized !
[drm] ring test succeeded in 1 usecs
[drm] ib test succeeded in 1 usecs
[drm] Enabling audio support
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Requested: e: 30000 m: 40500 p: 16
[drm] Setting: e: 30000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm] Setting: e: 11000
[drm] Requested: e: 11000 m: 40500 p: 16
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !




without dynpm

[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation !
Comment 1 Alex Deucher 2010-03-24 00:31:15 UTC
Please attach your full dmesg.
Comment 2 Alexandre Derumier 2010-03-24 02:16:02 UTC
Created attachment 34398 [details]
here the dmesg (same errors with dynpm=0)
Comment 3 Michel Dänzer 2010-03-24 05:07:58 UTC
I was also getting frequent GPU lockups with current drm-radeon-testing. Reverting commit 924788672f9c802a4c8e6bc8d88fbc2c9b2e3089 ('drm/radeon/bo: add some fallback placements for VRAM only objects.') seems to help here, does that help for you as well?
Comment 4 Alexandre Derumier 2010-03-24 06:04:50 UTC
could you tell me the git command to revert the commit ?

(i'm noob with git, sorry ;)
Comment 5 Michel Dänzer 2010-03-24 06:09:47 UTC
E.g.

git show 924788672f9c802a4c8e6bc8d88fbc2c9b2e3089|patch -p1 -R

will revert it in your working tree.
Comment 6 Alexandre Derumier 2010-03-24 10:39:50 UTC
ok, i'm compiling the kernel with revert commit.

something strange, the errors happends only when I use my external hdmi monitor at work.

if i use my internal lvds laptop, i don't have any error.

my hdmi monitor use higher resolution, maybe use more vram ???

I'll tomorrow at work with the revert commit and my external monitor.

thanks for the help!
Comment 7 Alexandre Derumier 2010-03-25 00:08:04 UTC
Hi, i've tried with the revert commit, it doesn't help :(

i'll try without the pm patches to see if it can be the problem.



[drm] GUI not idle!!!
radeon 0000:01:00.0: GPU lockup CP stall for more than 1033msec
------------[ cut here ]------------
WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:234 radeon_fence_wait+0x26f/0x2c0 [radeon]()
Hardware name: Studio 1537
GPU lockup (waiting for 0x000062E3 last fence id 0x000062DA)
Modules linked in: fuse nls_utf8 cifs ipv6 usbhid hid snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_hda_codec_atihdmi uvcvideo videodev arc4 video rtc_cmos rtc_core sdhci_pci snd_pcm_oss v4l1_compat dell_wmi snd_mixer_oss joydev ecb snd_hda_codec_idt rtc_lib output uhci_hcd snd_hda_intel sdhci battery wmi ac iwlagn snd_hda_codec snd_hwdep firewire_ohci firewire_core crc_itu_t mmc_core led_class button snd_pcm snd_timer iwlcore processor mac80211 snd soundcore snd_page_alloc thermal ricoh_mmc dell_laptop cfg80211 rfkill ehci_hcd iTCO_wdt iTCO_vendor_support psmouse intel_agp tg3 usbcore i2c_i801 libphy dcdbas evdev pcspkr sg serio_raw ext4 mbcache jbd2 crc16 sr_mod sd_mod cdrom ahci libata scsi_mod radeon ttm drm_kms_helper drm agpgart i2c_algo_bit i2c_core
Pid: 4093, comm: Xorg Tainted: G        W  2.6.33-50669-g65965f4-dirty #1
Call Trace:
 [<c103e9be>] ? warn_slowpath_common+0x6e/0xb0
 [<f8210a9f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c103ea4b>] ? warn_slowpath_fmt+0x2b/0x30
 [<f8210a9f>] ? radeon_fence_wait+0x26f/0x2c0 [radeon]
 [<c105ad70>] ? autoremove_wake_function+0x0/0x40
 [<f8226d75>] ? radeon_ib_get+0xe5/0x1d0 [radeon]
 [<c12b5f7c>] ? __mutex_lock_slowpath+0x1fc/0x2d0
 [<f8227c3f>] ? radeon_cs_ioctl+0x6f/0x190 [radeon]
 [<f80a347a>] ? drm_ioctl+0x17a/0x380 [drm]
 [<f8227bd0>] ? radeon_cs_ioctl+0x0/0x190 [radeon]
 [<c100be5b>] ? restore_i387_fxsave+0x6b/0x80
 [<f80a3300>] ? drm_ioctl+0x0/0x380 [drm]
 [<c10efadb>] ? vfs_ioctl+0x2b/0xa0
 [<c10efcb9>] ? do_vfs_ioctl+0x79/0x5c0
 [<c100c57b>] ? restore_i387_xstate+0x19b/0x270
 [<c10f0276>] ? sys_ioctl+0x76/0x90
 [<c100381f>] ? sysenter_do_call+0x12/0x28
---[ end trace 336800473a73cb89 ]---
[drm] Disabling audio support
radeon 0000:01:00.0: f7346000 unpin not necessary
radeon 0000:01:00.0: GPU softreset 
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200010C0
radeon 0000:01:00.0:   R_008020_GRBM_SOFT_RESET=0x00007FEE
radeon 0000:01:00.0: R_008020_GRBM_SOFT_RESET=0x00000001
radeon 0000:01:00.0:   R_008010_GRBM_STATUS=0xA0003030
radeon 0000:01:00.0:   R_008014_GRBM_STATUS2=0x00000003
radeon 0000:01:00.0:   R_000E50_SRBM_STATUS=0x200080C0
radeon 0000:01:00.0: GPU reset succeed
Comment 8 Alexandre Derumier 2010-03-25 00:18:33 UTC
Hi again, 

i try an old version of my xf86-video-ati driver(from 21 march), and i don't have the errors. (with same drm testing branch with pm patches).

so i think that the problem come from the last patchs of xf86-video-ati

r6xx+ EXA/Xv: add a R600SetAccelState functionmaster	
r6xx+ EXA: always use a temp surface for overlapping copies1
r6xx+ EXA: always use the accel_state state in DoPrepareCopy
r6xx EXA/Xv: track src/dst domains	
Comment 9 Alex Deucher 2010-03-25 07:30:35 UTC

*** This bug has been marked as a duplicate of bug 27284 ***
Comment 10 Felipe Contreras 2010-08-05 05:46:35 UTC
I'm also getting this error:
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!

linux 2.6.35
xf86-video-ati a3c59c6

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.