Bug 49632

Summary: radeon: The kernel rejected CS,
Product: Mesa Reporter: execute.method
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=47039
Whiteboard:
i915 platform: i915 features:
Attachments: glxgears apitrace 5-8-12
glxgears apitrace without setting R600_STREAMOUT=1

Description execute.method 2012-05-08 04:24:24 UTC
Created attachment 61215 [details]
glxgears apitrace 5-8-12

glxgears:

radeon: The kernel rejected CS, see dmesg for more information.

chromium  --enable-webgl --ignore-gpu-blacklist:

radeon: The kernel rejected CS, see dmesg for more information.
EE r600_pipe.c:78 r600_create_fence - r600: too many concurrent fences


dmesg output:

[ 1306.131363] radeon 0000:01:00.0: forbidden register 0x00028354 at 166
[ 1306.131366] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !

Computer Info:


Linux 3.3.4-2-ARCH

0.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV730XT [Radeon HD 4670]

model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411
model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411
model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411
model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411
model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411
model name	: AMD FX(tm)-6100 Six-Core Processor             
cpu MHz		: 4013.411

X.Org version: 1.12.1
  dimensions:    1920x1080 pixels (508x285 millimeters)
  depth of root window:    24 planes
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
--
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV730
OpenGL version string: 2.1 Mesa 8.1-devel
OpenGL shading language version string: 1.30
OpenGL extensions:
    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture, 




Mesa and DDX built from git, tested for a few weeks (I'm a busy man).
Started when updated/rebuilt on 4-18-12. Built again on 5-6-12.

Official packages work.


Reproduciblility: Permanent

Similar to/Same as: https://bugs.freedesktop.org/show_bug.cgi?id=47039
Comment 1 execute.method 2012-05-08 04:38:35 UTC
Created attachment 61218 [details]
glxgears apitrace without setting R600_STREAMOUT=1
Comment 2 execute.method 2012-05-08 04:39:23 UTC
Seems to work now without forcing streamout, but last time I tried it was not affected by any of the changes I made to env.

Current variables:

export R600_ENABLE_ST3C=1
export VDPAU_DRIVER=r600
Comment 3 execute.method 2012-05-08 04:56:44 UTC
There is still an issue without streamout forced.

projectM-pulseaudio:

radeon: The kernel rejected CS, see dmesg for more information.

dmesg:

[  997.512250] [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!
Comment 4 execute.method 2012-05-08 05:51:18 UTC
apitrace of projectM:

http://db.tt/nnQvrkxq
Comment 5 Alex Deucher 2012-05-08 19:36:27 UTC
(In reply to comment #0)
> dmesg output:
> 
> [ 1306.131363] radeon 0000:01:00.0: forbidden register 0x00028354 at 166
> [ 1306.131366] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
> 

You need a newer kernel to use streamout.
Comment 6 execute.method 2012-05-09 03:55:23 UTC
Ok. I didn't realize that. I have also tried with 3.4rc8, with the same result. Did i miss something in building the kernel?

Also, what about projectM without streamout enabled?
Comment 7 execute.method 2012-05-09 04:15:06 UTC
(In reply to comment #6)
> Ok. I didn't realize that. I have also tried with 3.4rc8, with the same result.
> Did i miss something in building the kernel?
> 
> Also, what about projectM without streamout enabled?

Sorry, mean rc5.
Comment 8 Alex Deucher 2012-05-09 06:14:17 UTC
(In reply to comment #6)
> Ok. I didn't realize that. I have also tried with 3.4rc8, with the same result.
> Did i miss something in building the kernel?

Are you getting the same error about forbidden register 0x00028354?  That register is in the allowed list for 3.4 so you shouldn't be getting that error.

> 
> Also, what about projectM without streamout enabled?

Is there anything else in dmesg other than *ERROR* Failed to parse relocation -12?
Comment 9 execute.method 2012-05-09 06:36:57 UTC
No, there is nothing else in dmesg. Is there any more info you'd like me to gather?
Comment 10 Andreas Boll 2012-08-08 19:10:15 UTC
Can you test it with kernel 3.5 and current mesa-git?
There were streamout fixes for r700 in both kernel and mesa.

projectM-pulseaudio runs fine on my system.

Gallium 0.4 on AMD RV770 -- 2.1 Mesa 8.1-devel (git-be42a45)
Kernel 3.5 (enables streamout for r700 by default)
ColorTiling2D enabled

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.