[Bug 105176] [IGT] gem_shrink/pwrite-userptr races on obj->mm.pages_pin_count

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 8 17:19:39 UTC 2018


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

Hector Velazquez <hector.franciscox.velazquez.suriano at intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      i915 platform|                            |CNL

--- Comment #7 from Hector Velazquez <hector.franciscox.velazquez.suriano at intel.com> ---
This tests has a dmesg-warn on CNL QA 
Tests List:
igt at gem_shrink@get-pages-userptr

output:
. . .
Subtest get-pages-userptr: SUCCESS (135.941s)
gem_shrink:822) igt-core-DEBUG: Exiting with status code 0
. . .

kernel log sample:
. . .
[   34.076630] ------------[ cut here ]------------
[   34.076633] Failed to release pages: bind_count=0, pages_pin_count=1,
pin_global=0
[   34.076696] WARNING: CPU: 0 PID: 54 at
drivers/gpu/drm/i915/i915_gem_userptr.c:89 cancel_userptr+0xe5/0xf0 [i915]
[   34.076697] Modules linked in: snd_hda_codec_hdmi cmac bnep 8250_dw
snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core
snd_soc_acpi snd_soc_core arc4 nls_iso8859_1 snd_compress snd_hda_codec_realtek
snd_hda_codec_generic snd_pcm_dmaengine ac97_bus iwlmvm mac80211
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_intel kvm
irqbypass crct10dif_pclmul snd_hda_codec crc32_pclmul ghash_clmulni_intel pcbc
snd_hda_core snd_hwdep snd_pcm aesni_intel snd_seq_midi aes_x86_64
snd_seq_midi_event crypto_simd glue_helper cryptd snd_rawmidi snd_seq
snd_seq_device snd_timer input_leds serio_raw asix usbnet mii wmi_bmof snd
iwlwifi btusb btrtl btbcm btintel soundcore bluetooth idma64 shpchp
ecdh_generic virt_dma mei_me cfg80211 mei intel_lpss_pci intel_lpss
intel_pch_thermal
[   34.076734]  mac_hid acpi_pad parport_pc ppdev lp parport ip_tables x_tables
autofs4 uas usb_storage i915 e1000e prime_numbers wmi video
[   34.076746] CPU: 0 PID: 54 Comm: kworker/u8:1 Tainted: G     U  W       
4.16.0-rc4-drm-intel-qa-ww10-commit-6c6e100+ #1
[   34.076747] Hardware name: Intel Corporation CannonLake Client
Platform/CannonLake Y LPDDR4 RVP, BIOS CNLSFWR1.R00.X124.B02.1802051422
02/05/2018
[   34.076778] Workqueue: i915-userptr-release cancel_userptr [i915]
[   34.076803] RIP: 0010:cancel_userptr+0xe5/0xf0 [i915]
[   34.076804] RSP: 0018:ffffa9f880ecbe60 EFLAGS: 00010282
[   34.076806] RAX: 0000000000000000 RBX: ffff92fbcb3d1e00 RCX:
0000000000000006
[   34.076807] RDX: 0000000000000007 RSI: 0000000000000082 RDI:
ffff92fdef8165d0
[   34.076808] RBP: ffff92fbcb3d1fb0 R08: 0000000000000001 R09:
00000000000007c4
[   34.076809] R10: ffffa9f880ecbe60 R11: 00000000000007c4 R12:
0000000000000000
[   34.076810] R13: 0000000000000000 R14: 0ffff92fdda6b9cd R15:
ffff92fde67eccc0
[   34.076812] FS:  0000000000000000(0000) GS:ffff92fdef800000(0000)
knlGS:0000000000000000
[   34.076813] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   34.076814] CR2: 00007f03910d30a0 CR3: 00000001d4a0a003 CR4:
0000000000760ef0
[   34.076815] PKRU: 55555554
[   34.076816] Call Trace:
[   34.076824]  process_one_work+0x147/0x3c0
[   34.076827]  worker_thread+0x4a/0x440
[   34.076829]  kthread+0xf8/0x130
[   34.076832]  ? rescuer_thread+0x360/0x360
[   34.076833]  ? kthread_associate_blkcg+0x90/0x90
[   34.076836]  ret_from_fork+0x35/0x40
[   34.076838] Code: 82 08 ff ff eb c9 8b 93 d0 01 00 00 8b 8b ac 01 00 00 48
c7 c7 c8 e7 40 c0 8b b3 a4 01 00 00 c6 05 ef 1f 18 00 01 e8 4b 15 56 de <0f> 0b
eb bc 0f 1f 80 00 00 00 00 0f 1f 44 00 00 41 57 41 56 41 
[   34.076894] WARNING: CPU: 0 PID: 54 at
drivers/gpu/drm/i915/i915_gem_userptr.c:89 cancel_userptr+0xe5/0xf0 [i915]
[   34.076895] ---[ end trace 4575c9034fdf7795 ]---
. . .

dmesg-warn sample
. . .
[  +8.520822] WARNING: CPU: 2 PID: 989 at mm/page_alloc.c:4137
__alloc_pages_slowpath+0xd90/0xdb0
[  +0.000001] Modules linked in: snd_hda_codec_hdmi cmac bnep 8250_dw
snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core
snd_soc_acpi snd_soc_core arc4 nls_iso8859_1 snd_compress snd_hda_codec_realtek
snd_hda_codec_generic snd_pcm_dmaengine ac97_bus iwlmvm mac80211
x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_intel kvm
irqbypass crct10dif_pclmul snd_hda_codec crc32_pclmul ghash_clmulni_intel pcbc
snd_hda_core snd_hwdep snd_pcm aesni_intel snd_seq_midi aes_x86_64
snd_seq_midi_event crypto_simd glue_helper cryptd snd_rawmidi snd_seq
snd_seq_device snd_timer input_leds serio_raw asix usbnet mii wmi_bmof snd
iwlwifi btusb btrtl btbcm btintel soundcore bluetooth idma64 shpchp
ecdh_generic virt_dma mei_me cfg80211 mei intel_lpss_pci intel_lpss
intel_pch_thermal
[  +0.000044]  mac_hid acpi_pad parport_pc ppdev lp parport ip_tables x_tables
autofs4 uas usb_storage i915 e1000e prime_numbers wmi video
[  +0.000011] CPU: 2 PID: 989 Comm: kworker/u9:12 Tainted: G     U          
4.16.0-rc4-drm-intel-qa-ww10-commit-6c6e100+ #1
[  +0.000001] Hardware name: Intel Corporation CannonLake Client
Platform/CannonLake Y LPDDR4 RVP, BIOS CNLSFWR1.R00.X124.B02.1802051422
02/05/2018
[  +0.000034] Workqueue: i915-userptr-acquire
__i915_gem_userptr_get_pages_worker [i915]
[  +0.000005] RIP: 0010:__alloc_pages_slowpath+0xd90/0xdb0
[  +0.000001] RSP: 0018:ffffa9f881d130f8 EFLAGS: 00010046
[  +0.000002] RAX: 0000000000000000 RBX: 0000000000010000 RCX: 0000000000000000
[  +0.000001] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff92fdefbfd0b0
[  +0.000001] RBP: 0000000001000000 R08: 0000000000000000 R09: 0000000000000f83
[  +0.000001] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000001015a00
[  +0.000001] R13: 0000000000000000 R14: ffffa9f881d13208 R15: 0000000000000000
[  +0.000002] FS:  0000000000000000(0000) GS:ffff92fdef900000(0000)
knlGS:0000000000000000
[  +0.000001] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0.000001] CR2: 00007f6644deefa0 CR3: 00000001d4a0a003 CR4: 0000000000760ee0
[  +0.000001] PKRU: 55555554
[  +0.000001] Call Trace:
[  +0.000005]  __alloc_pages_nodemask+0x246/0x280
[  +0.000003]  new_slab+0x309/0x710
[  +0.000002]  ___slab_alloc+0x267/0x4b0
[  +0.000003]  ? create_object+0x43/0x300
[  +0.000003]  ? unwind_next_frame+0x340/0x4e0
[  +0.000003]  ? handle_mm_fault+0xfa/0x200
[  +0.000003]  ? __kernel_text_address+0xe/0x30
[  +0.000002]  ? create_object+0x43/0x300
[  +0.000002]  ? __slab_alloc+0x1c/0x30
[  +0.000002]  __slab_alloc+0x1c/0x30
[  +0.000001]  kmem_cache_alloc+0x197/0x1d0
[  +0.000003]  ? mempool_alloc+0x6a/0x180
[  +0.000001]  create_object+0x43/0x300
[  +0.000002]  ? create_object+0x24e/0x300
[  +0.000002]  kmem_cache_alloc+0xec/0x1d0
[  +0.000002]  mempool_alloc+0x6a/0x180
[  +0.000003]  ? radix_tree_node_alloc.constprop.18+0x8f/0xe0
[  +0.000001] kmemleak: Cannot allocate a kmemleak_object structure
[  +0.000003]  bio_alloc_bioset+0xaf/0x220
[  +0.000000] kmemleak: Kernel memory leak detector disabled
[  +0.000003]  ? end_swap_bio_read+0xb0/0xb0
[  +0.000002]  get_swap_bio+0x50/0xf0
[  +0.000003]  ? end_swap_bio_read+0xb0/0xb0
[  +0.000002]  __swap_writepage+0x2ba/0x3a0
[  +0.000003]  ? __frontswap_store+0x73/0xf0
[  +0.000002]  shmem_writepage+0x1cc/0x2e0
[  +0.000003]  pageout.isra.51+0x1e1/0x330
[  +0.000002]  shrink_page_list+0x9e4/0xc30
[  +0.000003]  shrink_inactive_list+0x2dd/0x670
[  +0.000003]  shrink_node_memcg+0x367/0x7e0
[  +0.000034]  ? shrinker_lock+0x4d/0x90 [i915]
[  +0.000004]  ? shrink_node+0xdc/0x350
[  +0.000002]  shrink_node+0xdc/0x350
[  +0.000002]  do_try_to_free_pages+0xeb/0x360
[  +0.000002]  try_to_free_pages+0xf7/0x1d0
[  +0.000003]  __alloc_pages_slowpath+0x3ad/0xdb0
[  +0.000004]  __alloc_pages_nodemask+0x246/0x280
[  +0.000003]  alloc_pages_vma+0x7c/0x1e0
[  +0.000002]  __handle_mm_fault+0xd07/0x1130
[  +0.000003]  handle_mm_fault+0xfa/0x200
[  +0.000002]  __get_user_pages+0x11a/0x630
[  +0.000002]  ? create_object+0x24e/0x300
[  +0.000003]  get_user_pages_remote+0x137/0x1f0
[  +0.000032]  __i915_gem_userptr_get_pages_worker+0x185/0x230 [i915]
[  +0.000004]  process_one_work+0x147/0x3c0
[  +0.000003]  worker_thread+0x4a/0x440
[  +0.000003]  kthread+0xf8/0x130
[  +0.000002]  ? rescuer_thread+0x360/0x360
[  +0.000002]  ? kthread_associate_blkcg+0x90/0x90
[  +0.000002]  ret_from_fork+0x35/0x40
[  +0.000002] Code: e9 cb f2 ff ff f7 44 24 20 00 08 00 00 bb 01 00 00 00 0f 84
de fd ff ff e9 73 ff ff ff 0f 0b e9 bf fc ff ff 0f 0b e9 ae fc ff ff <0f> 0b 49
8b 76 08 8b 7c 24 20 44 89 f9 48 c7 c2 70 33 8d 9f e8 
[  +0.000036] WARNING: CPU: 2 PID: 989 at mm/page_alloc.c:4137
__alloc_pages_slowpath+0xd90/0xdb0
[  +0.000001] ---[ end trace 4575c9034fdf7794 ]---
. . .
======================================
        Graphic stack
======================================
Component: drm
    tag: libdrm-2.4.89-90-g45eee3f
    commit: 45eee3fd44f4fa253cd4d5c03f48d4a6899f899f

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.21-188-g289202e
    commit: 289202e876688338f439ded7613804ee67034e91

Component: piglit
    tag: piglit-v1
    commit: b8e7cc0e59cf21fe5f98a2d8280cf9a03d02f542
======================================
             Software
======================================
kernel version              : 4.16.0-rc4-drm-intel-qa-ww10-commit-6c6e100+
os version                  : Ubuntu 17.10 artful x86_64
kernel driver               : i915
hardware acceleration       : disabled
swap partition              : enabled on (/dev/nvme0n1p2)
======================================
        Graphic drivers
======================================
modesetting                 : enabled
modesetting compiled for    : 1.19.5 X.Org Video Driver
libdrm                      : 2.4.91
intel-gpu-tools (tag)       : intel-gpu-tools-1.21-188-g289202e8
intel-gpu-tools (commit)    : 289202e8
======================================
             Hardware
======================================
motherboard id             : CannonLakeYLPDDR4RVP
cpu information            : Genuine Intel(R) CPU 0000 @ 1.10GHz
gpu card                   : Intel Corporation Device 5a41 (rev 04) (prog-if 00
[VGA controller])
memory ram                 : 7.63 GB
current cd clock frequency : 168000 kHz
maximum cd clock frequency : 528000 kHz
displays connected         : eDP-1
======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.7
guc fw loaded             : fetch NONE, load NONE
======================================
             kernel parameters
======================================
drm.debug=0x1e intel_iommu=igfx_off fsck.repair=yes i915.alpha_support=1
resume=/dev/nvme0n1p2

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


More information about the intel-gfx-bugs mailing list