Bug 61678 - SNA causes problems with DRI_PRIME
Summary: SNA causes problems with DRI_PRIME
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-02 09:41 UTC by Alexander Mezin
Modified: 2019-11-19 08:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Alexander Mezin 2013-03-02 09:41:27 UTC
When I run Xonotic on discrete gpu (DRI_PRIME=1), sometimes I see only black
screen, and dmesg is full of these messages:
[ 5172.729073] [drm:radeon_cs_parser_relocs] *ERROR* gem object lookup failed
0xa
[ 5172.729078] [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -2!

Radeon starts working again only after reboot.
This doesn't happen with UXA, so I think the problem is related to SNA.
Tested on versions 2.20.13 and 2.21.3 - no difference.
Comment 1 Chris Wilson 2013-03-02 09:55:48 UTC
Coincidence, I believe. As far as prime is concerned, we are asked to create a pixmap with an untiled bo and stride that is aligned to 256 (which is then rendered to by the other GPU). So you need to dig up a lot more details on the error to back track it to its origin first. See if the radeon has additional userspace debuginfo for why a command execution fails, and start piecing together the
Comment 2 Daniel Vetter 2013-03-04 16:35:07 UTC
Maybe Jerome has an idea ...
Comment 3 Alexander Mezin 2013-03-12 09:20:46 UTC
Tried to enable sna again today, and the bug disappeared. Not sure what caused it - since my previous attempt I updated mesa, kernel and intel xorg driver.
Comment 4 Alexander Mezin 2013-03-29 17:27:23 UTC
It disappeared because I enabled LLVM shader compiler.

With R600_USE_LLVM=0 the bug is still present (git drivers and mesa, kernel 3.8.5, xorg-server 1.13.1)

How can I enable more verbose debug output?
Comment 5 Martin Peres 2019-11-19 08:32:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/326.


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.