* X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
@ 2019-05-09 15:58 Pierre Neidhardt
2019-05-09 23:22 ` ison
2019-05-10 12:12 ` Boris A. Dekshteyn
0 siblings, 2 replies; 21+ messages in thread
From: Pierre Neidhardt @ 2019-05-09 15:58 UTC (permalink / raw)
To: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
Hi,
My last system reconfigure dates back to April 17th and works
flawlessly.
Yesterday I ran a new one and X / GDM don't start up properly:
- I can guess bits and pieces of the GDM interface but the screen is
torn asunder by the most epic artifacts (green / purple flashing tiles).
- In a TTY, I see that GDM is restarting in an infinite loop.
- dmesg reports some "corruption" at the level of the video card (AMD
Radeon RX 580).
The weird thing is that I'm still using Linux 5.0.7 like I was on April
17th and everything worked well.
I've tried both with linux-libre and a custom kernel.
Have we changed anything to the boot parameters maybe?
Side question: how do we know which Guix commit was used for a specific
system generation? For now the only way I can think of is
--8<---------------cut here---------------start------------->8---
/var/guix/profiles/system-17-link/profile/bin/guix --version
--8<---------------cut here---------------end--------------->8---
Anything more convenient? From Emacs Guix?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-09 15:58 X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure Pierre Neidhardt
@ 2019-05-09 23:22 ` ison
2019-05-10 0:34 ` Danny Milosavljevic
2019-05-10 12:12 ` Boris A. Dekshteyn
1 sibling, 1 reply; 21+ messages in thread
From: ison @ 2019-05-09 23:22 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: guix-devel
I can confirm this exact same issue with the same video card, RX 580, and my
last attempt to update pulled in kernel 5.0.13. When the login screen shows up
the screen is horribly corrupt, nothing is even recognizable as being a part of
the normal login screen, just random colored lines all over the screen.
I first experienced the issue at the release of Guix v1.0.0, but wasn't sure if
I should wait before reporting since I couldn't be sure if it was a guix
specific issue or something else.
Here is what I have discovered:
* I doubt the issue is either caused by GDM itself or the kernel, because after
updating from a working generation (but without restarting my machine) if I
attempt to play a video in mpv (or start a game) the same graphical artifacts
appear, but only in that 1 window.
* I have attempted to upgrade individual applications while using
"package-input-rewriting" to replace their dependencies on Mesa 18.3.5 with
18.3.1 (the version they're using on my working generation) and I can confirm
that the replacement succeeded with "ldd", however they still receive
graphical artifacts.
* I have successfully managed to run an updated copy of mpv without artifacts by
using LD_PRELOAD to force it to point to the exact copy of libGL.so.1 used by
mpv on my working generation.
This leads me to believe that the problem lies somewhere in Mesa (which contains
libGL.so.1). However, the issue doesn't seem to be just the version of Mesa
since mpv still had corrupt video when built to use the older version of Mesa,
but had no corrupt video when forced to link to the exact copy of libGL.so.1
from a previously working generation.
Note: mpv was merely used as a test so I didn't have to constantly restart my
machine. However, generations which resulted in corrupt video in mpv (and games)
always resulted in corrupt video in GDM if I also rebooted into that generation.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-09 23:22 ` ison
@ 2019-05-10 0:34 ` Danny Milosavljevic
2019-05-10 1:59 ` ison
0 siblings, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2019-05-10 0:34 UTC (permalink / raw)
To: ison; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 75 bytes --]
Might be related to LLVM because it's sometimes used by shader compilers.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 0:34 ` Danny Milosavljevic
@ 2019-05-10 1:59 ` ison
2019-05-10 2:53 ` Danny Milosavljevic
0 siblings, 1 reply; 21+ messages in thread
From: ison @ 2019-05-10 1:59 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
I think you're right. I just tried different versions of llvm with the game
minetest (testing with minetest now since it compiles much faster than mpv)
Trying with llvm@7.0.1 using the command:
guix environment --ad-hoc minetest --with-input=llvm=llvm@7.0.1
results in the same corrupt video issue
Trying with llvm@6.0.1 using the command:
guix environment --ad-hoc minetest --with-input=llvm=llvm@6.0.1
results in no corruption and a fully functioning game
Thanks for helping to narrow down the issue. Although I'm not sure where to go
from here.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 1:59 ` ison
@ 2019-05-10 2:53 ` Danny Milosavljevic
2019-05-10 4:59 ` ison
0 siblings, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2019-05-10 2:53 UTC (permalink / raw)
To: ison; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
On Thu, 9 May 2019 19:59:17 -0600
ison <ison@airmail.cc> wrote:
> Thanks for helping to narrow down the issue. Although I'm not sure where to go
> from here.
Maybe try mesa 18.3.6, maybe someone fixed it there already.
Apparently there's also mesa 19.0.4.
If it can't be fixed otherwise, we can compile the old mesa with llvm 6.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 2:53 ` Danny Milosavljevic
@ 2019-05-10 4:59 ` ison
2019-05-10 7:46 ` Pierre Neidhardt
2019-05-10 12:11 ` Marius Bakke
0 siblings, 2 replies; 21+ messages in thread
From: ison @ 2019-05-10 4:59 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Sorry I neglected to mention that I actually tried upgrading mesa earlier and it
didn't resolve the problem. Neither upgrading mesa (I tried 18.3.6 and some 19.*
version) nor downgrading (back to 18.3.1) would fix it, all rebuilds still
resulted in artifacts. I suppose it's because the dependency on llvm 7 remained
fixed during all the rebuilds.
I also just tried llvm 8.0.0 and it still had the same issue.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 4:59 ` ison
@ 2019-05-10 7:46 ` Pierre Neidhardt
2019-05-10 12:11 ` Marius Bakke
1 sibling, 0 replies; 21+ messages in thread
From: Pierre Neidhardt @ 2019-05-10 7:46 UTC (permalink / raw)
To: ison, Danny Milosavljevic; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
Thanks for investigating this!
So does anyone know if there is a good reason to keep llvm 7 for Mesa?
Was it just updated for the sake of updating? (Which is usually a good
reason, admittedly :p)
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 4:59 ` ison
2019-05-10 7:46 ` Pierre Neidhardt
@ 2019-05-10 12:11 ` Marius Bakke
2019-05-10 12:33 ` Pierre Neidhardt
2019-05-10 21:07 ` ison
1 sibling, 2 replies; 21+ messages in thread
From: Marius Bakke @ 2019-05-10 12:11 UTC (permalink / raw)
To: ison, Danny Milosavljevic; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
ison <ison@airmail.cc> writes:
> Sorry I neglected to mention that I actually tried upgrading mesa earlier and it
> didn't resolve the problem. Neither upgrading mesa (I tried 18.3.6 and some 19.*
> version) nor downgrading (back to 18.3.1) would fix it, all rebuilds still
> resulted in artifacts. I suppose it's because the dependency on llvm 7 remained
> fixed during all the rebuilds.
>
> I also just tried llvm 8.0.0 and it still had the same issue.
Can you try to delete "$HOME/.cache/mesa_shader_cache/" and see if see
if it makes a difference?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 12:11 ` Marius Bakke
@ 2019-05-10 12:33 ` Pierre Neidhardt
2019-05-10 12:36 ` Marius Bakke
2019-05-10 21:07 ` ison
1 sibling, 1 reply; 21+ messages in thread
From: Pierre Neidhardt @ 2019-05-10 12:33 UTC (permalink / raw)
To: Marius Bakke, ison, Danny Milosavljevic; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 117 bytes --]
Hmm, not sure it's related to user data since GDM fails to display.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 12:11 ` Marius Bakke
2019-05-10 12:33 ` Pierre Neidhardt
@ 2019-05-10 21:07 ` ison
2019-05-11 2:20 ` ison
1 sibling, 1 reply; 21+ messages in thread
From: ison @ 2019-05-10 21:07 UTC (permalink / raw)
To: Marius Bakke; +Cc: guix-devel
On Fri, May 10, 2019 at 02:11:48PM +0200, Marius Bakke wrote:
> Can you try to delete "$HOME/.cache/mesa_shader_cache/" and see if see
> if it makes a difference?
That did it! At least for the user installed applications I was testing with it seems to have resolved the issue.
I also deleted the other cache you mentioned, at: /var/lib/gdm/.cache/mesa_shader_cache
and will now try to do a full system upgrade and see if everything is working.
Thanks for the help.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 21:07 ` ison
@ 2019-05-11 2:20 ` ison
2019-05-11 7:44 ` Giovanni Biscuolo
0 siblings, 1 reply; 21+ messages in thread
From: ison @ 2019-05-11 2:20 UTC (permalink / raw)
To: Marius Bakke; +Cc: guix-devel
Ok this solution has resolved the issue for me on a newly updated system.
Note that deleting both shader caches was required, and also if the caches get
rebuilt on a new generation and then I try to boot into an older previously
working generation then that generation will display graphics artifacts until
the caches are deleted again.
So switching between mesa compiled with llvm 6 and 7 on AMD RX 580 either
backward or forward requires manually deleting the shader caches.
Thanks again for the help.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-09 15:58 X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure Pierre Neidhardt
2019-05-09 23:22 ` ison
@ 2019-05-10 12:12 ` Boris A. Dekshteyn
2019-05-24 10:26 ` Pierre Neidhardt
1 sibling, 1 reply; 21+ messages in thread
From: Boris A. Dekshteyn @ 2019-05-10 12:12 UTC (permalink / raw)
To: guix-devel
Pierre Neidhardt <mail@ambrevar.xyz> writes:
> Hi,
>
> My last system reconfigure dates back to April 17th and works
> flawlessly.
> Yesterday I ran a new one and X / GDM don't start up properly:
>
> - I can guess bits and pieces of the GDM interface but the screen is
> torn asunder by the most epic artifacts (green / purple flashing tiles).
>
> - In a TTY, I see that GDM is restarting in an infinite loop.
>
> - dmesg reports some "corruption" at the level of the video card (AMD
> Radeon RX 580).
>
> The weird thing is that I'm still using Linux 5.0.7 like I was on April
> 17th and everything worked well.
>
> I've tried both with linux-libre and a custom kernel.
>
> Have we changed anything to the boot parameters maybe?
>
>
> Side question: how do we know which Guix commit was used for a specific
> system generation? For now the only way I can think of is
>
> /var/guix/profiles/system-17-link/profile/bin/guix --version
>
> Anything more convenient? From Emacs Guix?
See bug#35575. If you have the same symptoms, the problem is most likely
that mesa does not check its shader cache. Working solution - clear
$HOME/.cache/mesa_shader_cache/
--
WBR, Boris Dekshteyn
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-10 12:12 ` Boris A. Dekshteyn
@ 2019-05-24 10:26 ` Pierre Neidhardt
2019-05-26 0:24 ` ison
0 siblings, 1 reply; 21+ messages in thread
From: Pierre Neidhardt @ 2019-05-24 10:26 UTC (permalink / raw)
To: Boris A. Dekshteyn, guix-devel
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
I'm still having issues: whenever I use some applications like ioquake3
(a 3D OpenGL2 game engine) then mpv and chromium show crazy rendering
artifacts.
I have to clear the cache after every call to ioquake3.
Any idea?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure
2019-05-24 10:26 ` Pierre Neidhardt
@ 2019-05-26 0:24 ` ison
2019-05-26 7:50 ` Pierre Neidhardt
0 siblings, 1 reply; 21+ messages in thread
From: ison @ 2019-05-26 0:24 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: guix-devel
Are you using GuixSD or Guix on top of another distro?
It seemed to me that when my caches were empty the first application I'd run
would cause the shaders to be rebuilt with whatever version of llvm that
application was built with.
And it also seems that the issue goes both ways, so if you run an application
that builds the shaders with llvm6 then all applications which expect 7 will
show artifacts, and vice versa, if you clear your cache and then immediately run
a program which builds the shaders with llvm7 then any programs which expect
llvm6 will see artifacts.
So it sounds to me like you have a combination of programs built with these
conflicting versions.
In my case, since I'm running GuixSD, I just did a full upgrade, cleared both
caches, and then restarted my machine. Haven't had an issue since.
However, if you're using just Guix on another distro, then perhaps the host
distro software uses llvm6 while your Guix applications use llvm7?
If that's the case then I'm not sure what the best solution to that would be.
Perhaps you could just consider re-installing the affected Guix applications
with:
guix package -i your_program --with-input=llvm=llvm@6.0.1
until your host distro updates to llvm7.
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2019-05-29 16:58 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-09 15:58 X/GDM fails on linux 5.0.7 AMD Radeon RX 580 after system reconfigure Pierre Neidhardt
2019-05-09 23:22 ` ison
2019-05-10 0:34 ` Danny Milosavljevic
2019-05-10 1:59 ` ison
2019-05-10 2:53 ` Danny Milosavljevic
2019-05-10 4:59 ` ison
2019-05-10 7:46 ` Pierre Neidhardt
2019-05-10 12:11 ` Marius Bakke
2019-05-10 12:33 ` Pierre Neidhardt
2019-05-10 12:36 ` Marius Bakke
2019-05-10 12:46 ` Pierre Neidhardt
2019-05-14 9:25 ` Pierre Neidhardt
2019-05-10 21:07 ` ison
2019-05-11 2:20 ` ison
2019-05-11 7:44 ` Giovanni Biscuolo
2019-05-13 9:51 ` Pierre Neidhardt
2019-05-10 12:12 ` Boris A. Dekshteyn
2019-05-24 10:26 ` Pierre Neidhardt
2019-05-26 0:24 ` ison
2019-05-26 7:50 ` Pierre Neidhardt
2019-05-29 16:58 ` Pierre Neidhardt
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).