Discussion:
Radeon DRM kmod problem after LLVM upgrade!?
(too old to reply)
George Mitchell
2023-12-01 23:19:49 UTC
Permalink
This afternoon after upgrading llvm15 from 15.0.7_5 to 15.0.7_7, Xorg
no longer runs properly -- if I use drm-510-kmod instead of VESA.

My display card is Raven Ridge [Radeon Vega Series / Radeon Vega Mobile
Series] (USB id vendor=0x1002 device=0x15dd).

When I boot in single-user mode, load the amdgpu.ko module from
graphics/drm-510-kmod, and attempt to start Xorg, I get a pretty
pattern of dots all over the screen, and Xorg reports (on the console):

ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
EE ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2505
si_build_shader_variant - Failed to build shader variant (type=0)
ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
EE ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2505
si_build_shader_variant - Failed to build shader variant (type=0)
ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
EE ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2505
si_build_shader_variant - Failed to build shader variant (type=0)
ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
EE ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2505
si_build_shader_variant - Failed to build shader variant (type=0)
ac_rtld error: !data || data->d_size != shdr->sh_size
LLVM failed to upload shader
EE ../src/gallium/drivers/radeonsi/si_state_shaders.cpp:2505
si_build_shader_variant - Failed to build shader variant (type=0)

Everything is fine if I use VESA mode, thankfully.

My system has never been completely trouble-free with amd-510-kmod,
but it has so far worked wonderfully well when it doesn't crash. But
how that driver could interact with LLVM is beyond me. Should I try
simply recompiling the module with the latest LLVM? -- George


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
George Mitchell
2023-12-02 22:54:09 UTC
Permalink
Post by George Mitchell
This afternoon after upgrading llvm15 from 15.0.7_5 to 15.0.7_7, Xorg
no longer runs properly -- if I use drm-510-kmod instead of VESA.
[...]
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275388
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275443
Bug 275388 was the key. After reverting mesa-dri to 22.3.7_3 and
mesa-libs to 22.3.7_2 (my previously installed versions), the problem
is fixed. I added a comment.

I note that mesa version 23.3.0 has hit the ports tree. Possibly
that affects the problem? -- George


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...