Created attachment 536666 [details] Xorg.0.log.old (from broken xorg-server) It seems that x11-base/xorg-server-1.20.0 either reintroduces the issue I've been hitting before, or something very similar. Symptoms: 1. Very often (90% of the time) first start of xorg-server results in totally glitched screen (usually a lot of gray and/or random mixed parts of what was earlier on screen). I haven't been able to determine whether the display is actually operational or hanged. 2. In the remaining 1 out of 10 boots, my Xfce starts with a few glitches. However, when I open terminal and start typing, new artifacts quickly appear and soon fonts become completely unreadable and the screen looks like puzzle made of distorted font letters. 3. If I go to tty, restart lightdm, xorg starts fine the second time. There are still artifacts sometimes, and sometimes high CPU usage but it's much better (almost usable). 4. dmesg is full of this (both on first and second Xorg start): Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xc Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2! Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xc Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2! Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_parser_relocs [radeon]] *ERROR* gem object lookup failed 0xc Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse relocation -2! Jun 21 15:03:14 pomiot kernel: radeon 0000:02:00.0: evergreen_cs_track_validate_texture:855 texture bo too small (layer size 4864, offset 0, max lax layer 1, depth 1, bo size 4096) (64 19) Jun 21 15:03:14 pomiot kernel: [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream ! [the last two lines repeating a lot] 5. Downgrading to 1.19.5-r2 solves the issues.
Can you try with these two patches? https://cgit.freedesktop.org/xorg/xserver/commit/?id=3da999a0390407d512bf784e4faf01482bfff9ea https://cgit.freedesktop.org/xorg/xserver/commit/?id=4d5950ce14676f970d9de97380929a93948b98f2
The patches don't help, and neither does upgrading to xorg-server-9999. I'm going to test xf86-video-ati-9999 just in case but I'm not getting my hopes up. I'll also attach the distortions I'm seeing.
Created attachment 536886 [details] first-start.jpeg This is the kind of distortion I'm seeing after first xorg start after reboot. What you see are pieces of image before the reboot, shuffled and not really updating. However, the mouse pointer is moving.
Created attachment 536888 [details] second-start.png And this is a screenshot after lightdm restart. The screen is mostly fine, except for artifacts in window decorations (see top-right corner). Sometimes there are more artifacts, e.g. the whole title bar goes gray.
More things which you can try to isolate the issue: * use EXA instead of glamor * disable DRI3 * use modesetting instead of radeon DDX
(In reply to Chí-Thanh Christopher Nguyễn from comment #5) > More things which you can try to isolate the issue: > > * use EXA instead of glamor > * disable DRI3 > * use modesetting instead of radeon DDX Do you happen to have some nice guide with short instructions how to do that stuff? ;-)
Put something akin to this in xorg.conf: Section "Device" Identifier "Radeon card" Driver "radeon" Option "DRI" "3" Option "AccelMethod" "glamor" EndSection Then replace "radeon" with "modesetting" etc. For more detailed drescription, see the radeon(4) manpage.
Ok, I've finally gotten around to testing it, and here are the results: 1. Switching to exa seems to 'solve' the issue, that is: - on first start after boot, xorg-server segfaults while starting the DM (and then gets restarted into login manager), - next start works and looks fine, - no error messages in dmesg. 2. DRI version doesn't seem to affect anything. 3. Modesetting also solves it but I suppose that's obvious given 1.
3. is not that obvious, because the modesetting DDX also uses glamor for acceleration. So glamor with radeon DDX produces glitches and glamor with modesetting doesn't. There have been some more commits to xf86-video-ati git in the past 3 days, maybe try -9999 again. If you did that already or it doesn't help, I suggest that you report two bugs on https://bugs.freedesktop.org/ against xorg Driver/Radeon component. One bug with the glamor corruption, and one with the EXA segfault and stack trace (how to get a proper stack trace is described in https://www.x.org/wiki/Development/Documentation/ServerDebugging/).
Server 1.20.1 along with ati-9999 seem to work fine. I'm going to test for a few days just in case.
Seems to be all good?
No issues so far. I suppose we need to wait for xf86-video-ati rel.
18.1.0 is in tree now. Please test and confirm it fixes your problem.
Thanks. I can confirm that this version works fine for me.