Re: suspend-resume and dri driver

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 07 Apr 2023 10:34:36 UTC
Oleksandr Kryvulia <shuriku@shurik.kiev.ua> writes:

> Hi
> After suspend-resume on my Thinkpad T490 dri driver fallbacks to swrast.
>
> On system boot:
> % xdriinfo
> Screen 0: iris
>
> After suspend-esume:
> % xdriinfo
> libGL error: failed to authenticate magic 1
> libGL error: failed to load driver: iris
> Screen 0: swrast

Maybe caused by https://github.com/freebsd/drm-kmod/issues/175
Neither Xwayland (X11) nor wlroots (Wayland) are affected.

Note, FreeBSD (unlike Linux and OpenBSD) runs Xorg (unlike anything
Wayland-related) as root (via setuid) which may affect how DRM
authentication works.