r300: Regression in f424ef18010 breaks wayland on RS480M

"Valtteri Koskivuori" <[email protected]> Tue, 08 Oct 2024 22:21:26 +0300
Newsgroups gmane.comp.video.mesa3d.devel
Message-ID <[email protected]>
Hello all.

I run Arch Linux on a 2006 Fujitsu S2110 laptop that has sentimental 
value to me. Earlier in 2024, I observed a regression that broke 
wayland-based compositors, such as Sway and Cage. The framebuffer shows 
up garbled, and the following error is emitted to the kernel log:

[drm:radeon_crtc_do_set_base [radeon]] *ERROR* trying to scanout microtiled buffer

I spent the past weekend tracking this down, and managed to set up for a 
bisect, which lead me to that specific commit, which was a part of merge 
request !28209 in March.
Mesa seems to be setting the tiling flag RADEON_TILING_MICRO, which then 
later gets checked in the Linux driver, giving that error above.

TL;DR: reverting f424ef18010 on the latest HEAD resolves this issue for me, 
though I'm not familiar enough with the code to determine if reverting 
it results in adverse effects on other hardware. More details below for 
the interested.

GPU: [AMD/ATI] RS480M [Mobility Radeon Xpress 200]
CPU: AMD Turion(tm) 64 Mobile Technology MT-37
Linux arch 6.11.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 30 Sep 2024 23:49:50 +0000 x86_64 GNU/Linux
Mesa 24.2.3-1 (arch package)
Sway and Cage were broken, but i3 seems to be unaffected.

I hope this information is helpful. I'd be happy to help with testing a 
potential fix, if needed.

Thank you all for the work you do.
Br,
Valtteri Koskivuori
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEcdXCNe5SZeJBSbCiB1ieVbjbyoIFAmcFhjYACgkQB1ieVbjb
yoKdHgf/YFz54c3cHlEV9bVGIvhyqRgYh7g3fM0ayMpQgMUe2oYSy9ZXHnskn4cq
xph/DJRR5Ct+kWTpOXjHDgxZdeD3UxxUIJG1yYcNP0BeH7q+20DIapXKiM4HEXza
C9zljFAoihbRrWqFPnoXrLdSUooDEECNYjlXlGdFifociEnW0UUjsimb1JA4VaBb
rKexRAvORHvC3SsxErRzOQaR2q4wz//tKXSKz3UvaNSoG3pDLRuMhD9WSAfOmHFq
6dVhH0af8EdI9gIoG3boU3ljHxxXBnfKKBo4NMlxOWuiwyWUvKu7e8y5io42kFhn
cm74TUQwc1qC6VwXSJgRryeCGicnbQ==
=vWBI
-----END PGP SIGNATURE-----