X11 Freeze and Crash on Lenovo Thinkpad T14 AMD GEN1

2021-04-14 Thread niamkik
Hi,

X11 randomly freeze and crash on Lenovo Thinkpad T14 AMD GEN1 with 
OpenBSD-current (OpenBSD 6.9 GENERIC.MP#461 amd64). I tried to reproduce it, 
but, it seems to be totally random. It crashed 2 times in one week due to 
segmentation fault. The last time it froze the whole system, leaving the system 
unusable without access to SSH or other running service on the system. This 
error is present in Xorg.0.log file but there no trace of it in other logs. 
Does someone have the same issue?

Here Xorg.0.log file and dmesg is available on nycbug.org 
(https://dmesgd.nycbug.org/index.cgi?do=view&id=6009).

[38.304] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
(Operation not permitted)
Check that you have set 'machdep.allowaperture=1'
in /etc/sysctl.conf and reboot your machine
refer to xf86(4) for details
[38.304]linear framebuffer access unavailable
[38.340] (--) Using wscons driver on /dev/ttyC4
[38.362]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[38.362] Build Operating System: OpenBSD 6.9 amd64
[38.362] Current Operating System: OpenBSD lyn.puffy 6.9 GENERIC.MP#461 
amd64
[38.362] Build Date: 11 April 2021  06:02:54PM
[38.362]
[38.362] Current version of pixman: 0.38.4
[38.362]Before reporting problems, check
http://wiki.x.org
to make sure that you have the latest version.
[38.362] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[38.363] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 12 13:47:49 
2021
[38.364] (==) Using system config directory 
"/usr/X11R6/share/X11/xorg.conf.d"
[38.366] (==) No Layout section.  Using the first Screen section.
[38.367] (==) No screen section available. Using defaults.
[38.367] (**) |-->Screen "Default Screen Section" (0)
[38.367] (**) |   |-->Monitor ""
[38.369] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[38.369] (==) Automatically adding devices
[38.369] (==) Automatically enabling devices
[38.369] (==) Not automatically adding GPU devices
[38.370] (==) Max clients allowed: 256, resource mask: 0x1f
[38.370] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[38.370] (==) ModulePath set to "/usr/X11R6/lib/modules"
[38.370] (II) The server relies on wscons to provide the list of input 
devices.
If no devices become available, reconfigure wscons or disable 
AutoAddDevices.
[38.370] (II) Loader magic: 0xf1789c60f10
[38.370] (II) Module ABI versions:
[38.370]X.Org ANSI C Emulation: 0.4
[38.370]X.Org Video Driver: 24.1
[38.370]X.Org XInput driver : 24.1
[38.370]X.Org Server Extension : 10.0
[38.371] (--) PCI:*(8@0:0:0) 1002:1636:17aa:5081 rev 209, Mem @ 
0xc6000/268435456, 0xc7000/2097152, 0xfd30/524288, I/O @ 
0x1000/256
[38.371] (II) LoadModule: "glx"
[38.373] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[38.395] (II) Module glx: vendor="X.Org Foundation"
[38.395]compiled for 1.20.10, module version = 1.0.0
[38.395]ABI class: X.Org Server Extension, version 10.0
[38.395] (==) Matched ati as autoconfigured driver 0
[38.395] (==) Matched modesetting as autoconfigured driver 1
[38.395] (==) Assigned the driver to the xf86ConfigLayout
[38.395] (II) LoadModule: "ati"
[38.396] (II) Loading /usr/X11R6/lib/modules/drivers/ati_drv.so
[38.396] (II) Module ati: vendor="X.Org Foundation"
[38.396]compiled for 1.20.10, module version = 19.1.0
[38.396]Module class: X.Org Video Driver
[38.396]ABI class: X.Org Video Driver, version 24.1
[38.402] (II) LoadModule: "amdgpu"
[38.403] (II) Loading /usr/X11R6/lib/modules/drivers/amdgpu_drv.so
[38.407] (II) Module amdgpu: vendor="X.Org Foundation"
[38.407]compiled for 1.20.10, module version = 19.1.0
[38.407]Module class: X.Org Video Driver
[38.407]ABI class: X.Org Video Driver, version 24.1
[38.407] (II) LoadModule: "modesetting"
[38.408] (II) Loading /usr/X11R6/lib/modules/drivers/modesetting_drv.so
[38.410] (II) Module modesetting: vendor="X.Org Foundation"
[38.410]compiled for 1.20.10, module version = 1.20.10
[38.410]Module class: X.Org Video Driver
[38.410]ABI class: X.Org Video Driver, version 24.1
[38.410] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[38.410] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[38.419] (II) AMDGPU(0): [KMS] Kernel modeset

Re: X11 Freeze and Crash on Lenovo Thinkpad T14 AMD GEN1

2021-04-14 Thread niamkik
Hi,

Just got the same issue, this time, my connection was still present. Here the 
message from dmesg after going into single-user mode by killing init process.

[drm] *ERROR* ring sdma0 timeout, signaled seq=30079, emitted seq=30079
[drm] *ERROR* Process information: process pid 0 thread pid 0

Xorg process was a zombie at this time. This behavior seems to be generated 
when the screen is going blank, in my case, when xautolock is executed or 
screensaver is set. My first crash was on 2nd April, just after using the last 
current version at this time.


Re: X11 Freeze and Crash on Lenovo Thinkpad T14 AMD GEN1

2021-04-15 Thread niamkik
> It seems a user with a T14s with similar hardware reported issues with
> hibernate. [1] Does your system properly suspend/resume and
> hibernate/resume?

Yes, without any issue. I was thinking at first it should have been due to 
suspend/resume, but it's not the case. issue [1] seems not to be the same.

> I'm sadly no eXpert on X or drm...but if you're getting a segfault, it
> might be helpful to get the core dump and see what the stack was via
> gdb.

Yes... Totally forgot to do that! Like you, I am not an expert in X and drm. ;)