Bug 89878 - [HSW] wakeup after STR causes drivers/gpu/drm/i915/intel_uncore.c:528 hsw_unclaimed_reg_debug.isra.11+0x78/0x90()
Summary: [HSW] wakeup after STR causes drivers/gpu/drm/i915/intel_uncore.c:528 hsw_unc...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 16:43 UTC by Thomas Kaergel
Modified: 2017-07-24 22:47 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
complete /var/log/messages (21.45 KB, text/plain)
2015-04-02 16:43 UTC, Thomas Kaergel
no flags Details

Description Thomas Kaergel 2015-04-02 16:43:40 UTC
Created attachment 114833 [details]
complete /var/log/messages

Hi,

i recognized the following issue on Lenovo t450s with intel hd550 graphics. OS is gentoo, kernel version is 3.18.9-gentoo. 

Everytime i put the machine in STR (SuspendToRam) this issue occurs after wakeup:

Apr  2 18:13:31 t450s kernel: ------------[ cut here ]------------
Apr  2 18:13:31 t450s kernel: WARNING: CPU: 0 PID: 3256 at drivers/gpu/drm/i915/intel_uncore.c:528 hsw_unclaimed_reg_debug.isra.11+0x78/0x90()
Apr  2 18:13:31 t450s kernel: Unclaimed register detected before reading register 0x130040
Apr  2 18:13:31 t450s kernel: Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat vboxnetadp(O) vboxnetflt(O) vboxdrv(O) x86_pkg_temp_thermal
Apr  2 18:13:31 t450s kernel: CPU: 0 PID: 3256 Comm: kworker/u16:14 Tainted: G           O   3.18.9-gentoo #13
Apr  2 18:13:31 t450s kernel: Hardware name: LENOVO 20BX000TGE/20BX000TGE, BIOS JBET39WW (1.04 ) 12/09/2014
Apr  2 18:13:31 t450s kernel: Workqueue: events_unbound async_run_entry_fn
Apr  2 18:13:31 t450s kernel:  0000000000000009 ffff880087507b08 ffffffff819f49b9 ffffffff82042fb8
Apr  2 18:13:31 t450s kernel:  ffff880087507b58 ffff880087507b48 ffffffff81090b7c ffff880087507b38
Apr  2 18:13:31 t450s kernel:  ffff88034c360060 0000000000130040 0000000000000000 0000000000130040
Apr  2 18:13:31 t450s kernel: Call Trace:
Apr  2 18:13:31 t450s kernel:  [<ffffffff819f49b9>] dump_stack+0x46/0x58
Apr  2 18:13:31 t450s kernel:  [<ffffffff81090b7c>] warn_slowpath_common+0x7c/0xa0
Apr  2 18:13:31 t450s kernel:  [<ffffffff81090be1>] warn_slowpath_fmt+0x41/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff81556ee8>] hsw_unclaimed_reg_debug.isra.11+0x78/0x90
Apr  2 18:13:31 t450s kernel:  [<ffffffff81512070>] ? i915_resume_early+0x50/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff81559849>] gen6_read32+0x59/0x130
Apr  2 18:13:31 t450s kernel:  [<ffffffff8156e377>] hsw_disable_pc8+0x37/0x360
Apr  2 18:13:31 t450s kernel:  [<ffffffff81511e4b>] intel_resume_prepare+0x5bb/0x5e0
Apr  2 18:13:31 t450s kernel:  [<ffffffff81512070>] ? i915_resume_early+0x50/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff81512070>] ? i915_resume_early+0x50/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff81511fae>] i915_drm_thaw_early+0x1e/0x70
Apr  2 18:13:31 t450s kernel:  [<ffffffff81512062>] i915_resume_early+0x42/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff81512080>] i915_pm_resume_early+0x10/0x20
Apr  2 18:13:31 t450s kernel:  [<ffffffff815ba4c0>] dpm_run_callback+0x40/0x100
Apr  2 18:13:31 t450s kernel:  [<ffffffff815ba823>] device_resume_early+0xb3/0x1a0
Apr  2 18:13:31 t450s kernel:  [<ffffffff815ba92c>] async_resume_early+0x1c/0x50
Apr  2 18:13:31 t450s kernel:  [<ffffffff810ae0c6>] async_run_entry_fn+0x36/0xf0
Apr  2 18:13:31 t450s kernel:  [<ffffffff810a6cd8>] process_one_work+0x148/0x3d0
Apr  2 18:13:31 t450s kernel:  [<ffffffff810a7079>] worker_thread+0x119/0x440
Apr  2 18:13:31 t450s kernel:  [<ffffffff810a6f60>] ? process_one_work+0x3d0/0x3d0
Apr  2 18:13:31 t450s kernel:  [<ffffffff810ab9c4>] kthread+0xc4/0xe0
Apr  2 18:13:31 t450s kernel:  [<ffffffff810ab900>] ? kthread_create_on_node+0x180/0x180
Apr  2 18:13:31 t450s kernel:  [<ffffffff819fdcac>] ret_from_fork+0x7c/0xb0
Apr  2 18:13:31 t450s kernel:  [<ffffffff810ab900>] ? kthread_create_on_node+0x180/0x180
Apr  2 18:13:31 t450s kernel: ---[ end trace 54c0203525a243f6 ]---
Comment 1 Jesse Barnes 2015-04-02 20:45:11 UTC
Does this occur with older kernels?  If not, can you bisect to the failing commit?
Comment 2 Jesse Barnes 2015-04-02 20:47:57 UTC
(I think this is BDW...)
Comment 3 Thomas Kaergel 2015-04-02 21:15:58 UTC
Just tried kernel gentoo-3.17.8-r1 and the trace is still in dmesg output after STR wakeup, but X11 screen is no longer broken after STR :)
dmesg output is:

[   47.036455] ------------[ cut here ]------------
[   47.036459] WARNING: CPU: 2 PID: 3403 at drivers/gpu/drm/i915/intel_uncore.c:528 hsw_unclaimed_reg_debug.isra.11+0x70/0x90()
[   47.036460] Unclaimed register detected before reading register 0x130040
[   47.036465] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat vboxnetadp(O) vboxnetflt(O) vboxdrv(O) x86_pkg_temp_thermal
[   47.036467] CPU: 2 PID: 3403 Comm: kworker/u16:76 Tainted: G           O   3.17.8-gentoo-r1 #1
[   47.036468] Hardware name: LENOVO 20BX000TGE/20BX000TGE, BIOS JBET39WW (1.04 ) 12/09/2014
[   47.036470] Workqueue: events_unbound async_run_entry_fn
[   47.036472]  0000000000000009 ffff880323607be0 ffffffff819cce50 ffff880323607c28
[   47.036474]  ffff880323607c18 ffffffff8108d7e8 ffff88034bdf0060 0000000000130040
[   47.036475]  ffffffff81ca50ef 0000000000130040 ffff88034bdf0060 ffff880323607c78
[   47.036476] Call Trace:
[   47.036478]  [<ffffffff819cce50>] dump_stack+0x45/0x56
[   47.036480]  [<ffffffff8108d7e8>] warn_slowpath_common+0x78/0xa0
[   47.036482]  [<ffffffff8108d857>] warn_slowpath_fmt+0x47/0x50
[   47.036485]  [<ffffffff817a0a8e>] ? raw_pci_read+0x1e/0x40
[   47.036487]  [<ffffffff8153ee10>] hsw_unclaimed_reg_debug.isra.11+0x70/0x90
[   47.036488]  [<ffffffff81541729>] gen6_read32+0x59/0x130
[   47.036490]  [<ffffffff815556a7>] hsw_disable_pc8+0x37/0x360
[   47.036493]  [<ffffffff814fe230>] ? i915_resume_early+0x50/0x50
[   47.036494]  [<ffffffff814fe0b8>] i915_drm_thaw_early+0x58/0x60
[   47.036496]  [<ffffffff814fe21e>] i915_resume_early+0x3e/0x50
[   47.036497]  [<ffffffff814fe240>] i915_pm_resume_early+0x10/0x20
[   47.036499]  [<ffffffff815a01c0>] dpm_run_callback+0x40/0x100
[   47.036501]  [<ffffffff815a0513>] device_resume_early+0xb3/0x1a0
[   47.036502]  [<ffffffff815a0618>] async_resume_early+0x18/0x40
[   47.036504]  [<ffffffff810aa552>] async_run_entry_fn+0x32/0x130
[   47.036505]  [<ffffffff810a33e8>] process_one_work+0x148/0x3d0
[   47.036507]  [<ffffffff810a3789>] worker_thread+0x119/0x480
[   47.036509]  [<ffffffff810a3670>] ? process_one_work+0x3d0/0x3d0
[   47.036510]  [<ffffffff810a7fa4>] kthread+0xc4/0xe0
[   47.036512]  [<ffffffff810a7ee0>] ? kthread_create_on_node+0x170/0x170
[   47.036514]  [<ffffffff819d646c>] ret_from_fork+0x7c/0xb0
[   47.036516]  [<ffffffff810a7ee0>] ? kthread_create_on_node+0x170/0x170
[   47.036517] ---[ end trace 68f66717252baa96 ]---

i will now test kernel 3.14.36-gentoo.
Comment 4 Thomas Kaergel 2015-04-02 22:11:30 UTC
this time i tried 3.14.36-gerntoo... X11 screen is unusable drectly after booting. Dmesg shows this trace:

[   18.506870] ------------[ cut here ]------------
[   18.506875] WARNING: CPU: 2 PID: 2482 at drivers/gpu/drm/i915/i915_drv.c:480 i915_semaphore_is_enabled+0x6f/0x80()
[   18.506876] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat vboxnetadp(O) vboxnetflt(O) vboxdrv(O) x86_pkg_temp_thermal
[   18.506888] CPU: 2 PID: 2482 Comm: X Tainted: G        W  O 3.14.36-gentoo #1
[   18.506889] Hardware name: LENOVO 20BX000TGE/20BX000TGE, BIOS JBET39WW (1.04 ) 12/09/2014
[   18.506890]  0000000000000009
[   18.506891]  ffff880330cf3bc0
[   18.506891]  ffffffff81995a63
[   18.506892]  0000000000000000

[   18.506893]  ffff880330cf3bf8
[   18.506893]  ffffffff8108afc8
[   18.506894]  ffff88008c075b10
[   18.506894]  ffff88034be51000

[   18.506895]  ffff88008c074000
[   18.506896]  0000000000000250
[   18.506896]  ffff88034b437b00
[   18.506897]  ffff880330cf3c08

[   18.506903] Call Trace:
[   18.506909]  [<ffffffff81995a63>] dump_stack+0x45/0x56
[   18.506914]  [<ffffffff8108afc8>] warn_slowpath_common+0x78/0xa0
[   18.506919]  [<ffffffff8108b0a5>] warn_slowpath_null+0x15/0x20
[   18.506925]  [<ffffffff814ebb6f>] i915_semaphore_is_enabled+0x6f/0x80
[   18.506929]  [<ffffffff8154fdc0>] gen6_add_request+0x50/0x160
[   18.506933]  [<ffffffff814fc80d>] __i915_add_request+0x5d/0x240
[   18.506939]  [<ffffffff81506365>] i915_gem_do_execbuffer.isra.21+0x995/0x1090
[   18.506944]  [<ffffffff811b14fa>] ? file_update_time+0x8a/0xd0
[   18.506950]  [<ffffffff81506f37>] i915_gem_execbuffer2+0x97/0x270
[   18.506965]  [<ffffffff814d0b22>] drm_ioctl+0x4c2/0x5f0
[   18.506971]  [<ffffffff810ae046>] ? __remove_hrtimer+0x46/0xa0
[   18.506977]  [<ffffffff811aa448>] do_vfs_ioctl+0x2c8/0x4a0
[   18.506983]  [<ffffffff811aa6a1>] SyS_ioctl+0x81/0xa0
[   18.506989]  [<ffffffff819a6682>] system_call_fastpath+0x16/0x1b
[   18.506992] ---[ end trace 4f4f6b03cb08791b ]---

Switching one minor up to 3.14.37-gentoo (~amd64) does not change much. X11 screnn still unusable after booting. Dmesg shows:

[  320.930151] ------------[ cut here ]------------
[  320.930171] WARNING: CPU: 0 PID: 2482 at drivers/gpu/drm/i915/i915_drv.c:480 i915_semaphore_is_enabled+0x6f/0x80()
[  320.930174] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat vboxnetadp(O) vboxnetflt(O) vboxdrv(O) x86_pkg_temp_thermal
[  320.930194] CPU: 0 PID: 2482 Comm: X Tainted: G        W  O 3.14.37-gentoo #1
[  320.930197] Hardware name: LENOVO 20BX000TGE/20BX000TGE, BIOS JBET39WW (1.04 ) 12/09/2014
[  320.930201]  0000000000000009 ffff880085cb7bc0 ffffffff81995c33 0000000000000000
[  320.930207]  ffff880085cb7bf8 ffffffff8108afc8 ffff88008c055810 ffff88034c6cc800
[  320.930212]  ffff88008c054000 000000000001a028 ffff88034b5cb080 ffff880085cb7c08
[  320.930218] Call Trace:
[  320.930228]  [<ffffffff81995c33>] dump_stack+0x45/0x56
[  320.930238]  [<ffffffff8108afc8>] warn_slowpath_common+0x78/0xa0
[  320.930245]  [<ffffffff8108b0a5>] warn_slowpath_null+0x15/0x20
[  320.930252]  [<ffffffff814ebc4f>] i915_semaphore_is_enabled+0x6f/0x80
[  320.930259]  [<ffffffff8154fe74>] gen6_add_request+0x24/0x160
[  320.930265]  [<ffffffff814fc8ed>] __i915_add_request+0x5d/0x240
[  320.930274]  [<ffffffff81506445>] i915_gem_do_execbuffer.isra.21+0x995/0x1090
[  320.930282]  [<ffffffff811ab090>] ? poll_select_copy_remaining+0x130/0x130
[  320.930289]  [<ffffffff81507017>] i915_gem_execbuffer2+0x97/0x270
[  320.930299]  [<ffffffff814d0c02>] drm_ioctl+0x4c2/0x5f0
[  320.930306]  [<ffffffff810ae106>] ? __remove_hrtimer+0x46/0xa0
[  320.930312]  [<ffffffff811aa508>] do_vfs_ioctl+0x2c8/0x4a0
[  320.930317]  [<ffffffff811aa761>] SyS_ioctl+0x81/0xa0
[  320.930324]  [<ffffffff819a6842>] system_call_fastpath+0x16/0x1b
[  320.930328] ---[ end trace 4117b446a9da6b20 ]---

So i'm back at 3.17.8-gentoo-r1 which works best so far, but still shows  trace after wakeup from STR

Let me know if can provide more infos.

Best regards
Comment 5 Ander Conselvan de Oliveira 2015-06-02 08:41:18 UTC
Fixed in 3.19.

http://lists.freedesktop.org/archives/dri-devel/2014-December/073982.html


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.