Bug 94581 - [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
Summary: [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2016-03-17 02:08 UTC by Vladislav Kamenev
Modified: 2019-10-23 13:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Graphic artifacts (258.91 KB, image/jpeg)
2016-03-21 23:27 UTC, Vladislav Kamenev
Details

Description Vladislav Kamenev 2016-03-17 02:08:18 UTC
Hi there. Im using laptop with hybrid graphics. Intel Core i5-2450m with integrated videocard and AMD Radeon HD 6650m as discrete.
My glxinfo output

glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.4
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:


And output with DRI_PRIME set.

DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS (DRM 2.43.0, LLVM 3.6.2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.4
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:


So, i guess when im using DRI_PRIME environmental variable as one - kernel tries to use discrete videocard. And when im trying to launch applications (glxgears, etracer, steam) i got many messages in dmesg like this
[ 1376.309602] [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
[ 1376.309620] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2!
[ 1376.822639] [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
[ 1376.822661] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2!


Looking forward to some discussion.
Comment 1 Vladislav Kamenev 2016-03-17 02:09:39 UTC
Also im using
uname -r
4.5.0-040500-generic
from kernel.ubuntu.com
Comment 2 Vladislav Kamenev 2016-03-21 23:27:13 UTC
Created attachment 122472 [details]
Graphic artifacts
Comment 3 Vladislav Kamenev 2016-03-21 23:29:20 UTC
Added screenshot with an graphic artifacts.
The right part of console is a Steam running with DRI_PRIME=1
And dmesg on the left.
Comment 4 Vladislav Kamenev 2016-03-21 23:51:43 UTC
[  326.627005] [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
[  326.627032] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2!
[  326.689902] radeon 0000:01:00.0: evergreen_cs_track_validate_cb:480 cb[0] bo too small (layer size 3379200, offset 0, max layer 1, bo size 81920, slice 13199)
[  326.689907] radeon 0000:01:00.0: evergreen_cs_track_validate_cb:484 problematic surf: (1280 660) (1 4 1 0 0 0 0)
[  326.689909] radeon 0000:01:00.0: evergreen_packet3_check:1948 invalid cmd stream 927
[  326.689938] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !
[  326.690222] [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xe
[  326.690239] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2!


New lines in dmesg appeared. 
DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS (DRM 2.43.0, LLVM 3.8.0)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.3.0-devel (git-dc9ecf5 2016-03-21 wily-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.3.0-devel (git-dc9ecf5 2016-03-21 wily-oibaf-ppa)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.3.0-devel (git-dc9ecf5 2016-03-21 wily-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
Comment 5 Vladislav Kamenev 2016-03-22 15:24:28 UTC
Fixed by enabling DRI3 on integrated card.
Comment 6 sunny639736@gmail.com (Spammer; Account disabled) 2019-07-21 18:17:05 UTC Comment hidden (spam)
Comment 7 aakashdsd26@gmail.com (Spammer; Account disabled) 2019-10-23 13:23:22 UTC Comment hidden (spam)


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.