Bug 34096 - r300: Cannot get a relocation in radeon_drm_cs_write_reloc.
Summary: r300: Cannot get a relocation in radeon_drm_cs_write_reloc.
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL: http://www.minecraft.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 10:47 UTC by Sven Arvidsson
Modified: 2012-02-13 06:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
more dmesg output (15.87 KB, application/x-gzip)
2011-02-09 10:47 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2011-02-09 10:47:27 UTC
Created attachment 43168 [details]
more dmesg output

When starting the game Minecraft, I'm getting these messages in the terminal:

radeon: The kernel rejected CS, see dmesg for more information.
r300: Cannot get a relocation in radeon_drm_cs_write_reloc.

dmesg:
[  527.282839] [drm:r100_packet3_load_vbpntr] *ERROR* No reloc for packet3 47
[  527.282841] [drm] ib[13751]=0xC0052F00
[  527.282842] [drm] ib[13752]=0x00000023
[  527.282843] [drm] ib[13753]=0x08010803
[  527.282844] [drm] ib[13754]=0x000EA840
[  527.282845] [drm] ib[13755]=0x000EA858
[  527.282846] [drm] ib[13756]=0x00000802
[  527.282847] [drm] ib[13757]=0x000EA84C
[  527.282849] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

If needed, I will try and bisect when I have more time.

System environment:
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- GPU: RV570
-- Model: Asus EAX1950Pro 256MB
-- Display connector: DVI
-- xf86-video-ati: 6.13.2
-- xserver: 1.9.4
-- mesa: 04c5cc5b8bec1f34f2405b08fd0d9ed6bd70ea61
-- drm: 2.4.23
-- kernel: 2.6.37
Comment 1 Sven Arvidsson 2011-02-17 13:27:30 UTC
Bisecting leads to this:

c95bc1224a4b20b9470ddcb37b5f78975991073b is the first bad commit
commit c95bc1224a4b20b9470ddcb37b5f78975991073b
Author: Marek Olšák <maraeo@gmail.com>
Date:   Mon Feb 7 02:00:44 2011 +0100

    r300g: use the new vertex buffer manager

:040000 040000 4be08dc19f4fa4e1de6b1b259c6bd481b2fc33e5 28f8c721e519137890b5082fdff66671dbcfacb0 M	src
Comment 2 Marek Olšák 2011-02-18 05:00:59 UTC
Commit 449c4f3706bb479aaa3921cd8e6edc62e80c6e5b should fix this. Can you test please?
Comment 3 Sven Arvidsson 2011-02-18 06:22:52 UTC
Confirmed, no more problems!
Comment 4 414N 2012-02-09 06:00:05 UTC
Having this problem too with a mesa built from a 2 days old git snapshot.
The problem occurs when trying to launch a WebGL demo (http://www.chromeexperiments.com/detail/glass-shader/) using Firefox 10.0 (x86_64).
On the shell the following message appears:

radeon: Cannot get a relocation in radeon_drm_cs_write_reloc.

and then Firefox crashes.
Reading the previous comments I looked at dmesg too and the following happens:
1) When using a 3.1.0 kernel, some lines similar to those already mentioned in the above comments appear;
2) When using a 3.2.5 kernel, nothing appears in dmesg anymore after Firefox crashing.
I tried using the 3.2.5 kernel because I thought that some changes undergone in libdrm would only be available with a newer kernel.
My system specs follow:
CPU: AMD Athlon 64 FX-55
GPU: ATI Technologies Inc R420 JP [Radeon X800XT]
OS: Slackware64 13.37
Mesa git snapshot taken on February, the 7th
libdrm-2.4.31

If more information is needed, please tell me.
Comment 5 Sven Arvidsson 2012-02-09 06:05:40 UTC
414N : It's probably a better idea to open a new bug for this, it might not be the same problem.
Comment 6 414N 2012-02-13 06:06:29 UTC
(In reply to comment #5)
> 414N : It's probably a better idea to open a new bug for this, it might not be the same problem.

Thanks for the advice. I just opened bug 45993 for my problem


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.