All of lore.kernel.org
 help / color / mirror / Atom feed
* Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040
@ 2015-05-25 18:04 Dominik Brodowski
  2015-06-15 10:25 ` Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Dominik Brodowski @ 2015-05-25 18:04 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 2444 bytes --]

Hey,

this just popped up in the dmesg of my Dell XPS 13 -- the system seems to
run well, but still, it asks about being cut and sent, so here it is. It is
on 4.1.0-rc4+ (Linus' tree as of May 24th, around 3pm UTC -- don't have the
git commit ID anymore).

------------[ cut here ]------------
WARNING: CPU: 0 PID: 1167 at /home/brodo/local/kernel/git/linux/drivers/gpu/drm/i915/intel_uncore.c:566 hsw_unclaimed_reg_debug+0x7d/0xa0()
Unclaimed register detected before reading register 0x130040
Modules linked in:
CPU: 0 PID: 1167 Comm: Xorg Not tainted 4.1.0-rc4+ #1
Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A03 03/25/2015
 ffffffffb39694d8 ffff88020e14b998 ffffffffb322906f 0000000080000001
 ffff88020e14b9e8 ffff88020e14b9d8 ffffffffb272ca8a ffff88020e14b9a8
 ffff880215190000 0000000000130040 ffff880215bfd800 0000000000130040
Call Trace:
 [<ffffffffb322906f>] dump_stack+0x4f/0x7b
 [<ffffffffb272ca8a>] warn_slowpath_common+0x8a/0xc0
 [<ffffffffb272cb06>] warn_slowpath_fmt+0x46/0x50
 [<ffffffffb2be63cd>] hsw_unclaimed_reg_debug+0x7d/0xa0
 [<ffffffffb2be84b6>] gen6_read32+0x56/0x1c0
 [<ffffffffb2c096e6>] hsw_disable_pc8+0x36/0x2c0
 [<ffffffffb2b98e60>] intel_runtime_resume+0x160/0x1b0
 [<ffffffffb2a94bdf>] pci_pm_runtime_resume+0x7f/0xc0
 [<ffffffffb2a94b60>] ? pci_restore_standard_config+0x50/0x50
 [<ffffffffb2c5c8f6>] __rpm_callback+0x36/0x90
 [<ffffffffb2c5c976>] rpm_callback+0x26/0xa0
 [<ffffffffb2c5dcc6>] rpm_resume+0x496/0x670
 [<ffffffffb2756209>] ? preempt_count_add+0x79/0xc0
 [<ffffffffb2c5dee0>] __pm_runtime_resume+0x40/0x60
 [<ffffffffb2ba7fd5>] intel_runtime_pm_get+0x55/0x80
 [<ffffffffb2bc6989>] i915_gem_free_object+0x29/0x360
 [<ffffffffb2b6b417>] drm_gem_object_free+0x27/0x40
 [<ffffffffb2b6b548>] drm_gem_object_handle_unreference_unlocked+0x118/0x130
 [<ffffffffb2b6b6d4>] drm_gem_handle_delete+0xb4/0x100
 [<ffffffffb2fde8ab>] ? sock_recvmsg+0x3b/0x50
 [<ffffffffb2b6ba95>] drm_gem_close_ioctl+0x25/0x30
 [<ffffffffb2b6c4a5>] drm_ioctl+0x1a5/0x6a0
 [<ffffffffb2869672>] ? do_readv_writev+0x1b2/0x260
 [<ffffffffb323187a>] ? _raw_spin_unlock_irqrestore+0x2a/0x60
 [<ffffffffb2a5b804>] ? timerqueue_del+0x24/0x70
 [<ffffffffb278b2fe>] ? __remove_hrtimer+0x4e/0xe0
 [<ffffffffb287c110>] do_vfs_ioctl+0x2e0/0x4e0
 [<ffffffffb2886482>] ? __fget+0x72/0xb0
 [<ffffffffb287c391>] SyS_ioctl+0x81/0xa0
 [<ffffffffb3232017>] system_call_fastpath+0x12/0x6a
---[ end trace 8ff5864d3e587195 ]---

Best,
	Dominik

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040
  2015-05-25 18:04 Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040 Dominik Brodowski
@ 2015-06-15 10:25 ` Daniel Vetter
  2015-06-15 10:47   ` Chris Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2015-06-15 10:25 UTC (permalink / raw)
  To: Dominik Brodowski; +Cc: intel-gfx

On Mon, May 25, 2015 at 08:04:45PM +0200, Dominik Brodowski wrote:
> Hey,
> 
> this just popped up in the dmesg of my Dell XPS 13 -- the system seems to
> run well, but still, it asks about being cut and sent, so here it is. It is
> on 4.1.0-rc4+ (Linus' tree as of May 24th, around 3pm UTC -- don't have the
> git commit ID anymore).

Can you please boot with i915.mmio_debug=10 and try to reproduce the
issue? That should light more onto this issue. And yup it's indeed a bug
since this means a register write has been dropped by the hardware, which
often tends to be somewhat harmless except when it doesn't ;-)
-Daniel

> 
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 1167 at /home/brodo/local/kernel/git/linux/drivers/gpu/drm/i915/intel_uncore.c:566 hsw_unclaimed_reg_debug+0x7d/0xa0()
> Unclaimed register detected before reading register 0x130040
> Modules linked in:
> CPU: 0 PID: 1167 Comm: Xorg Not tainted 4.1.0-rc4+ #1
> Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A03 03/25/2015
>  ffffffffb39694d8 ffff88020e14b998 ffffffffb322906f 0000000080000001
>  ffff88020e14b9e8 ffff88020e14b9d8 ffffffffb272ca8a ffff88020e14b9a8
>  ffff880215190000 0000000000130040 ffff880215bfd800 0000000000130040
> Call Trace:
>  [<ffffffffb322906f>] dump_stack+0x4f/0x7b
>  [<ffffffffb272ca8a>] warn_slowpath_common+0x8a/0xc0
>  [<ffffffffb272cb06>] warn_slowpath_fmt+0x46/0x50
>  [<ffffffffb2be63cd>] hsw_unclaimed_reg_debug+0x7d/0xa0
>  [<ffffffffb2be84b6>] gen6_read32+0x56/0x1c0
>  [<ffffffffb2c096e6>] hsw_disable_pc8+0x36/0x2c0
>  [<ffffffffb2b98e60>] intel_runtime_resume+0x160/0x1b0
>  [<ffffffffb2a94bdf>] pci_pm_runtime_resume+0x7f/0xc0
>  [<ffffffffb2a94b60>] ? pci_restore_standard_config+0x50/0x50
>  [<ffffffffb2c5c8f6>] __rpm_callback+0x36/0x90
>  [<ffffffffb2c5c976>] rpm_callback+0x26/0xa0
>  [<ffffffffb2c5dcc6>] rpm_resume+0x496/0x670
>  [<ffffffffb2756209>] ? preempt_count_add+0x79/0xc0
>  [<ffffffffb2c5dee0>] __pm_runtime_resume+0x40/0x60
>  [<ffffffffb2ba7fd5>] intel_runtime_pm_get+0x55/0x80
>  [<ffffffffb2bc6989>] i915_gem_free_object+0x29/0x360
>  [<ffffffffb2b6b417>] drm_gem_object_free+0x27/0x40
>  [<ffffffffb2b6b548>] drm_gem_object_handle_unreference_unlocked+0x118/0x130
>  [<ffffffffb2b6b6d4>] drm_gem_handle_delete+0xb4/0x100
>  [<ffffffffb2fde8ab>] ? sock_recvmsg+0x3b/0x50
>  [<ffffffffb2b6ba95>] drm_gem_close_ioctl+0x25/0x30
>  [<ffffffffb2b6c4a5>] drm_ioctl+0x1a5/0x6a0
>  [<ffffffffb2869672>] ? do_readv_writev+0x1b2/0x260
>  [<ffffffffb323187a>] ? _raw_spin_unlock_irqrestore+0x2a/0x60
>  [<ffffffffb2a5b804>] ? timerqueue_del+0x24/0x70
>  [<ffffffffb278b2fe>] ? __remove_hrtimer+0x4e/0xe0
>  [<ffffffffb287c110>] do_vfs_ioctl+0x2e0/0x4e0
>  [<ffffffffb2886482>] ? __fget+0x72/0xb0
>  [<ffffffffb287c391>] SyS_ioctl+0x81/0xa0
>  [<ffffffffb3232017>] system_call_fastpath+0x12/0x6a
> ---[ end trace 8ff5864d3e587195 ]---
> 
> Best,
> 	Dominik



> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx


-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040
  2015-06-15 10:25 ` Daniel Vetter
@ 2015-06-15 10:47   ` Chris Wilson
  2015-06-15 10:57     ` Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2015-06-15 10:47 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: intel-gfx, Dominik Brodowski

On Mon, Jun 15, 2015 at 12:25:10PM +0200, Daniel Vetter wrote:
> On Mon, May 25, 2015 at 08:04:45PM +0200, Dominik Brodowski wrote:
> > Hey,
> > 
> > this just popped up in the dmesg of my Dell XPS 13 -- the system seems to
> > run well, but still, it asks about being cut and sent, so here it is. It is
> > on 4.1.0-rc4+ (Linus' tree as of May 24th, around 3pm UTC -- don't have the
> > git commit ID anymore).
> 
> Can you please boot with i915.mmio_debug=10 and try to reproduce the
> issue? 

It won't help. To see this WARN implies that hsw_unclaimed_reg_detect()
fired and mmio debugging is enabled, and the WARN then fires before a
subsequent register access. So it implies the unclaimed register is not
being accessed by the display driver -- presuming that we have wrapped
all register access appropriately.

<invalid register access>
hsw_unclaimed_reg_detect -> fires, clears the invalid flag
...
(
	hsw_unclaimed_reg_debug before
	mmio
	hsw_unclaimed_reg_debug  after
) -> nothing x N
...
<invalid register access>
hsw_unclaimed_reg_debug -> fires before, ergo no more useful information

Or else I nerfed the automatic debugging too much.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040
  2015-06-15 10:47   ` Chris Wilson
@ 2015-06-15 10:57     ` Daniel Vetter
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Vetter @ 2015-06-15 10:57 UTC (permalink / raw)
  To: Chris Wilson, Daniel Vetter, Dominik Brodowski, intel-gfx

On Mon, Jun 15, 2015 at 11:47:46AM +0100, Chris Wilson wrote:
> On Mon, Jun 15, 2015 at 12:25:10PM +0200, Daniel Vetter wrote:
> > On Mon, May 25, 2015 at 08:04:45PM +0200, Dominik Brodowski wrote:
> > > Hey,
> > > 
> > > this just popped up in the dmesg of my Dell XPS 13 -- the system seems to
> > > run well, but still, it asks about being cut and sent, so here it is. It is
> > > on 4.1.0-rc4+ (Linus' tree as of May 24th, around 3pm UTC -- don't have the
> > > git commit ID anymore).
> > 
> > Can you please boot with i915.mmio_debug=10 and try to reproduce the
> > issue? 
> 
> It won't help. To see this WARN implies that hsw_unclaimed_reg_detect()
> fired and mmio debugging is enabled, and the WARN then fires before a
> subsequent register access. So it implies the unclaimed register is not
> being accessed by the display driver -- presuming that we have wrapped
> all register access appropriately.
> 
> <invalid register access>
> hsw_unclaimed_reg_detect -> fires, clears the invalid flag
> ...
> (
> 	hsw_unclaimed_reg_debug before
> 	mmio
> 	hsw_unclaimed_reg_debug  after
> ) -> nothing x N
> ...
> <invalid register access>
> hsw_unclaimed_reg_debug -> fires before, ergo no more useful information
> 
> Or else I nerfed the automatic debugging too much.

Hm I thought it's also gating some of the interrupt frobbery, but that
doesn't exist on bdw anyway. It would be still good to figure out who's
stomping all over the gpu though.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040
@ 2015-06-16 18:02 Jochen Betz
  0 siblings, 0 replies; 5+ messages in thread
From: Jochen Betz @ 2015-06-16 18:02 UTC (permalink / raw)
  To: intel-gfx

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

This is my first post to a mailing list... I hope it works out. I
couldn't find more details on how to do it.

I'm getting the same error message as described in the original post,
expect for the register (address?). As proposed in the dmesg output I
booted with i915.mmio_debug=1 to get more info. This is what i get:


[  272.898632] WARNING: CPU: 3 PID: 0 at
/build/linux-Xbe5gu/linux-4.0.2/drivers/gpu/drm/i915/intel_uncore.c:551
hsw_unclaimed_reg_debug+0x6d/0x80
[i915]()
[  272.898634] Unclaimed register detected after reading register 0x44200
[  272.898635] Modules linked in: ctr ccm binfmt_misc
cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_conservative
nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc
algif_skcipher af_alg nls_utf8 nls_cp437 vfat fat uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev
media btusb bluetooth hid_generic usbhid arc4 iwlmvm mac80211 nvram
iwlwifi rtsx_pci_ms msr memstick rtsx_pci_sdmmc cfg80211 dell_laptop
joydev iTCO_wdt iTCO_vendor_support rfkill rtsx_pci snd_hda_codec_hdmi
dcdbas dell_wmi hid_multitouch sparse_keymap x86_pkg_temp_thermal
intel_powerclamp intel_rapl iosf_mbi coretemp kvm_intel kvm
crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel
efi_pstore evdev psmouse xhci_pci ehci_pci xhci_hcd serio_raw pcspkr
ehci_hcd efivars usbcore
[  272.898664]  sg usb_common mei_me lpc_ich mei shpchp
snd_hda_codec_realtek mfd_core i2c_i801 snd_hda_codec_generic i915
snd_hda_intel snd_hda_controller snd_hda_codec drm_kms_helper
snd_hwdep snd_pcm snd_timer drm i2c_hid snd i2c_algo_bit soundcore hid
wmi battery int3403_thermal sdhci_acpi sdhci video dw_dmac mmc_core
dw_dmac_core snd_soc_sst_acpi i2c_designware_platform
i2c_designware_core i2c_core processor_thermal_device int3402_thermal
int340x_thermal_zone int3400_thermal button acpi_thermal_rel
intel_smartconnect ac acpi_pad processor fuse parport_pc ppdev lp
parport autofs4 ext4 crc16 mbcache jbd2 dm_crypt dm_mod sd_mod ahci
libahci aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper
cryptd libata scsi_mod thermal fan thermal_sys
[  272.898701] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G        W
 4.0.0-1-amd64 #1 Debian 4.0.2-1
[  272.898702] Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A04
05/15/2015
[  272.898704]  0000000000000000 ffffffffa05445b8 ffffffff8155df6b
ffff88021f583dd8
[  272.898706]  ffffffff8106ce91 ffff880214840000 0000000000044200
ffff880214840068
[  272.898708]  0000000080000002 0000000000000046 ffffffff8106cf0a
ffffffffa0544580
[  272.898711] Call Trace:
[  272.898712]  <IRQ>  [<ffffffff8155df6b>] ? dump_stack+0x40/0x50
[  272.898721]  [<ffffffff8106ce91>] ? warn_slowpath_common+0x81/0xb0
[  272.898723]  [<ffffffff8106cf0a>] ? warn_slowpath_fmt+0x4a/0x50
[  272.898737]  [<ffffffffa04cb2bd>] ?
hsw_unclaimed_reg_debug+0x6d/0x80 [i915]
[  272.898747]  [<ffffffffa04cd8a9>] ? gen6_read32+0xc9/0x190 [i915]
[  272.898751]  [<ffffffff81047f1e>] ? lapic_next_deadline+0x2e/0x40
[  272.898762]  [<ffffffffa04bb887>] ? gen8_irq_handler+0x47/0x490 [i915]
[  272.898765]  [<ffffffff810be885>] ? handle_irq_event_percpu+0x75/0x190
[  272.898767]  [<ffffffff810be9de>] ? handle_irq_event+0x3e/0x60
[  272.898769]  [<ffffffff810c1ae1>] ? handle_edge_irq+0x81/0x140
[  272.898773]  [<ffffffff8101649d>] ? handle_irq+0x1d/0x30
[  272.898776]  [<ffffffff815670a6>] ? do_IRQ+0x46/0xe0
[  272.898778]  [<ffffffff81564ead>] ? common_interrupt+0x6d/0x6d
[  272.898779]  <EOI>  [<ffffffff81432f51>] ?
cpuidle_enter_state+0x61/0x160
[  272.898785]  [<ffffffff81432f3e>] ? cpuidle_enter_state+0x4e/0x160
[  272.898787]  [<ffffffff810aa57f>] ? cpu_startup_entry+0x36f/0x420
[  272.898790]  [<ffffffff810dc910>] ? tick_check_new_device+0xe0/0x110
[  272.898792]  [<ffffffff810466f9>] ? start_secondary+0x199/0x1c0
[  272.898794] ---[ end trace 1676def838cce61c ]---


For me this is 100% reproducible. I just started to write a small demo
in using opengl. And when ever I launch my little up to draw some
stuff it's flooding the kernel buffer.

My machine is a XPS13 (2015) with an i5 and the non-touch FullHD display.

I'm using the following kernel

uname -a
Linux machiavelli 4.0.0-1-amd64 #1 SMP Debian 4.0.2-1 (2015-05-11)
x86_64 GNU/Linux


For me even worse is, that from time to time the complete machine
freezes when I run my application. It never happens otherwise. So my
speculation is, that there is a strong link between the driver error
and the usage of opengl in my application.

If you need more information, plz let me know.



- -- 
Dipl.-Ing. Jochen Betz
jochen.betz@gmx.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVgGSuAAoJEJpBj5AVrwu4K7kP/0k0NaJ/mDILY8gOeTmzJCsa
Q0iMbCmfrM3E28OQydqhWkv9A8UQRMQPy+iMmF2ULPnoGCX6HknZ/hBBxufhLyoN
CB0GTqXOFz2QjCjgYZ3O3Kw0vS6LidHbliGdZlt6laBnHcjMlv6dlajQprdR+VZ9
eB0nvOucO194a7xdAjxOXv8jeLRpiZ38w6MjIEG9/xWiu/j5AvHhs4BpmDxtpI8Z
JLTeXTDqojzKmhnkR49ny2p+WN71X1riUmqBgRqfri4Pu8iKr8tOhhKgsotBL4oo
gk6uRbr2tKhToEBHbAMc/ozEusUTARI7Vid+LIip3OIRKVv363WxjLuTDsbGHYBM
FF9rbDtqFiRkSqH/p5B6RpryCQH4xJWreY11fHZS7AAlDYhkv8G47KRrFxW/zsC9
4cQnbUtLuBa+6pQiDe+Cm7bCQF6y+OHJctQQzSSDnnPBWlO8Y7M0qKzJklSKNFbP
1PBkj0Tjknjx9Iqt3IXHzWHLUz34UneKhcL0Ythrw6Ab1naBTYdyO+PpaV2rnKxy
H6b2IL3CF7q9/NZLiMH/ynf2TfwOc82eXKd+N9M6xkLVWGv4miOrsE48O1I+BDSU
yHPSMORVUBKwL8pD0eYN/kgS9+iwnAbEy6oEUYQankyfQ+FX5BAYaRWNCyHMY2r0
Jt6VyzYfqS3LGbrnlvAW
=BWw9
-----END PGP SIGNATURE-----
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-16 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 18:04 Warning: Broadwell/i915: Unclaimed register detected before reading register 0x130040 Dominik Brodowski
2015-06-15 10:25 ` Daniel Vetter
2015-06-15 10:47   ` Chris Wilson
2015-06-15 10:57     ` Daniel Vetter
2015-06-16 18:02 Jochen Betz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.