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.
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
Maybe Jerome has an idea ...
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.
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?
-- 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.