Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852248 - Screen freeze since kernel 5.18 on Sway
Summary: Screen freeze since kernel 5.18 on Sway
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://gitlab.freedesktop.org/drm/am...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-16 01:04 UTC by ignamartinoli
Modified: 2022-08-05 13:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg (dmesg.log,70.44 KB, text/x-log)
2022-06-16 18:53 UTC, ignamartinoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ignamartinoli 2022-06-16 01:04:07 UTC
Since I upgraded to kernel 5.18 I have the issue where, if I close the laptop lid and reopen it the screen becomes completely unresponsive and freezes (this is an example running cmatrix: https://imgur.com/a/QFALIQ0).
I asked to other Sway users on Reddit and this is a bug that other people are experiencing.
I am not sure if this is a kernel, or a Sway bug, so help debugging and finding out the source of the problem would be appreciated.
Comment 1 Mike Pagano gentoo-dev 2022-06-16 17:45:23 UTC
Can you attach the output of :

emerge --info
Comment 2 ignamartinoli 2022-06-16 18:24:31 UTC
sicro@sicro ~ $ emerge --info
Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.3.0, glibc-2.35-r7, 5.18.3-gentoox86_64)
=================================================================
System uname: Linux-5.18.3-gentoo-x86_64-AMD_Ryzen_7_PRO_4750U_with_Radeon_Graphics-with-glibc2.35
KiB Mem:    15698696 total,  13412268 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 13 Jun 2022 18:03:14 +0000
Head commit of repository gentoo: 8e3ed8bacb1613fcd1e446d16a32768e88d91c3e

Timestamp of repository guru: Wed, 15 Jun 2022 12:48:12 +0000
Head commit of repository guru: 5b2960ccacf9350bc8dec83f874aae33cb9d1ee2

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [enabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust:             1.61.0-r1::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.5::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.5::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.5::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modifieddistlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://mirrors.aliyun.com/gentoo/ https://gentoo.c3sl.ufpr.br/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file--delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="zsh"
USE="X acl acpi alsa amd64 bluetooth bzip2 cairo cli crypt cups curl dbus dri egl elogind fortran gdbm git gnuplot googledrive gtk3 gui hwaccel iconv icu ipv6 jpeg libglvnd libtirpc lua minizip ncurses nls npm nptl nss opengl openmp pam pcre pdf persist pipewire postproc pulseaudio readline screencast seccomp speex split-usr ssh ssl swaybar text threads truetype udev unicode v4l vulkan wayland x264 xattr xorg zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-consolepresenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 ignamartinoli 2022-06-16 18:25:53 UTC
I looked at Sway's log after having provoked the bug and its last lines read:
M 04:33:15.839105             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.839216             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:578:set_nice: could not set nice-level to -11: No such file or directory
M 04:33:15.839368             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840290             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840434             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840443             mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:800:impl_acquire_rt: could not make thread 3117 realtime using RTKit: No such file or directory
00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 8 VGPRS: 8 Code Size: 24 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 0, (PS, W64)
00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 24 VGPRS: 12 Code Size: 44 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 1, (VS, W64)
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).

Is this maybe related to AMDGPU?
Comment 4 Mike Pagano gentoo-dev 2022-06-16 18:35:01 UTC
(In reply to ignamartinoli from comment #3)
> I looked at Sway's log after having provoked the bug and its last lines read:
> M 04:33:15.839105             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error:
> org.freedesktop.DBus.Error.ServiceUnknown
> M 04:33:15.839216             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:578:set_nice: could not set
> nice-level to -11: No such file or directory
> M 04:33:15.839368             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error:
> org.freedesktop.DBus.Error.ServiceUnknown
> M 04:33:15.840290             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error:
> org.freedesktop.DBus.Error.ServiceUnknown
> M 04:33:15.840434             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error:
> org.freedesktop.DBus.Error.ServiceUnknown
> M 04:33:15.840443             mod.rt
> ../pipewire-0.3.52/src/modules/module-rt.c:800:impl_acquire_rt: could not
> make thread 3117 realtime using RTKit: No such file or directory
> 00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 8 VGPRS: 8 Code
> Size: 24 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0
> PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 0, (PS,
> W64)
> 00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 24 VGPRS: 12 Code
> Size: 44 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0
> PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 1, (VS,
> W64)
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> amdgpu: The CS has been rejected, see dmesg for more information (-16).
> 
> Is this maybe related to AMDGPU?

Not sure:

"see dmesg for more information "

can you attach dmesg ?
Comment 5 ignamartinoli 2022-06-16 18:53:16 UTC
Created attachment 785771 [details]
dmesg

This is my dmesg output
Comment 6 Mike Pagano gentoo-dev 2022-06-16 19:22:57 UTC
I think you are correct about amdgpu.

Can you open a bug here:

https://gitlab.freedesktop.org/drm/amd

And post pack the issue url ?
Comment 7 ignamartinoli 2022-06-16 20:34:34 UTC
Here is the issue: https://gitlab.freedesktop.org/drm/amd/-/issues/2055
Comment 8 Mike Pagano gentoo-dev 2022-08-05 13:22:15 UTC
We're going to follow the upstream bug and work to backport any fix identified