Bug 266745 - graphics/drm-510-kmod: Linuxulator: X11 GL_RENDERER reverts to llvmpipe after waking from suspend
Summary: graphics/drm-510-kmod: Linuxulator: X11 GL_RENDERER reverts to llvmpipe after...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL: https://www.freshports.org/graphics/d...
Keywords: needs-qa, performance
Depends on:
Blocks:
 
Reported: 2022-10-01 21:51 UTC by Hunter Ellett
Modified: 2023-10-02 06:36 UTC (History)
2 users (show)

See Also:
iwtcex: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hunter Ellett 2022-10-01 21:51:31 UTC
On my system using an AMD RX 580 GPU, X.Org applications running inside the linux-c7 environment will be accelerated by the graphics card until waking up from suspend which changes the GL Renderer to llvmpipe.

I caught this when I noticed games running via games/linux-steam-utils would be extremely slow and choppy after a suspend. Logging out and logging back in (restarting X) fixes it until another suspend.

Steps to reproduce:
* Have the linux-c7 metaport as well as drm-510-kmod, xf86-video-amdgpu, and gpu-firmware-amd-kmod-polaris10
* Make sure the Linuxulator points are mounted and running, I used the same mount parameters as the Handbook section
* Run /compat/linux/bin/glxgears -info and look for GL_RENDERER which should show the proper AMD card being used for acceleration
* Suspend with zzz
* Wake the system and run /compat/linux/bin/glxgears -info again which will now show the GL_RENDERER is llvmpipe
Comment 1 Alex S 2022-10-01 22:16:38 UTC
> Product: Ports & Packages

That part is obviously wrong. Anyway, let me humbly refer you to https://github.com/freebsd/drm-kmod/issues.
Comment 2 Graham Perrin 2023-10-02 06:36:15 UTC
(In reply to Alex S from comment #1)

> … Anyway, let me humbly refer you to https://github.com/freebsd/drm-kmod/issues.

+1 to use of the template that's provided in GitHub, and (for example) <https://github.com/FreeBSD/freebsd-ports/commit/fae9e49dd63f411983cc9a7f62f0fa8418797b35> did direct end users to GitHub, however (bug 267031) users may choose to additionally, or primarily, make a report in Bugzilla. 

----

^Triage: 

* status
* severity
* orientation (FreshPorts).