You are not logged in.

#1 2023-01-17 15:32:08

Citrus Sinensis
Member
Registered: 2022-12-23
Posts: 3

Xorg blocked by syscall, ASUS TUF Gaming F15 FX507ZM

Hello everyone,
My laptop would halt (not responding to any user input just like halt) after a random period of time when I started a fullscreen game using prime-run provided by nvidia-prime. I have tested some games such as osu-lazer and Unturned, and both results are the same.
Then I found I could access my laptop via SSH in that case. After some investigation, I found that the Xorg process is stucked in a syscall trying to read from /dev/dri/card1, which is the integrated graphics card.
The problem disappeared when I switched the game to window mode, but I'm curious about how to fix the problem without configuring the display mode, and the cause behind the problem.
Appreciate the help. smile
Some information:

[root@CitrusPC ~]# ps -e | grep Xorg
   3981 tty1     00:00:24 Xorg
[root@CitrusPC ~]# cd /proc/3981
[root@CitrusPC 3981]# cat status
Name:   Xorg
Umask:  0022
State:  S (sleeping)
Tgid:   3981
Ngid:   0
Pid:    3981
PPid:   3977
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 256
Groups:
NStgid: 3981
NSpid:  3981
NSpgid: 3981
NSsid:  3981
VmPeak: 28117388 kB
VmSize: 28079860 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:    232668 kB
VmRSS:    232656 kB
RssAnon:           60380 kB
RssFile:          165388 kB
RssShmem:           6888 kB
VmData:   323124 kB
VmStk:       132 kB
VmExe:      1772 kB
VmLib:    166528 kB
VmPTE:       800 kB
VmSwap:        0 kB
HugetlbPages:          0 kB
CoreDumping:    0
THP_enabled:    1
Threads:        35
SigQ:   1/62385
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 00000001418066ef
CapInh: 0000000000000000
CapPrm: 000001ffffffffff
CapEff: 000001ffffffffff
CapBnd: 000001ffffffffff
CapAmb: 0000000000000000
NoNewPrivs:     0
Seccomp:        0
Seccomp_filters:        0
Speculation_Store_Bypass:       thread vulnerable
SpeculationIndirectBranch:      conditional enabled
Cpus_allowed:   fffff
Cpus_allowed_list:      0-19
Mems_allowed:   00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        110050
nonvoluntary_ctxt_switches:     3048
[root@CitrusPC 3981]# cat stack
[<0>] drm_read+0x2f5/0x340
[<0>] vfs_read+0xa6/0x310
[<0>] ksys_read+0x6f/0xf0
[<0>] do_syscall_64+0x5c/0x90
[<0>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[root@CitrusPC 3981]# cat syscall
0 0x13 0x7ffdc1a4fa80 0x400 0x563a525c6690 0x0 0x10 0x7ffdc1a4fa50 0x7f9c1f35d04c
[root@CitrusPC 3981]# ls -l ./fd/19
lrwx------ 1 root root 64 Jan 17 22:31 ./fd/19 -> /dev/dri/card1
[root@CitrusPC 3981]# cat ./fdinfo/19
pos:    0
flags:  02100002
mnt_id: 22
ino:    862
drm-driver:     i915
drm-pdev:       0000:00:02.0
drm-client-id:  38
[root@CitrusPC 3981]# ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root  8 Jan 17 22:05 pci-0000:00:02.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Jan 17 22:05 pci-0000:00:02.0-render -> ../renderD129
lrwxrwxrwx 1 root root  8 Jan 17 22:05 pci-0000:01:00.0-card -> ../card0
lrwxrwxrwx 1 root root 13 Jan 17 22:05 pci-0000:01:00.0-render -> ../renderD128
[root@CitrusPC 3981]# lspci
0000:00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
0000:00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
0000:00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
0000:00:06.0 System peripheral: Intel Corporation RST VMD Managed Controller
0000:00:07.0 PCI bridge: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 02)
0000:00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
0000:00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
0000:00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 02)
0000:00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 02)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
0000:00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
0000:00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
0000:00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
0000:00:15.2 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #2 (rev 01)
0000:00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
0000:00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
0000:00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
0000:00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
0000:00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
0000:00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (16) I219-LM (rev 01)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
0000:01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
10000:e0:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
10000:e0:06.2 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #2 (rev 02)
10000:e1:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407
10000:e2:00.0 Non-Volatile memory controller: Sandisk Corp Device 5017 (rev 01)
[root@CitrusPC 3981]# neofetch --off
root@CitrusPC
-------------
OS: Arch Linux x86_64
Host: ASUS TUF Gaming F15 FX507ZM_FX507ZM 1.0
Kernel: 6.1.6-arch1-1
Uptime: 1 hour, 24 mins
Packages: 1208 (pacman)
Shell: bash 5.1.16
Resolution: 2560x1440
CPU: 12th Gen Intel i7-12700H (20) @ 4.600GHz
GPU: Intel Alder Lake-P
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
Memory: 2346MiB / 15618MiB

Last edited by Citrus Sinensis (2023-01-17 16:11:44)

Offline

#2 2023-01-17 15:33:42

Citrus Sinensis
Member
Registered: 2022-12-23
Posts: 3

Re: Xorg blocked by syscall, ASUS TUF Gaming F15 FX507ZM

By the way, I use KDE Plasma for desktop environment.

Offline

#3 2023-01-17 16:14:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,993

Re: Xorg blocked by syscall, ASUS TUF Gaming F15 FX507ZM

You are logged in as root (at least your shell is).  You are not trying to run KDE and Xorg as root, are you?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2023-01-17 16:21:32

Citrus Sinensis
Member
Registered: 2022-12-23
Posts: 3

Re: Xorg blocked by syscall, ASUS TUF Gaming F15 FX507ZM

ewaller wrote:

You are logged in as root (at least your shell is).  You are not trying to run KDE and Xorg as root, are you?

Absolutely not. I had previously run "sudo bash" in SSH, just for convenience

Last edited by Citrus Sinensis (2023-01-17 16:28:31)

Offline

Board footer

Powered by FluxBB