Bug 91960

Summary: [i915] kernel warning hsw_unclaimed_reg_debug intel_uncore.c:619
Product: DRI Reporter: Alexandru DAMIAN <alexandru.damian>
Component: GeneralAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: paravoid, pclouds
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alexandru DAMIAN 2015-09-10 14:02:25 UTC
Ubuntu mainline kernel 
http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/current/linux-image-4.2.0-994-generic_4.2.0-994.201509092200_amd64.deb

Hardware Macbook Pro 12,1

backtrace

[ 3079.596981] WARNING: CPU: 2 PID: 0 at /home/kernel/COD/linux/drivers/gpu/drm/i915/intel_uncore.c:619 hsw_unclaimed_reg_debug.isra.14+0x78/0xa0 [i915]()
[ 3079.596982] Unclaimed register detected before writing to register 0x223a0
[ 3079.596983] Modules linked in: pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) nls_iso8859_1 snd_hda_codec_hdmi joydev applesmc input_polldev btusb btrtl intel_rapl iosf_mbi x86_pkg_temp_thermal btbcm intel_powerclamp btintel bcm5974 coretemp bluetooth snd_hda_codec_cirrus input_leds hid_microsoft snd_hda_codec_generic kvm_intel kvm snd_hda_intel snd_hda_codec snd_hda_core crct10dif_pclmul snd_hwdep crc32_pclmul snd_pcm ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper snd_seq_midi ablk_helper snd_seq_midi_event cryptd i915 snd_rawmidi brcmfmac snd_seq brcmutil cfg80211 lpc_ich bdc_pci drm_kms_helper snd_seq_device snd_timer drm shpchp i2c_algo_bit fb_sys_fops snd syscopyarea mei_me sysfillrect sysimgblt mei soundcore sbs spi_pxa2xx_platform acpi_als sbshc kfifo_buf
[ 3079.597024]  industrialio mac_hid video apple_bl parport_pc ppdev lp parport nfsd auth_rpcgss nfs_acl lockd grace sunrpc autofs4 hid_apple hid_generic usbhid hid uas ahci usb_storage libahci
[ 3079.597034] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G           OE   4.2.0-994-generic #201509092200
[ 3079.597036] Hardware name: Apple Inc. MacBookPro12,1/Mac-E43C1C25D4880AD6, BIOS MBP121.88Z.0167.B07.1506051617 06/05/2015
[ 3079.597037]  ffffffffc05056d0 ffff88026ec83c98 ffffffff817a1c43 0000000000000000
[ 3079.597038]  ffff88026ec83ce8 ffff88026ec83cd8 ffffffff8107719a ffff88026ec83cd8
[ 3079.597040]  ffff880263740078 00000000000223a0 00000000000223a0 ffff880263740078
[ 3079.597041] Call Trace:
[ 3079.597042]  <IRQ>  [<ffffffff817a1c43>] dump_stack+0x45/0x57
[ 3079.597048]  [<ffffffff8107719a>] warn_slowpath_common+0x8a/0xc0
[ 3079.597050]  [<ffffffff81077216>] warn_slowpath_fmt+0x46/0x50
[ 3079.597061]  [<ffffffffc04813c8>] hsw_unclaimed_reg_debug.isra.14+0x78/0xa0 [i915]
[ 3079.597064]  [<ffffffff817a8ce7>] ? _raw_spin_lock_irqsave+0x37/0x40
[ 3079.597073]  [<ffffffffc0485d8f>] gen8_write32+0x5f/0x1b0 [i915]
[ 3079.597083]  [<ffffffffc04773e9>] intel_lrc_irq_handler+0x1a9/0x230 [i915]
[ 3079.597089]  [<ffffffffc0434e54>] gen8_gt_irq_handler+0x224/0x250 [i915]
[ 3079.597094]  [<ffffffffc0434efb>] gen8_irq_handler+0x7b/0x680 [i915]
[ 3079.597096]  [<ffffffff810e09e4>] ? enqueue_hrtimer+0x44/0x80
[ 3079.597098]  [<ffffffff810cdb79>] handle_irq_event_percpu+0x39/0x180
[ 3079.597100]  [<ffffffff810cdd09>] handle_irq_event+0x49/0x70
[ 3079.597101]  [<ffffffff810d0e4d>] handle_edge_irq+0x9d/0x150
[ 3079.597103]  [<ffffffff810171c5>] handle_irq+0x25/0x40
[ 3079.597105]  [<ffffffff817abb31>] do_IRQ+0x51/0xe0
[ 3079.597107]  [<ffffffff817a9aab>] common_interrupt+0x6b/0x6b
[ 3079.597107]  <EOI>  [<ffffffff810e09e4>] ? enqueue_hrtimer+0x44/0x80
[ 3079.597111]  [<ffffffff81643e68>] ? cpuidle_enter_state+0xb8/0x220
[ 3079.597112]  [<ffffffff81643e44>] ? cpuidle_enter_state+0x94/0x220
[ 3079.597114]  [<ffffffff81644007>] cpuidle_enter+0x17/0x20
[ 3079.597115]  [<ffffffff810b72e2>] call_cpuidle+0x32/0x60
[ 3079.597117]  [<ffffffff81643fe3>] ? cpuidle_select+0x13/0x20
[ 3079.597118]  [<ffffffff810b756c>] cpu_startup_entry+0x25c/0x320
[ 3079.597120]  [<ffffffff8104aed5>] start_secondary+0x175/0x1a0
[ 3079.597121] ---[ end trace 49f1deecd67e26fd ]---
Comment 1 Sam Stenvall 2015-09-12 07:45:57 UTC
Just got this on my Thinkpad T450 running Linux 4.2.0-040200-generic (from the Ubuntu mainline kernels). The trace is ever so slightly different though (line 620 instead of 619):

Sep 12 10:18:13 palinski kernel: ------------[ cut here ]------------
Sep 12 10:18:13 palinski kernel: WARNING: CPU: 0 PID: 18479 at /home/kernel/COD/linux/drivers/gpu/drm/i915/intel_uncore.c:620 hsw_unclaimed_reg_debug.isra.14+0x78/0xa0 [i915]()
Sep 12 10:18:13 palinski kernel: Unclaimed register detected after writing to register 0x223a0
Sep 12 10:18:13 palinski kernel: Modules linked in: btrfs xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs libcrc32c cpuid ppp_mppe ppp_async crc_ccitt pci_stub vboxpci(OE) vboxneta
Sep 12 10:18:13 palinski kernel:  rtsx_pci_ms cfg80211 snd_hda_codec thinkpad_acpi drm memstick snd_hda_core snd_hwdep nvram snd_pcm i2c_algo_bit snd_seq_device mei_me lpc_ich mei snd_timer s
Sep 12 10:18:13 palinski kernel: CPU: 0 PID: 18479 Comm: JobWorker Tainted: G        W  OE   4.2.0-040200-generic #201508301530
Sep 12 10:18:13 palinski kernel: Hardware name: LENOVO 20BVCTO1WW/20BVCTO1WW, BIOS JBET51WW (1.16 ) 07/08/2015
Sep 12 10:18:13 palinski kernel:  ffffffffc0496c50 ffff88045dc03c88 ffffffff817a1b43 0000000000000000
Sep 12 10:18:13 palinski kernel:  ffff88045dc03cd8 ffff88045dc03cc8 ffffffff8107719a 0000000000000082
Sep 12 10:18:13 palinski kernel:  ffff88044a370078 ffff88044a3702c0 00000000000223a0 ffff88044a370078
Sep 12 10:18:13 palinski kernel: Call Trace:
Sep 12 10:18:13 palinski kernel:  <IRQ>  [<ffffffff817a1b43>] dump_stack+0x45/0x57
Sep 12 10:18:13 palinski kernel:  [<ffffffff8107719a>] warn_slowpath_common+0x8a/0xc0
Sep 12 10:18:13 palinski kernel:  [<ffffffff81077216>] warn_slowpath_fmt+0x46/0x50
Sep 12 10:18:13 palinski kernel:  [<ffffffffc041adc8>] hsw_unclaimed_reg_debug.isra.14+0x78/0xa0 [i915]
Sep 12 10:18:13 palinski kernel:  [<ffffffffc041efb6>] gen8_write32+0xf6/0x1b0 [i915]
Sep 12 10:18:13 palinski kernel:  [<ffffffffc0412ece>] intel_lrc_irq_handler+0x19e/0x230 [i915]
Sep 12 10:18:13 palinski kernel:  [<ffffffffc0409a34>] gen8_gt_irq_handler+0x224/0x250 [i915]
Sep 12 10:18:13 palinski kernel:  [<ffffffffc0409adc>] gen8_irq_handler+0x7c/0x530 [i915]
Sep 12 10:18:13 palinski kernel:  [<ffffffff814b542a>] ? add_interrupt_randomness+0x3a/0x1c0
Sep 12 10:18:13 palinski kernel:  [<ffffffff810cdb79>] handle_irq_event_percpu+0x39/0x180
Sep 12 10:18:13 palinski kernel:  [<ffffffff810cdd09>] handle_irq_event+0x49/0x70
Sep 12 10:18:13 palinski kernel:  [<ffffffff810d0e4d>] handle_edge_irq+0x9d/0x150
Sep 12 10:18:13 palinski kernel:  [<ffffffff810171c5>] handle_irq+0x25/0x40
Sep 12 10:18:13 palinski kernel:  [<ffffffff817aba31>] do_IRQ+0x51/0xe0
Sep 12 10:18:13 palinski kernel:  [<ffffffff817a99ab>] common_interrupt+0x6b/0x6b
Sep 12 10:18:13 palinski kernel:  <EOI> 
Sep 12 10:18:13 palinski kernel: ---[ end trace 79deec7e25f6469c ]---
Comment 2 Denis Ryzhkov 2015-10-02 11:54:38 UTC
One more trace:

Oct  2 12:58:27 nb kernel: [    0.000000] Linux version 3.19.0-30-generic (buildd@lgw01-13) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #33-Ubuntu SMP Mon Sep 21 20:58:04 UTC 2015 (Ubuntu 3.19.0-30.33-generic 3.19.8-ckt6)
Oct  2 12:58:27 nb kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.19.0-30-generic.efi.signed root=... ro quiet splash i915.mmio_debug=1 vt.handoff=7
Oct  2 12:58:27 nb kernel: [    0.000000] DMI: ASUSTeK COMPUTER INC. TP300LDB/TP300LDB, BIOS TP300LDB.206 12/11/2014

Oct  2 13:02:02 nb kernel: [  217.737048] ------------[ cut here ]------------
Oct  2 13:02:02 nb kernel: [  217.737082] WARNING: CPU: 0 PID: 2113 at /build/linux-aY9Y6L/linux-3.19.0/ubuntu/i915/intel_uncore.c:620 hsw_unclaimed_reg_debug+0x7d/0xa0 [i915
_bpo]()
Oct  2 13:02:02 nb kernel: [  217.737084] Unclaimed register detected before writing to register 0x223a0
Oct  2 13:02:02 nb kernel: [  217.737086] Modules linked in: dm_crypt ctr ccm bbswitch(OE) binfmt_misc rfcomm bnep nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops v
ideobuf2_core v4l2_common videodev joydev btusb media hid_multitouch bluetooth arc4 asus_nb_wmi asus_wmi mxm_wmi sparse_keymap intel_rapl iosf_mbi snd_soc_rt5640 snd_soc_rl62
31 snd_soc_core snd_hda_codec_hdmi snd_compress x86_pkg_temp_thermal iwlmvm snd_pcm_dmaengine intel_powerclamp coretemp mac80211 kvm_intel kvm crct10dif_pclmul crc32_pclmul g
hash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd iwlwifi snd_hda_codec_realtek snd_hda_codec_generic cfg80211 i915_bpo serio_raw intel_ip
s lpc_ich shpchp mei_me drm_kms_helper mei snd_hda_intel snd_hda_controller drm snd_hda_codec snd_hwdep i2c_algo_bit snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_s
eq wmi snd_seq_device snd_timer dell_smo8800 video snd dw_dmac dw_dmac_core soundcore i2c_hid snd_soc_sst_acpi 8250_dw i2c_designware_platform spi_pxa2xx_platform i2c_designw
are_core acpi_pad mac_hid parport_pc ppdev lp parport autofs4 hid_generic usbhid hid psmouse ahci libahci sdhci_acpi sdhci [last unloaded: nvidia]
Oct  2 13:02:02 nb kernel: [  217.737150] CPU: 0 PID: 2113 Comm: chrome Tainted: P           OE  3.19.0-30-generic #33-Ubuntu
Oct  2 13:02:02 nb kernel: [  217.737152] Hardware name: ASUSTeK COMPUTER INC. TP300LDB/TP300LDB, BIOS TP300LDB.206 12/11/2014
Oct  2 13:02:02 nb kernel: [  217.737154]  ffffffffc0481150 ffff88022ec03ca8 ffffffff817c4d4f 0000000000000007
Oct  2 13:02:02 nb kernel: [  217.737156]  ffff88022ec03cf8 ffff88022ec03ce8 ffffffff81076a8a ffff8801f388dc00
Oct  2 13:02:02 nb kernel: [  217.737159]  ffff880223070000 00000000000223a0 00000000000223a0 ffff880223070080
Oct  2 13:02:02 nb kernel: [  217.737162] Call Trace:
Oct  2 13:02:02 nb kernel: [  217.737163]  <IRQ>  [<ffffffff817c4d4f>] dump_stack+0x45/0x57
Oct  2 13:02:02 nb kernel: [  217.737175]  [<ffffffff81076a8a>] warn_slowpath_common+0x8a/0xc0
Oct  2 13:02:02 nb kernel: [  217.737177]  [<ffffffff81076b06>] warn_slowpath_fmt+0x46/0x50
Oct  2 13:02:02 nb kernel: [  217.737184]  [<ffffffff813829c5>] ? blk_run_queue+0x35/0x40
Oct  2 13:02:02 nb kernel: [  217.737205]  [<ffffffffc03ffc7d>] hsw_unclaimed_reg_debug+0x7d/0xa0 [i915_bpo]
Oct  2 13:02:02 nb kernel: [  217.737223]  [<ffffffffc040489a>] gen8_write32+0x5a/0x1b0 [i915_bpo]
Oct  2 13:02:02 nb kernel: [  217.737240]  [<ffffffffc03f6e8b>] intel_lrc_irq_handler+0x19b/0x250 [i915_bpo]
Oct  2 13:02:02 nb kernel: [  217.737257]  [<ffffffffc03ede64>] gen8_gt_irq_handler+0x274/0x2b0 [i915_bpo]
Oct  2 13:02:02 nb kernel: [  217.737271]  [<ffffffffc03edf22>] gen8_irq_handler+0x82/0x5d0 [i915_bpo]
Oct  2 13:02:02 nb kernel: [  217.737276]  [<ffffffff815547ef>] ? scsi_finish_command+0xcf/0x130
Oct  2 13:02:02 nb kernel: [  217.737280]  [<ffffffff814d749a>] ? add_interrupt_randomness+0x3a/0x1f0
Oct  2 13:02:02 nb kernel: [  217.737284]  [<ffffffff810cea87>] handle_irq_event_percpu+0x77/0x1a0
Oct  2 13:02:02 nb kernel: [  217.737287]  [<ffffffff810cebf1>] handle_irq_event+0x41/0x70
Oct  2 13:02:02 nb kernel: [  217.737291]  [<ffffffff810d1c5e>] handle_edge_irq+0x6e/0x120
Oct  2 13:02:02 nb kernel: [  217.737294]  [<ffffffff81017772>] handle_irq+0x22/0x40
Oct  2 13:02:02 nb kernel: [  217.737297]  [<ffffffff817cee1f>] do_IRQ+0x4f/0xf0
Oct  2 13:02:02 nb kernel: [  217.737300]  [<ffffffff817ccc2d>] common_interrupt+0x6d/0x6d
Oct  2 13:02:02 nb kernel: [  217.737302]  <EOI> 
Oct  2 13:02:02 nb kernel: [  217.737304] ---[ end trace 6ed27c185e1a09a4 ]---
Comment 3 Faidon Liambotis 2016-02-21 20:13:58 UTC
Also experiencing this on a Lenovo ThinkPad T450s, with Debian's 4.4.0 and 4.4.2 kernels:

Feb 18 20:07:58 donald kernel: [  818.264555] Unclaimed register detected after reading register 0x22370
Feb 18 20:22:19 donald kernel: [  635.159463] Unclaimed register detected after reading register 0x22384
Feb 18 23:45:33 donald kernel: [ 5693.502739] Unclaimed register detected before writing to register 0x223a0
Feb 21 02:35:51 donald kernel: [ 5811.617670] Unclaimed register detected after reading register 0x22380
Feb 21 13:36:50 donald kernel: [ 3314.585233] Unclaimed register detected after reading register 0x22380

Feb 18 23:45:33 donald kernel: [ 5693.502719] ------------[ cut here ]------------
Feb 18 23:45:33 donald kernel: [ 5693.502738] WARNING: CPU: 0 PID: 9287 at /tmp/buildd/linux-4.4/drivers/gpu/drm/i915/intel_uncore.c:619 hsw_unclaimed_reg_debug+0x69/0x
90 [i915]()
Feb 18 23:45:33 donald kernel: [ 5693.502739] Unclaimed register detected before writing to register 0x223a0
Feb 18 23:45:33 donald kernel: [ 5693.502740] Modules linked in: rpcsec_gss_krb5 auth_rpcgss oid_registry nfsv4 dns_resolver nfs lockd grace sunrpc fscache usb_serial_s
imple usbserial ctr ccm rfcomm joydev bnep arc4 intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm iTCO_wdt iwlmvm iTCO_vendor_support irqbypass mac
80211 psmouse serio_raw sg pcspkr iwlwifi i2c_i801 cdc_mbim cdc_wdm rtsx_pci_ms cfg80211 lpc_ich memstick uvcvideo shpchp videobuf2_vmalloc videobuf2_memops videobuf2_v
4l2 videobuf2_core v4l2_common btusb cdc_ncm btrtl cdc_acm usbnet mii btbcm videodev btintel media bluetooth mei_me mei snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda
_codec_generic snd_hda_intel thinkpad_acpi snd_hda_codec ac nvram battery snd_hda_core rfkill snd_hwdep snd_pcm snd_timer snd soundcore evdev tpm_tis tpm processor auto
fs4 ext4 crc16 mbcache jbd2 algif_skcipher af_alg dm_crypt dm_mod sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel jitterentropy_rng sha256_ssse3 sha256_generic hmac r
tsx_pci_sdmmc mmc_core drbg ansi_cprng aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci e1000e ptp i915 pps_core libata i2c_algo_bit xhci
_pci ehci_pci xhci_hcd drm_kms_helper scsi_mod ehci_hcd rtsx_pci usbcore mfd_core drm usb_common thermal wmi video button
Feb 18 23:45:33 donald kernel: [ 5693.502789] CPU: 0 PID: 9287 Comm: Xorg Tainted: G        W       4.4.0-1-amd64 #1 Debian 4.4-1~wmf1
Feb 18 23:45:33 donald kernel: [ 5693.502790] Hardware name: LENOVO 20BX000TGM/20BX000TGM, BIOS JBET55WW (1.20 ) 12/23/2015
Feb 18 23:45:33 donald kernel: [ 5693.502791]  0000000000000000 00000000c50d38a8 ffffffff812e8ce9 ffff88035dc03dc0
Feb 18 23:45:33 donald kernel: [ 5693.502792]  ffffffff81076b91 ffff88034a330000 ffff88035dc03e18 00000000000223a0
Feb 18 23:45:33 donald kernel: [ 5693.502794]  00000000000223a0 0000000000000046 ffffffff81076c1c ffffffffa03581b0
Feb 18 23:45:33 donald kernel: [ 5693.502795] Call Trace:
Feb 18 23:45:33 donald kernel: [ 5693.502796]  <IRQ>  [<ffffffff812e8ce9>] ? dump_stack+0x40/0x57
Feb 18 23:45:33 donald kernel: [ 5693.502802]  [<ffffffff81076b91>] ? warn_slowpath_common+0x81/0xb0
Feb 18 23:45:33 donald kernel: [ 5693.502804]  [<ffffffff81076c1c>] ? warn_slowpath_fmt+0x5c/0x80
Feb 18 23:45:33 donald kernel: [ 5693.502814]  [<ffffffffa02d5083>] ? gen6_read32+0xd3/0x180 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502835]  [<ffffffffa02d2b49>] ? hsw_unclaimed_reg_debug+0x69/0x90 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502845]  [<ffffffffa02d7838>] ? gen8_write32+0x58/0x1a0 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502851]  [<ffffffffa0287a45>] ? gen8_gt_irq_handler+0x215/0x240 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502857]  [<ffffffffa0287b0e>] ? gen8_irq_handler+0x9e/0x6f0 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502860]  [<ffffffff810c970d>] ? handle_irq_event_percpu+0x6d/0x180
Feb 18 23:45:33 donald kernel: [ 5693.502862]  [<ffffffff810c9859>] ? handle_irq_event+0x39/0x60
Feb 18 23:45:33 donald kernel: [ 5693.502864]  [<ffffffff810ccc2b>] ? handle_edge_irq+0x7b/0x140
Feb 18 23:45:33 donald kernel: [ 5693.502865]  [<ffffffff810180cc>] ? handle_irq+0x1c/0x30
Feb 18 23:45:33 donald kernel: [ 5693.502868]  [<ffffffff8158a1d6>] ? do_IRQ+0x46/0xd0
Feb 18 23:45:33 donald kernel: [ 5693.502870]  [<ffffffff81588302>] ? common_interrupt+0x82/0x82
Feb 18 23:45:33 donald kernel: [ 5693.502870]  <EOI>  [<ffffffffa02ab69e>] ? i915_gem_do_execbuffer.isra.25+0x7be/0x1270 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502889]  [<ffffffffa02ab805>] ? i915_gem_do_execbuffer.isra.25+0x925/0x1270 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502891]  [<ffffffff8152c781>] ? unix_stream_sendmsg+0x3b1/0x3e0
Feb 18 23:45:33 donald kernel: [ 5693.502900]  [<ffffffffa02acd7c>] ? i915_gem_execbuffer2+0xac/0x230 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502907]  [<ffffffffa004f496>] ? drm_ioctl+0x126/0x490 [drm]
Feb 18 23:45:33 donald kernel: [ 5693.502915]  [<ffffffffa02accd0>] ? i915_gem_execbuffer+0x300/0x300 [i915]
Feb 18 23:45:33 donald kernel: [ 5693.502918]  [<ffffffff811e9656>] ? do_vfs_ioctl+0x2d6/0x4b0
Feb 18 23:45:33 donald kernel: [ 5693.502919]  [<ffffffff811e98a6>] ? SyS_ioctl+0x76/0x90
Feb 18 23:45:33 donald kernel: [ 5693.502921]  [<ffffffff815877f6>] ? system_call_fast_compare_end+0xc/0x6b
Feb 18 23:45:33 donald kernel: [ 5693.502922] ---[ end trace 62eab8e72842e940 ]---


Feb 21 13:36:50 donald kernel: [ 3314.585209] ------------[ cut here ]------------
Feb 21 13:36:50 donald kernel: [ 3314.585231] WARNING: CPU: 0 PID: 11491 at /build/linux-he22YB/linux-4.4.2/drivers/gpu/drm/i915/intel_uncore.c:619 hsw_unclaimed_reg_de
bug+0x65/0x80 [i915]()
Feb 21 13:36:50 donald kernel: [ 3314.585233] Unclaimed register detected after reading register 0x22380
Feb 21 13:36:50 donald kernel: [ 3314.585235] Modules linked in: usb_serial_simple usbserial ctr ccm rfcomm joydev bnep intel_rapl iosf_mbi iTCO_wdt iTCO_vendor_support arc4 x86_pkg_temp_thermal intel_powerclamp coretemp kvm iwlmvm irqbypass mac80211 psmouse serio_raw pcspkr intel_pch_thermal i2c_i801 sg lpc_ich uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 iwlwifi videobuf2_core v4l2_common rtsx_pci_ms btusb btrtl cfg80211 memstick videodev btbcm btintel media snd_hda_codec_hdmi bluetooth cdc_mbim cdc_wdm shpchp cdc_ncm snd_hda_codec_realtek usbnet snd_hda_codec_generic mii cdc_acm snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm mei_me snd_timer mei thinkpad_acpi nvram snd soundcore rfkill battery ac evdev tpm_tis tpm processor acpi_call(O) parport_pc ppdev lp parport autofs4 ext4 crc16 mbcache jbd2 algif_skcipher af_alg dm_crypt dm_mod sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel rtsx_pci_sdmmc mmc_core jitterentropy_rng sha256_ssse3 sha256_generic hmac drbg ansi_cprng aesni_intel ahci libahci aes_x86_64 lrw gf128mul glue_helper ablk_helper ehci_pci cryptd ehci_hcd e1000e ptp i915 pps_core libata i2c_algo_bit xhci_pci drm_kms_helper scsi_mod xhci_hcd rtsx_pci mfd_core usbcore drm usb_common thermal wmi fjes video button
Feb 21 13:36:50 donald kernel: [ 3314.585302] CPU: 0 PID: 11491 Comm: chromium Tainted: G        W  O    4.4.0-1-amd64 #1 Debian 4.4.2-2
Feb 21 13:36:50 donald kernel: [ 3314.585304] Hardware name: LENOVO 20BX000TGM/20BX000TGM, BIOS JBET55WW (1.20 ) 12/23/2015
Feb 21 13:36:50 donald kernel: [ 3314.585305]  0000000000000000 0000000006381811 ffffffff812e7679 ffff88035dc03d70
Feb 21 13:36:50 donald kernel: [ 3314.585307]  ffffffff8107632d ffff880349e60000 ffff88035dc03dc8 ffff880349e60080
Feb 21 13:36:50 donald kernel: [ 3314.585310]  0000000000000001 0000000000000046 ffffffff810763bc ffffffffa030f4e8
Feb 21 13:36:50 donald kernel: [ 3314.585312] Call Trace:
Feb 21 13:36:50 donald kernel: [ 3314.585313]  <IRQ>  [<ffffffff812e7679>] ? dump_stack+0x40/0x57
Feb 21 13:36:50 donald kernel: [ 3314.585321]  [<ffffffff8107632d>] ? warn_slowpath_common+0x7d/0xb0
Feb 21 13:36:50 donald kernel: [ 3314.585323]  [<ffffffff810763bc>] ? warn_slowpath_fmt+0x5c/0x80
Feb 21 13:36:50 donald kernel: [ 3314.585336]  [<ffffffffa028b7a5>] ? hsw_unclaimed_reg_debug+0x65/0x80 [i915]
Feb 21 13:36:50 donald kernel: [ 3314.585348]  [<ffffffffa028dde8>] ? gen6_read32+0xc8/0x180 [i915]
Feb 21 13:36:50 donald kernel: [ 3314.585359]  [<ffffffffa0281f04>] ? intel_lrc_irq_handler+0xc4/0x230 [i915]
Feb 21 13:36:50 donald kernel: [ 3314.585367]  [<ffffffffa0240aac>] ? gen8_gt_irq_handler+0x20c/0x240 [i915]
Feb 21 13:36:50 donald kernel: [ 3314.585374]  [<ffffffffa0240b7d>] ? gen8_irq_handler+0x9d/0x6f0 [i915]
Feb 21 13:36:50 donald kernel: [ 3314.585377]  [<ffffffff810c8b9d>] ? handle_irq_event_percpu+0x6d/0x170
Feb 21 13:36:50 donald kernel: [ 3314.585379]  [<ffffffff810c8cd9>] ? handle_irq_event+0x39/0x60
Feb 21 13:36:50 donald kernel: [ 3314.585381]  [<ffffffff810cc0bb>] ? handle_edge_irq+0x7b/0x140
Feb 21 13:36:50 donald kernel: [ 3314.585384]  [<ffffffff81017ea9>] ? handle_irq+0x19/0x30
Feb 21 13:36:50 donald kernel: [ 3314.585387]  [<ffffffff8158c296>] ? do_IRQ+0x46/0xd0
Feb 21 13:36:50 donald kernel: [ 3314.585389]  [<ffffffff8158a3c2>] ? common_interrupt+0x82/0x82
Feb 21 13:36:50 donald kernel: [ 3314.585390]  <EOI>
Feb 21 13:36:50 donald kernel: [ 3314.585391] ---[ end trace d0ef44d32ab0c1be ]---
Comment 4 Robert Schetterer 2016-03-22 12:22:21 UTC
I can confirm this with lenovo laptop t450s kernel 4.4 Kubuntu Xenial
i guess relation to

https://bugs.kde.org/show_bug.cgi?id=360766
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1555078

basicly this stops external displays come up after resume
but for magic if not login after resume and wait time to set brightness auto as configured, some i.e mouse action does wake up external displays.
Speculation the drm resume code is broken.....
Comment 5 JM9 2016-03-26 01:21:49 UTC
In my case, I'm logging into X without a login manager at tty1 and after a thaw my laptop display does not come up. Not just the external display. This makes hibernate to unusable.

https://bugs.freedesktop.org/show_bug.cgi?id=93574
Comment 6 Inalbyss 2016-08-13 11:14:51 UTC
Another trace:

-Kernel: 4.6.0-1-amd64
-Linux Distro: Debian Sid
-Machine: Lenovo Thinkpad E460

-Trace:

[  669.371854] ------------[ cut here ]------------
[  669.371894] WARNING: CPU: 2 PID: 5543 at /build/linux-aOJbQa/linux-4.6.4/drivers/gpu/drm/i915/intel_uncore.c:649 __unclaimed_reg_debug+0x77/0x80 [i915]
[  669.371896] Unclaimed register detected after reading register 0x65f10
[  669.371898] Modules linked in: fuse(E) hmac(E) drbg(E) ansi_cprng(E) ctr(E) ccm(E) cpufreq_stats(E) cpufreq_conservative(E) cpufreq_powersave(E) cpufreq_userspace(E) bnep(E) toshiba_acpi(E) sparse_keymap(E) toshiba_haps(E) hp_accel(E) lis3lv02d(E) input_polldev(E) nls_utf8(E) nls_cp437(E) vfat(E) fat(E) uvcvideo(E) videobuf2_vmalloc(E) videobuf2_memops(E) videobuf2_v4l2(E) videobuf2_core(E) videodev(E) media(E) snd_hda_codec_hdmi(E) snd_hda_codec_conexant(E) snd_hda_codec_generic(E) btusb(E) btrtl(E) btbcm(E) btintel(E) joydev(E) bluetooth(E) intel_rapl(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) kvm_intel(E) amdkfd(E) rtsx_pci_sdmmc(E) rtsx_pci_ms(E) memstick(E) mmc_core(E) kvm(E) amdgpu(E) arc4(E) iTCO_wdt(E) iwlmvm(E) iTCO_vendor_support(E) i915(E) irqbypass(E) mac80211(E) iwlwifi(E)
[  669.371937]  snd_soc_skl(E) snd_soc_skl_ipc(E) snd_soc_sst_ipc(E) snd_soc_sst_dsp(E) crct10dif_pclmul(E) crc32_pclmul(E) snd_hda_ext_core(E) cfg80211(E) snd_soc_sst_match(E) ghash_clmulni_intel(E) e1000e(E) snd_soc_core(E) efi_pstore(E) rtsx_pci(E) ttm(E) psmouse(E) mei_me(E) mfd_core(E) snd_compress(E) dw_dmac_core(E) pcspkr(E) efivars(E) thinkpad_acpi(E) snd_hda_intel(E) nvram(E) sg(E) wmi(E) rfkill(E) snd_hda_codec(E) drm_kms_helper(E) ptp(E) battery(E) ac(E) drm(E) fjes(E) snd_hda_core(E) snd_hwdep(E) snd_pcm(E) video(E) xhci_pci(E) xhci_hcd(E) usbcore(E) mei(E) pps_core(E) i2c_algo_bit(E) snd_timer(E) snd(E) soundcore(E) usb_common(E) button(E) tpm_crb(E) intel_pch_thermal(E) i2c_i801(E) shpchp(E) tpm_tis(E) processor(E) tpm(E) parport_pc(E) ppdev(E) lp(E) sunrpc(E) parport(E) efivarfs(E) autofs4(E)
[  669.371979]  ext4(E) ecb(E) crc16(E) jbd2(E) crc32c_generic(E) mbcache(E) sd_mod(E) crc32c_intel(E) aesni_intel(E) aes_x86_64(E) glue_helper(E) lrw(E) gf128mul(E) ablk_helper(E) cryptd(E) evdev(E) serio_raw(E) ahci(E) libahci(E) libata(E) scsi_mod(E) thermal(E)
[  669.371998] CPU: 2 PID: 5543 Comm: alsa-sink-CX207 Tainted: G           OE   4.6.0-1-amd64 #1 Debian 4.6.4-1
[  669.371999] Hardware name: LENOVO 20ETCTO1WW/20ETCTO1WW, BIOS R00ET45W (1.20 ) 06/12/2016
[  669.372001]  0000000000000086 0000000088537adf ffffffff81311505 ffff880222b878e0
[  669.372005]  0000000000000000 ffffffff8107a50e 0000000000065f10 ffff880222b87938
[  669.372008]  0000000000000001 0000000000000000 0000000000000001 0000000000000202
[  669.372011] Call Trace:
[  669.372019]  [<ffffffff81311505>] ? dump_stack+0x5c/0x77
[  669.372024]  [<ffffffff8107a50e>] ? __warn+0xbe/0xe0
[  669.372028]  [<ffffffff8107a58f>] ? warn_slowpath_fmt+0x5f/0x80
[  669.372033]  [<ffffffff81353925>] ? pci_bus_write_config_word.part.7+0x55/0x60
[  669.372064]  [<ffffffffc0795427>] ? __unclaimed_reg_debug+0x77/0x80 [i915]
[  669.372094]  [<ffffffffc079b086>] ? gen9_read32+0x316/0x340 [i915]
[  669.372098]  [<ffffffff81353925>] ? pci_bus_write_config_word.part.7+0x55/0x60
[  669.372131]  [<ffffffffc07a0bc3>] ? i915_audio_component_codec_wake_override+0x33/0xa0 [i915]
[  669.372141]  [<ffffffffc0383759>] ? snd_hdac_set_codec_wakeup+0x39/0x90 [snd_hda_core]
[  669.372146]  [<ffffffffc0479a02>] ? azx_runtime_resume+0x172/0x190 [snd_hda_intel]
[  669.372152]  [<ffffffff8135e048>] ? pci_pm_runtime_resume+0x78/0xa0
[  669.372157]  [<ffffffff8144999e>] ? __rpm_callback+0x2e/0x70
[  669.372161]  [<ffffffff8135dfd0>] ? pci_restore_standard_config+0x40/0x40
[  669.372164]  [<ffffffff814499ff>] ? rpm_callback+0x1f/0x70
[  669.372168]  [<ffffffff8135dfd0>] ? pci_restore_standard_config+0x40/0x40
[  669.372171]  [<ffffffff8144a17e>] ? rpm_resume+0x48e/0x690
[  669.372175]  [<ffffffff811d254a>] ? __kmalloc+0xda/0x4b0
[  669.372178]  [<ffffffff81449fd0>] ? rpm_resume+0x2e0/0x690
[  669.372189]  [<ffffffffc02f7055>] ? snd_pcm_hw_rule_add+0x175/0x1d0 [snd_pcm]
[  669.372192]  [<ffffffff8144abb7>] ? __pm_runtime_resume+0x47/0x70
[  669.372207]  [<ffffffffc046169b>] ? azx_pcm_open+0x1cb/0x360 [snd_hda_codec]
[  669.372216]  [<ffffffffc02f6369>] ? snd_pcm_open_substream+0x79/0x130 [snd_pcm]
[  669.372224]  [<ffffffffc02f64de>] ? snd_pcm_open+0xbe/0x250 [snd_pcm]
[  669.372227]  [<ffffffff811fc522>] ? lookup_fast+0x52/0x2f0
[  669.372232]  [<ffffffff810a3790>] ? wake_up_q+0x60/0x60
[  669.372241]  [<ffffffffc02f671d>] ? snd_pcm_playback_open+0x3d/0x70 [snd_pcm]
[  669.372247]  [<ffffffff811f5b6e>] ? chrdev_open+0xbe/0x190
[  669.372250]  [<ffffffff811f5ab0>] ? cdev_put+0x20/0x20
[  669.372255]  [<ffffffff811ee9d0>] ? do_dentry_open+0x1f0/0x2d0
[  669.372259]  [<ffffffff811ff5e7>] ? path_openat+0x1b7/0x1400
[  669.372264]  [<ffffffff81233f15>] ? inotify_handle_event+0xb5/0x150
[  669.372270]  [<ffffffff812019e1>] ? do_filp_open+0x91/0x100
[  669.372275]  [<ffffffff811efe56>] ? do_sys_open+0x126/0x210
[  669.372282]  [<ffffffff815c6776>] ? system_call_fast_compare_end+0xc/0x96
[  669.372287] ---[ end trace 5756447a097ea66f ]---
Comment 7 Renan Birck 2016-08-23 14:48:06 UTC
Ubuntu 16.04 mainline kernel, ASUS Z450LA laptop, has a similar error:

Ago 23 11:33:48 alpha kernel: ------------[ cut here ]------------
Ago 23 11:33:48 alpha kernel: WARNING: CPU: 2 PID: 3045 at /mnt/disk2/xenial/drivers/gpu/drm/i915/intel_uncore.c:619 hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
Ago 23 11:33:48 alpha kernel: Unclaimed register detected before reading register 0x22384
Ago 23 11:33:48 alpha kernel: Modules linked in: rfcomm msr pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep binfmt_misc nls_iso8859_1 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media btusb btrtl btbcm btintel intel_rapl bluetooth x86_pkg_temp_thermal arc4 intel_powerclamp coretemp snd_hda_codec_hdmi kvm_intel kvm rtl8723be(OE) btcoexist(OE) irqbypass rtl_pci(OE) snd_hda_codec_realtek crct10dif_pclmul rtlwifi(OE) crc32_pclmul mac80211 snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core asus_nb_wmi asus_wmi snd_hwdep snd_pcm sparse_keymap aesni_intel cfg80211 snd_seq_midi snd_seq_midi_event aes_x86_64 lrw snd_rawmidi rtsx_pci_ms snd_seq gf128mul glue_helper memstick ablk_helper cryptd snd_seq_device input_leds joydev serio_raw snd_timer
Ago 23 11:33:48 alpha kernel:  dw_dmac snd dw_dmac_core soundcore mac_hid mei_me int3402_thermal shpchp 8250_dw snd_soc_sst_acpi mei int3400_thermal processor_thermal_device spi_pxa2xx_platform acpi_thermal_rel int340x_thermal_zone intel_soc_dts_iosf intel_pch_thermal lpc_ich i2c_designware_platform tpm_crb i2c_designware_core acpi_pad parport_pc ppdev lp parport autofs4 hid_generic usbhid hid uas usb_storage rtsx_pci_sdmmc i915 psmouse i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt r8169 ahci fb_sys_fops mii libahci drm rtsx_pci wmi sdhci_acpi video sdhci fjes
Ago 23 11:33:48 alpha kernel: CPU: 2 PID: 3045 Comm: Xorg Tainted: G           OE   4.4.0-34-generic #53
Ago 23 11:33:48 alpha kernel: Hardware name: ASUSTeK COMPUTER INC. Z450LA/Z450LA, BIOS Z450LA.204 08/12/2015
Ago 23 11:33:48 alpha kernel:  0000000000000086 00000000f47942d3 ffff88024ed03cd8 ffffffff813f11b3
Ago 23 11:33:48 alpha kernel:  ffff88024ed03d20 ffffffffc025fde0 ffff88024ed03d10 ffffffff81081102
Ago 23 11:33:48 alpha kernel:  ffff880035ac0000 0000000000022384 ffff880035ac4568 0000000000022384
Ago 23 11:33:48 alpha kernel: Call Trace:
Ago 23 11:33:48 alpha kernel:  <IRQ>  [<ffffffff813f11b3>] dump_stack+0x63/0x90
Ago 23 11:33:48 alpha kernel:  [<ffffffff81081102>] warn_slowpath_common+0x82/0xc0
Ago 23 11:33:48 alpha kernel:  [<ffffffff8108119c>] warn_slowpath_fmt+0x5c/0x80
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01d84b9>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01db0c9>] gen6_read32+0x59/0x1a0 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01ce655>] intel_lrc_irq_handler+0xe5/0x240 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc018adc7>] gen8_gt_irq_handler+0x217/0x240 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc018ae91>] gen8_irq_handler+0xa1/0x740 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffff810dab8d>] handle_irq_event_percpu+0x8d/0x1d0
Ago 23 11:33:48 alpha kernel:  [<ffffffff810dad0e>] handle_irq_event+0x3e/0x60
Ago 23 11:33:48 alpha kernel:  [<ffffffff810de24d>] handle_edge_irq+0x7d/0x150
Ago 23 11:33:48 alpha kernel:  [<ffffffff810310fa>] handle_irq+0x1a/0x30
Ago 23 11:33:48 alpha kernel:  [<ffffffff8183095b>] do_IRQ+0x4b/0xd0
Ago 23 11:33:48 alpha kernel:  [<ffffffff8182ea42>] common_interrupt+0x82/0x82
Ago 23 11:33:48 alpha kernel:  <EOI>  [<ffffffffc01cf094>] ? gen8_emit_request+0x224/0x320 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01bc667>] __i915_add_request+0x147/0x210 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01b0c36>] i915_gem_execbuffer_retire_commands+0x26/0x30 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01cf7fb>] intel_execlists_submission+0x2eb/0x410 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01b05c0>] i915_gem_do_execbuffer.isra.25+0xfa0/0x12a0 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01b1542>] i915_gem_execbuffer2+0xb2/0x240 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01be0e2>] ? i915_gem_busy_ioctl+0x92/0xe0 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc005a742>] drm_ioctl+0x152/0x540 [drm]
Ago 23 11:33:48 alpha kernel:  [<ffffffffc01b1490>] ? i915_gem_execbuffer+0x310/0x310 [i915]
Ago 23 11:33:48 alpha kernel:  [<ffffffff81220c3f>] do_vfs_ioctl+0x29f/0x490
Ago 23 11:33:48 alpha kernel:  [<ffffffff81220ea9>] SyS_ioctl+0x79/0x90
Ago 23 11:33:48 alpha kernel:  [<ffffffff8182df72>] entry_SYSCALL_64_fastpath+0x16/0x71
Ago 23 11:33:48 alpha kernel: ---[ end trace 62f496b552421664 ]---


PID 3045 is Xorg in this case.
Comment 8 Renan Birck 2016-08-23 14:52:14 UTC
(In reply to Renan Birck from comment #7)
> Ubuntu 16.04 mainline kernel, ASUS Z450LA laptop, has a similar error:

[...]

A correction: it's not the mainline kernel; rather, it's the default kernel rebuilt with a patch to fix this bug: https://bugzilla.kernel.org/show_bug.cgi?id=107971
Comment 9 Chris Wilson 2016-12-01 09:27:30 UTC
Forward dup'ing to a bug with slightly more debug.

*** This bug has been marked as a duplicate of bug 97985 ***

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.