From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 106297] gnome-shell hangs hellishly because
DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM executing more than 11
seconds
Date: Sat, 28 Apr 2018 15:47:18 +0000
Message-ID:
Bug ID
106297
Summary
gnome-shell hangs hellishly because DRM_IOCTL_AMDGPU_GEM_CREA=
TE or DRM_IOCTL_VIA_ALLOCMEM executing more than 11 seconds
Product
DRI
Version
XOrg git
Hardware
Other
OS
All
Status
NEW
Severity
normal
Priority
medium
Component
DRM/AMDgpu
Assignee
dri-devel@lists.freedesktop.org
Reporter
mikhail.v.gavrilov@gmail.com
Created attachment 139198=
[details]
gnome-shell strace
gnome-shell hangs hellishly because DRM_IOCTL_AMDGPU_GEM_CREATE or
DRM_IOCTL_VIA_ALLOCMEM executing more than 11 seconds
=3D=3D=3D snip from strace =3D=3D=3D
mmap(NULL, 434176, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x205097000) =3D
0x7fca34100000 <0.000023>
ioctl(13, DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM,
0x7ffcd4c04150) =3D 0 <11.567183>
ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04160) =3D=
0
<0.000085>
ioctl(13, DRM_IOCTL_AMDGPU_GEM_MMAP, 0x7ffcd4c04610) =3D 0 <0.000026>
mmap(NULL, 13885440, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x128ecc000) =3D
0x7fc9f1abe000 <0.000036>
write(4, "\1\0\0\0\0\0\0\0", 8) =3D 8 <0.000030>
recvmsg(60, {msg_name=3DNULL, msg_namelen=3D0,
msg_iov=3D[{iov_base=3D"\33\0\0\0\1\0\24\0
\0\0\0\0\0\0\0\0\0\0\0\33\0\0\0\10\0\f\0\2\0\0\0"..., iov_len=3D1884},
{iov_base=3D"", iov_len=3D2212}], msg_iovlen=3D2, msg_controllen=
=3D0,
msg_flags=3DMSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) =3D 332 <0=
.000048>
ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04170) =3D=
0
<0.000149>
Created attachment 139199<=
/a> [details]
gnome-shell backtrace
Created attachment 139200 [details]<=
/a>
glxinfo
kernel: # uname -r 4.17.0-0.rc1.git3.1.fc29.x86_64 llvm: # rpm -qa | grep llvm | sort llvm-debuginfo-6.0.0-11.fc29.x86_64 llvm-debugsource-6.0.0-11.fc29.x86_64 llvm-libs-6.0.0-11.fc29.i686 llvm-libs-6.0.0-11.fc29.x86_64 llvm-libs-debuginfo-6.0.0-11.fc29.x86_64 mesa: # rpm -qa | grep mesa | sort mesa-debuginfo-18.0.1-1.fc29.x86_64 mesa-debugsource-18.0.1-1.fc29.x86_64 mesa-dri-drivers-18.0.1-1.fc29.i686 mesa-dri-drivers-18.0.1-1.fc29.x86_64 mesa-dri-drivers-debuginfo-18.0.1-1.fc29.x86_64 mesa-filesystem-18.0.1-1.fc29.i686 mesa-filesystem-18.0.1-1.fc29.x86_64 mesa-libEGL-18.0.1-1.fc29.x86_64 mesa-libEGL-debuginfo-18.0.1-1.fc29.x86_64 mesa-libgbm-18.0.1-1.fc29.x86_64 mesa-libgbm-debuginfo-18.0.1-1.fc29.x86_64 mesa-libGL-18.0.1-1.fc29.i686 mesa-libGL-18.0.1-1.fc29.x86_64 mesa-libglapi-18.0.1-1.fc29.i686 mesa-libglapi-18.0.1-1.fc29.x86_64 mesa-libglapi-debuginfo-18.0.1-1.fc29.x86_64 mesa-libxatracker-18.0.1-1.fc29.x86_64
Created attachment 139201 [details]<=
/span>
dmesg
Created attachment 139202=
[details]
gnome-shell strace
# readlink /proc/9228/fd/44=20 socket:[269743]
some more snip with large time executing time: writev(44, [{iov_base=3D"\24\0\6\0\4\0@\3\6\1\0\0\6\0\0\0\0\0\0\0\377\377\377= \377", iov_len=3D24}, {iov_base=3DNULL, iov_len=3D0}, {iov_base=3D"", io= v_len=3D0}], 3) =3D 24 <0.000027> poll([{fd=3D44, events=3DPOLLIN}], 1, -1) =3D 1 ([{fd=3D44, revents=3DPOL= LIN}]) <50.420278> recvmsg(44, {msg_name=3DNULL, msg_namelen=3D0, msg_iov=3D[{iov_base=3D"= ;A\0\361\220*> \0\3\0\202\0\35\1 \0\0\20\6\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=3D4= 096}], msg_iovlen=3D1, msg_controllen=3D0, msg_flags=3D0}, 0) =3D 4096 <0.00004= 0> writev(44, [{iov_base=3D"\24\0\6\0\4\0@\3\6\1\0\0\6\0\0\0\0\0\0\0\377\377\377= \377", iov_len=3D24}, {iov_base=3DNULL, iov_len=3D0}, {iov_base=3D"", io= v_len=3D0}], 3) =3D 24 <0.000027> poll([{fd=3D44, events=3DPOLLIN}], 1, -1) =3D 1 ([{fd=3D44, revents=3DPOL= LIN}]) <20.660729> recvmsg(44, {msg_name=3DNULL, msg_namelen=3D0, msg_iov=3D[{iov_base=3D"= ;A\0\302\220\"> \0\3\0\202\0\35\1 \0\0\20\6\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=3D4096= }], msg_iovlen=3D1, msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32 <0.000037&= gt; mmap(NULL, 2510848, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x18e396000) =3D 0x7fc9fc09a000 <0.000042> write(4, "\1\0\0\0\0\0\0\0", 8) =3D 8 <0.000019> ioctl(13, DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM, 0x7ffcd4c04150) =3D 0 <13.330551> ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04160) =3D= 0 <0.000062> ioctl(13, DRM_IOCTL_AMDGPU_GEM_MMAP, 0x7ffcd4c04610) =3D 0 <0.000021> mmap(NULL, 4435968, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x366ad5000) =3D 0x7fc9f63c2000 <0.000031> epoll_wait(5, [{EPOLLIN, {u32=3D3087109920, u64=3D140508647231264}}], 32, 0= ) =3D 1 <0.000020> recvmsg(18, {msg_name=3DNULL, msg_namelen=3D0, msg_iov=3D[{iov_base=3D"%\0\0\0\1\0\24\0.\0\0\0\0\0\0\0\0\0\0\0%\0\0\0= \10\0\f\0\2\0\0\0"..., iov_len=3D1600}, {iov_base=3D"", iov_len=3D2496}], msg_iovlen=3D2= , msg_controllen=3D0, msg_flags=3DMSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) =3D 132 <0= .000025> ioctl(13, DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM, 0x7ffcd4c04150) =3D 0 <12.791998> ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04160) =3D= 0 <0.000072> ioctl(13, DRM_IOCTL_AMDGPU_GEM_MMAP, 0x7ffcd4c04610) =3D 0 <0.000078> mmap(NULL, 10604544, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x167281000) =3D 0x7fc9ed0e9000 <0.000032> mmap(NULL, 5177344, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x22aa35000) =3D 0x7fc9f1bf0000 <0.000031> ioctl(13, DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM, 0x7ffcd4c04150) =3D 0 <10.536264> ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04160) =3D= 0 <0.000175> ioctl(13, DRM_IOCTL_AMDGPU_GEM_MMAP, 0x7ffcd4c04610) =3D 0 <0.000203> mmap(NULL, 2318336, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x1609ec000) =3D 0x7fc9fcbc9000 <0.000041> epoll_wait(5, [{EPOLLIN, {u32=3D3087109920, u64=3D140508647231264}}], 32, 0= ) =3D 1 <0.000016> recvmsg(18, {msg_name=3DNULL, msg_namelen=3D0, msg_iov=3D[{iov_base=3D"\33\0\0\0\1\0\24\0 \0\0\0\0\0\0\0\0\0\0\0\33\0\0\0\10\0\f\0\2\0\0\0"..., iov_len=3D3376}, {iov_base=3D"", iov_len=3D720}], msg_iovlen=3D2, msg_controllen= =3D0, msg_flags=3DMSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) =3D 188 <0= .000021> ioctl(13, DRM_IOCTL_AMDGPU_GEM_CREATE or DRM_IOCTL_VIA_ALLOCMEM, 0x7ffcd4c04150) =3D 0 <25.560096> ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0x48, 0x28), 0x7ffcd4c04160) =3D= 0 <0.000098> ioctl(13, DRM_IOCTL_AMDGPU_GEM_MMAP, 0x7ffcd4c04610) =3D 0 <0.000034> mmap(NULL, 4435968, PROT_READ|PROT_WRITE, MAP_SHARED, 13, 0x38ca63000) =3D 0x7fc9f186a000 <0.000036>
# lspci 00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controll= er (rev 06) 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Fami= ly USB xHCI (rev 04) 00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04) 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family P= CI Express Root Port #1 (rev d4) 00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family P= CI Express Root Port #3 (rev d4) 00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family P= CI Express Root Port #4 (rev d4) 00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family P= CI Express Root Port #5 (rev d4) 00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Fam= ily 6-port SATA Controller 1 [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8= 411 PCI Express Gigabit Ethernet Controller (rev 06) 03:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41) 05:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1470 (rev c3) 06:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1471 07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] V= ega 10 XT [Radeon RX Vega 64] (rev c3) 07:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf8
Does https://patchwo= rk.freedesktop.org/patch/218931/ help?
What | Removed | Added |
---|---|---|
Status | NEW | RESOLVED |
Resolution | --- | MOVED |
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this = link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/363.