[Bug 100162] [HSW] X server hang when toggling fullscreen in media player

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 28 13:18:56 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100162

Thomas Lindroth <thomas.lindroth at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |REOPENED

--- Comment #10 from Thomas Lindroth <thomas.lindroth at gmail.com> ---
Yes, I still get hangs. According to my logs I've been getting a hang on
average every 10 days. Here is the software I use. Hardware is unchanged.

xorg-server-1.19.3 kernel-4.4.74 mesa-17.0.6 xf86-video-intel-git (from June 1)

Last hang I got was yesterday. The screen froze, audio kept playing, the mouse
cursor moved and changed shape but nothing was redrawn. It will remain stuck in
that state indefinitely unless I try to switch to a framebuffer terminal. Then
it will be stuck for another 60 sec until some timeout fires and I get to the
framebuffer. After that I can switch back to the Xserver like nothing happened.

Dmesg error:

2017 Jun 28 00:17:13 multivac [err] DMAR: DRHD: handling fault status reg 3
2017 Jun 28 00:17:13 multivac [err] DMAR: DMAR:[DMA Read] Request device
[00:02.0] fault addr fa40d000
2017 Jun 28 00:17:13 multivac [err] DMAR:[fault reason 06] PTE Read access is
not set
[...]
2017 Jun 28 01:26:50 multivac [warning] ------------[ cut here ]------------
2017 Jun 28 01:26:50 multivac [warning] WARNING: CPU: 0 PID: 3139 at
/usr/src/linux-4.4.74/drivers/gpu/drm/i915/intel_display.c:3965
intel_crtc_wait_for_pending_flips+0x1dd/0x230()
2017 Jun 28 01:26:50 multivac [warning]
WARN_ON(wait_event_timeout(dev_priv->pending_flip_queue,
!intel_crtc_has_pending_flip(crtc), 60*HZ) == 0)Modules linked in: cfg80211
iptable_nat nf_nat_ipv4 nf_nat xt_limit xt_conntrack iptable_filt
er iptable_mangle ip_tables iTCO_wdt kvm_intel kvm snd_hda_codec_hdmi
crc32_pclmul snd_hda_intel snd_hda_codec lpc_ich mfd_core uas snd_hwdep
usb_storage snd_hda_core hid_microsoft joydev
2017 Jun 28 01:26:50 multivac [warning] CPU: 0 PID: 3139 Comm: X Not tainted
4.4.74 #17
2017 Jun 28 01:26:50 multivac [warning] Hardware name: Gigabyte Technology Co.,
Ltd. Z97X-Gaming G1/Z97X-Gaming G1, BIOS F9 07/31/2015
2017 Jun 28 01:26:50 multivac [warning] 0000000000000286 b997d12cf73fc6e4
ffff880415b0baa0 ffffffff8a2f84bb
2017 Jun 28 01:26:50 multivac [warning] ffff880415b0bae8 ffffffff8aa6cdc8
ffff880415b0bad8 ffffffff8a073dc2
2017 Jun 28 01:26:50 multivac [warning] ffff88041c7ed1a8 ffff88041c208e10
ffff88041c7d3000 ffff88041c7ed000
2017 Jun 28 01:26:50 multivac [warning] Call Trace:
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2f84bb>]
dump_stack+0x4d/0x72
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a073dc2>]
warn_slowpath_common+0x82/0xc0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a073e5c>]
warn_slowpath_fmt+0x5c/0x80
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a0aede3>] ?
finish_wait+0x53/0x70
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49b0ed>]
intel_crtc_wait_for_pending_flips+0x1dd/0x230
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a0af0a0>] ?
wake_atomic_t_function+0x70/0x70
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49c311>]
intel_pre_plane_update+0x111/0x140
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49cae2>]
intel_atomic_commit+0x352/0x6f0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41deee>] ?
drm_atomic_check_only+0x18e/0x590
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41e327>]
drm_atomic_commit+0x37/0x60
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a3fa719>]
drm_atomic_helper_disable_plane+0xa9/0xf0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41cae1>] ?
drm_modeset_lock+0x81/0xd0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a40db39>]
__setplane_internal+0x169/0x250
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41cbc0>] ?
drm_modeset_lock_all_crtcs+0x90/0xa0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a411606>]
drm_mode_setplane+0x136/0x1b0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a403292>]
drm_ioctl+0x152/0x540
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a4114d0>] ?
drm_plane_check_pixel_format+0x50/0x50
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1b1338>]
do_vfs_ioctl+0x298/0x480
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2b09b9>] ?
tomoyo_file_ioctl+0x19/0x20
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2a2453>] ?
security_file_ioctl+0x43/0x60
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1b1599>]
SyS_ioctl+0x79/0x90
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1368fd>] ?
context_tracking_enter+0x1d/0x20
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a767f17>]
entry_SYSCALL_64_fastpath+0x12/0x66
2017 Jun 28 01:26:50 multivac [warning] ---[ end trace 1b805930a62a07c1 ]---
2017 Jun 28 01:26:50 multivac [warning] ------------[ cut here ]------------
2017 Jun 28 01:26:50 multivac [warning] WARNING: CPU: 0 PID: 3139 at
/usr/src/linux-4.4.74/drivers/gpu/drm/i915/intel_display.c:3970
intel_crtc_wait_for_pending_flips+0x225/0x230()
2017 Jun 28 01:26:50 multivac [warning] Removing stuck page flip
2017 Jun 28 01:26:50 multivac [warning] Modules linked in: cfg80211 iptable_nat
nf_nat_ipv4 nf_nat xt_limit xt_conntrack iptable_filter iptable_mangle
ip_tables iTCO_wdt kvm_intel kvm snd_hda_codec_hdmi crc32_pclmul snd_hda_intel
snd_hda_codec lpc_ich mfd_core uas snd_hwdep usb_storage snd_hda_core
hid_microsoft joydev
2017 Jun 28 01:26:50 multivac [warning] CPU: 0 PID: 3139 Comm: X Tainted: G    
   W       4.4.74 #17
2017 Jun 28 01:26:50 multivac [warning] Hardware name: Gigabyte Technology Co.,
Ltd. Z97X-Gaming G1/Z97X-Gaming G1, BIOS F9 07/31/2015
2017 Jun 28 01:26:50 multivac [warning] 0000000000000086 b997d12cf73fc6e4
ffff880415b0baa0 ffffffff8a2f84bb
2017 Jun 28 01:26:50 multivac [warning] ffff880415b0bae8 ffffffff8aa6cdc8
ffff880415b0bad8 ffffffff8a073dc2
2017 Jun 28 01:26:50 multivac [warning] ffff88041c7ed1a8 ffff88041c208e10
ffff88041c7d3000 ffff88041c7ed000
2017 Jun 28 01:26:50 multivac [warning] Call Trace:
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2f84bb>]
dump_stack+0x4d/0x72
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a073dc2>]
warn_slowpath_common+0x82/0xc0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a073e5c>]
warn_slowpath_fmt+0x5c/0x80
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a0aede3>] ?
finish_wait+0x53/0x70
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49b135>]
intel_crtc_wait_for_pending_flips+0x225/0x230
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a0af0a0>] ?
wake_atomic_t_function+0x70/0x70
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49c311>]
intel_pre_plane_update+0x111/0x140
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a49cae2>]
intel_atomic_commit+0x352/0x6f0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41deee>] ?
drm_atomic_check_only+0x18e/0x590
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41e327>]
drm_atomic_commit+0x37/0x60
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a3fa719>]
drm_atomic_helper_disable_plane+0xa9/0xf0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41cae1>] ?
drm_modeset_lock+0x81/0xd0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a40db39>]
__setplane_internal+0x169/0x250
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a41cbc0>] ?
drm_modeset_lock_all_crtcs+0x90/0xa0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a411606>]
drm_mode_setplane+0x136/0x1b0
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a403292>]
drm_ioctl+0x152/0x540
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a4114d0>] ?
drm_plane_check_pixel_format+0x50/0x50
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1b1338>]
do_vfs_ioctl+0x298/0x480
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2b09b9>] ?
tomoyo_file_ioctl+0x19/0x20
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a2a2453>] ?
security_file_ioctl+0x43/0x60
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1b1599>]
SyS_ioctl+0x79/0x90
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a1368fd>] ?
context_tracking_enter+0x1d/0x20
2017 Jun 28 01:26:50 multivac [warning] [<ffffffff8a767f17>]
entry_SYSCALL_64_fastpath+0x12/0x66
2017 Jun 28 01:26:50 multivac [warning] ---[ end trace 1b805930a62a07c2 ]---

There was a DMAR error before the hang this time. I have the IOMMU on at all
times with intel_iommu=on kernel argument. There is a well know bug on Haswell
that results in broken audio over hdmi if the IOMMU is on. As far as I know
there is no solution to that problem and most developers have given up on it. I
don't use hdmi audio so I don't care about it but perhaps this hang is related?

https://bugzilla.kernel.org/show_bug.cgi?id=60769

I could disable the IOMMU to test if the hangs go away but since the hang only
happens once every 10 days I would have to run without IOMMU for a month or two
to make sure. I need the IOMMU for virtualization and don't want to disable it
for that long.

The "Request device [00:02.0]" in the DMAR error is 00:02.0 VGA compatible
controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated
Graphics Controller.

Here is a dump of /proc/iomem right after the hang:
00000000-00000fff : reserved
00001000-0009d7ff : System RAM
0009d800-0009ffff : reserved
000a0000-000bffff : PCI Bus 0000:00
000c0000-000cfdff : Video ROM
000d0000-000d3fff : PCI Bus 0000:00
000d4000-000d7fff : PCI Bus 0000:00
000d8000-000dbfff : PCI Bus 0000:00
000dc000-000dffff : PCI Bus 0000:00
000e0000-000fffff : reserved
  000e0000-000e3fff : PCI Bus 0000:00
  000e4000-000e7fff : PCI Bus 0000:00
  000f0000-000fffff : System ROM
00100000-a48b4fff : System RAM
  0a000000-0a76cf21 : Kernel code
  0a76cf22-0ace6c7f : Kernel data
  0ae13000-0af20fff : Kernel bss
a48b5000-a48bbfff : ACPI Non-volatile Storage
a48bc000-a57d0fff : System RAM
a57d1000-a607efff : reserved
a607f000-c3226fff : System RAM
c3227000-c32b8fff : reserved
c32b9000-c3325fff : System RAM
c3326000-c346cfff : ACPI Non-volatile Storage
c346d000-c9ffefff : reserved
c9fff000-c9ffffff : System RAM
ca000000-caffffff : RAM buffer
cb000000-cf1fffff : reserved
cf200000-feafffff : PCI Bus 0000:00
  d0000000-dfffffff : 0000:00:02.0
  e0000000-f1ffffff : PCI Bus 0000:01
    e0000000-f1ffffff : PCI Bus 0000:02
      e0000000-f1ffffff : PCI Bus 0000:04
        e0000000-efffffff : 0000:04:00.0
        f0000000-f1ffffff : 0000:04:00.0
  f6000000-f71fffff : PCI Bus 0000:01
    f6000000-f70fffff : PCI Bus 0000:02
      f6000000-f70fffff : PCI Bus 0000:04
        f6000000-f6ffffff : 0000:04:00.0
        f7000000-f707ffff : 0000:04:00.0
        f7080000-f7083fff : 0000:04:00.1
    f7100000-f713ffff : 0000:01:00.0
  f7400000-f77fffff : 0000:00:02.0
  f7800000-f78fffff : PCI Bus 0000:0e
    f7800000-f780ffff : 0000:0e:00.0
    f7810000-f78101ff : 0000:0e:00.0
      f7810000-f78101ff : ahci
  f7900000-f79fffff : PCI Bus 0000:0d
    f7900000-f790ffff : 0000:0d:00.0
    f7910000-f79101ff : 0000:0d:00.0
      f7910000-f79101ff : ahci
  f7a00000-f7afffff : PCI Bus 0000:07
    f7a00000-f7a03fff : 0000:07:00.0
  f7b00000-f7bfffff : PCI Bus 0000:06
    f7b00000-f7b3ffff : 0000:06:00.0
      f7b00000-f7b3ffff : alx
  f7c00000-f7c1ffff : 0000:00:19.0
    f7c00000-f7c1ffff : e1000e
  f7c20000-f7c2ffff : 0000:00:14.0
    f7c20000-f7c2ffff : xhci-hcd
  f7c30000-f7c33fff : 0000:00:03.0
    f7c30000-f7c33fff : ICH HD audio
  f7c34000-f7c340ff : 0000:00:1f.3
  f7c35000-f7c357ff : 0000:00:1f.2
    f7c35000-f7c357ff : ahci
  f7c36000-f7c363ff : 0000:00:1d.0
    f7c36000-f7c363ff : ehci_hcd
  f7c37000-f7c373ff : 0000:00:1a.0
    f7c37000-f7c373ff : ehci_hcd
  f7c38000-f7c38fff : 0000:00:19.0
    f7c38000-f7c38fff : e1000e
  f7c39000-f7c3900f : 0000:00:16.0
    f7c39000-f7c3900f : mei_me
  f7fe0000-f7feffff : pnp 00:06
  f8000000-fbffffff : PCI MMCONFIG 0000 [bus 00-3f]
    f8000000-fbffffff : reserved
      f8000000-fbffffff : pnp 00:06
fec00000-fec00fff : reserved
  fec00000-fec003ff : IOAPIC 0
fed00000-fed03fff : reserved
  fed00000-fed003ff : HPET 0
    fed00000-fed003ff : PNP0103:00
fed10000-fed17fff : pnp 00:06
fed18000-fed18fff : pnp 00:06
fed19000-fed19fff : pnp 00:06
fed1c000-fed1ffff : reserved
  fed1c000-fed1ffff : pnp 00:06
    fed1f410-fed1f414 : iTCO_wdt.0.auto
fed20000-fed3ffff : pnp 00:06
fed40000-fed44fff : pnp 00:00
fed45000-fed8ffff : pnp 00:06
fed90000-fed90fff : dmar0
fed91000-fed91fff : dmar1
fee00000-fee00fff : Local APIC
  fee00000-fee00fff : reserved
ff000000-ffffffff : reserved
  ff000000-ffffffff : INT0800:00
    ff000000-ffffffff : pnp 00:06
100000000-42fdfffff : System RAM
42fe00000-42fffffff : RAM buffer

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170628/624b67d7/attachment-0001.html>


More information about the intel-gfx-bugs mailing list