dmesg: [191391.808993] workqueue: PF_MEMALLOC task 42(khugepaged) is flushing !WQ_MEM_RECLAIM i915-userptr-release: (null) [191391.809000] ------------[ cut here ]------------ [191391.809005] WARNING: CPU: 2 PID: 42 at kernel/workqueue.c:2418 check_flush_dependency+0xf3/0x100 [191391.809006] Modules linked in: tun veth cfg80211 bridge stp llc xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c crc32c_generic iptable_filter snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support mxm_wmi snd_hda_intel intel_rapl x86_pkg_temp_thermal intel_powerclamp e1000e coretemp snd_hda_codec snd_hda_core kvm_intel snd_hwdep hci_uart ptp btbcm btqca snd_pcm btintel bluetooth kvm irqbypass pcspkr joydev mousedev input_leds tpm_tis mei_me pps_core snd_timer snd intel_cstate intel_rapl_perf i2c_i801 soundcore shpchp led_class ecdh_generic tpm_tis_core mei intel_pch_thermal tpm battery rfkill wmi crc16 acpi_als kfifo_buf pinctrl_sunrisepoint pinctrl_intel evdev industrialio acpi_pad mac_hid intel_lpss_acpi i2c_hid intel_lpss sch_fq_codel [191391.809044] ip_tables x_tables btrfs xor raid6_pq algif_skcipher af_alg dm_crypt dm_mod dax hid_logitech_hidpp hid_logitech_dj hid_generic sd_mod usbhid hid crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd ahci libahci xhci_pci xhci_hcd libata scsi_mod usbcore usb_common serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart [191391.809068] CPU: 2 PID: 42 Comm: khugepaged Not tainted 4.13.8-1-ARCH #1 [191391.809069] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z170 Extreme7+, BIOS P7.40 05/04/2017 [191391.809070] task: ffff9974e3c86c80 task.stack: ffffb4d981a44000 [191391.809072] RIP: 0010:check_flush_dependency+0xf3/0x100 [191391.809073] RSP: 0018:ffffb4d981a476a0 EFLAGS: 00010286 [191391.809074] RAX: 000000000000006c RBX: ffff9974afa90c00 RCX: ffffffff82a55328 [191391.809075] RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000287 [191391.809076] RBP: ffffb4d981a476c0 R08: 000000000000042e R09: ffffffff82ca68e0 [191391.809077] R10: ffffb4d981a47790 R11: 0000000000000000 R12: 0000000000000000 [191391.809077] R13: ffff9974e3c86c80 R14: 0000000000000000 R15: ffffb4d981a47700 [191391.809079] FS: 0000000000000000(0000) GS:ffff9974f5d00000(0000) knlGS:0000000000000000 [191391.809080] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [191391.809081] CR2: 0000358761675000 CR3: 0000000445a09000 CR4: 00000000003406e0 [191391.809082] Call Trace: [191391.809085] flush_workqueue+0x13b/0x3f0 [191391.809105] i915_gem_userptr_mn_invalidate_range_start+0x148/0x160 [i915] [191391.809119] ? i915_gem_userptr_mn_invalidate_range_start+0x148/0x160 [i915] [191391.809122] __mmu_notifier_invalidate_range_start+0x55/0x80 [191391.809125] try_to_unmap_one+0x6fa/0x790 [191391.809128] rmap_walk_file+0xec/0x230 [191391.809130] rmap_walk+0x41/0x60 [191391.809132] try_to_unmap+0x91/0xf0 [191391.809134] ? page_remove_rmap+0x2a0/0x2a0 [191391.809136] ? page_not_mapped+0x20/0x20 [191391.809138] ? page_get_anon_vma+0xa0/0xa0 [191391.809140] migrate_pages+0x70d/0x9c0 [191391.809143] ? __ClearPageMovable+0x10/0x10 [191391.809145] ? isolate_freepages_block+0x3c0/0x3c0 [191391.809147] compact_zone+0x675/0x950 [191391.809149] compact_zone_order+0xa0/0xd0 [191391.809152] try_to_compact_pages+0xba/0x2b0 [191391.809153] ? try_to_compact_pages+0xba/0x2b0 [191391.809156] __alloc_pages_direct_compact+0x51/0xf0 [191391.809158] __alloc_pages_slowpath+0xae5/0xe10 [191391.809161] ? dequeue_task_fair+0x49f/0x640 [191391.809163] ? finish_task_switch+0x75/0x200 [191391.809165] ? get_page_from_freelist+0x349/0xb00 [191391.809167] ? del_timer_sync+0x39/0x40 [191391.809169] __alloc_pages_nodemask+0x237/0x250 [191391.809172] khugepaged+0x102a/0x1f70 [191391.809175] ? wait_woken+0x80/0x80 [191391.809177] kthread+0x125/0x140 [191391.809179] ? __collapse_huge_page_swapin+0x440/0x440 [191391.809181] ? kthread_create_on_node+0x70/0x70 [191391.809184] ret_from_fork+0x25/0x30 [191391.809186] Code: 00 8b b0 30 05 00 00 48 8d 8b b0 00 00 00 48 8d 90 d8 06 00 00 4d 89 e0 48 c7 c7 f0 6f 93 82 c6 05 65 ff a4 00 01 e8 9e 74 04 00 <0f> ff e9 6b ff ff ff 66 0f 1f 44 00 00 0f 1f 44 00 00 48 8b 37 [191391.809214] ---[ end trace 13708d1e5a2f6990 ]--- $ uname -m x86_64 $ uname -r 4.13.8-1-ARCH Archlinux ASRock Z170 Extreme7+ HDMI
commit 21cc6431e0c2d7c3a2e2fd4dd002400be73cb270 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Sep 11 09:41:25 2017 +0100 drm/i915: Mark the userptr invalidate workqueue as WQ_MEM_RECLAIM
Hello Wolf, could you verify that comment 1 fixes it? Thank you.
Hi, I checked journal on my system and there is one more: ``` Nov 17 01:21:43 dennas kernel: workqueue: PF_MEMALLOC task 42(khugepaged) is flushing !WQ_MEM_RECLAIM i915-userptr-release: (null) Nov 17 01:21:43 dennas kernel: ------------[ cut here ]------------ Nov 17 01:21:43 dennas kernel: WARNING: CPU: 3 PID: 42 at kernel/workqueue.c:2412 check_flush_dependency+0xf3/0x100 Nov 17 01:21:43 dennas kernel: Modules linked in: tun veth cfg80211 bridge stp llc xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack libcrc32c crc32c_generic iptable_filter snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support mxm_wmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass snd_hda_intel intel_cstate intel_rapl_perf snd_hda_codec pcspkr hci_uart e1000e i2c_i801 snd_hda_core snd_hwdep snd_pcm evdev tpm_tis joydev snd_timer mousedev btbcm tpm_tis_core snd input_leds btqca igb ptp pps_core mei_me dca led_class soundcore intel_pch_thermal mei mac_hid tpm btintel bluetooth i915 battery ecdh_generic rfkill wmi pinctrl_sunrisepoint intel_lpss_acpi crc16 pinctrl_intel intel_lpss video i2c_hid button intel_gtt acpi_als shpchp Nov 17 01:21:43 dennas kernel: kfifo_buf industrialio acpi_pad sch_fq_codel ip_tables x_tables btrfs xor raid6_pq algif_skcipher af_alg dm_crypt dm_mod dax hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd ahci libahci xhci_pci libata xhci_hcd usbcore scsi_mod usb_common serio amdgpu i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart Nov 17 01:21:43 dennas kernel: CPU: 3 PID: 42 Comm: khugepaged Tainted: G U 4.13.12-1-ARCH #1 Nov 17 01:21:43 dennas kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z170 Extreme7+, BIOS P7.40 05/04/2017 Nov 17 01:21:43 dennas kernel: task: ffff992c73082e80 task.stack: ffffb70bc1a44000 Nov 17 01:21:43 dennas kernel: RIP: 0010:check_flush_dependency+0xf3/0x100 Nov 17 01:21:43 dennas kernel: RSP: 0018:ffffb70bc1a476a0 EFLAGS: 00010286 Nov 17 01:21:43 dennas kernel: RAX: 000000000000006c RBX: ffff992c397b2600 RCX: ffffffff9ca55328 Nov 17 01:21:43 dennas kernel: RDX: 0000000000000000 RSI: 0000000000000082 RDI: 0000000000000287 Nov 17 01:21:43 dennas kernel: RBP: ffffb70bc1a476c0 R08: 0000000000006040 R09: ffffffff9cca68e0 Nov 17 01:21:43 dennas kernel: R10: ffffb70bc1a47790 R11: 0000000000000000 R12: 0000000000000000 Nov 17 01:21:43 dennas kernel: R13: ffff992c73082e80 R14: 0000000000000000 R15: ffffb70bc1a47700 Nov 17 01:21:43 dennas kernel: FS: 0000000000000000(0000) GS:ffff992c85d80000(0000) knlGS:0000000000000000 Nov 17 01:21:43 dennas kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Nov 17 01:21:43 dennas kernel: CR2: 00007f95842dd000 CR3: 00000001c7a09000 CR4: 00000000003406e0 Nov 17 01:21:43 dennas kernel: Call Trace: Nov 17 01:21:43 dennas kernel: flush_workqueue+0x13b/0x3f0 Nov 17 01:21:43 dennas kernel: i915_gem_userptr_mn_invalidate_range_start+0x148/0x160 [i915] Nov 17 01:21:43 dennas kernel: ? i915_gem_userptr_mn_invalidate_range_start+0x148/0x160 [i915] Nov 17 01:21:43 dennas kernel: __mmu_notifier_invalidate_range_start+0x55/0x80 Nov 17 01:21:43 dennas kernel: try_to_unmap_one+0x6fa/0x790 Nov 17 01:21:43 dennas kernel: rmap_walk_file+0xec/0x230 Nov 17 01:21:43 dennas kernel: rmap_walk+0x41/0x60 Nov 17 01:21:43 dennas kernel: try_to_unmap+0x91/0xf0 Nov 17 01:21:43 dennas kernel: ? page_remove_rmap+0x2a0/0x2a0 Nov 17 01:21:43 dennas kernel: ? page_not_mapped+0x20/0x20 Nov 17 01:21:43 dennas kernel: ? page_get_anon_vma+0xa0/0xa0 Nov 17 01:21:43 dennas kernel: migrate_pages+0x70d/0x9c0 Nov 17 01:21:43 dennas kernel: ? __ClearPageMovable+0x10/0x10 Nov 17 01:21:43 dennas kernel: ? isolate_freepages_block+0x3c0/0x3c0 Nov 17 01:21:43 dennas kernel: compact_zone+0x675/0x950 Nov 17 01:21:43 dennas kernel: compact_zone_order+0xa0/0xd0 Nov 17 01:21:43 dennas kernel: try_to_compact_pages+0xba/0x2b0 Nov 17 01:21:43 dennas kernel: ? try_to_compact_pages+0xba/0x2b0 Nov 17 01:21:43 dennas kernel: __alloc_pages_direct_compact+0x51/0xf0 Nov 17 01:21:43 dennas kernel: __alloc_pages_slowpath+0xae5/0xe10 Nov 17 01:21:43 dennas kernel: ? dequeue_task_fair+0x49f/0x640 Nov 17 01:21:43 dennas kernel: ? finish_task_switch+0x75/0x200 Nov 17 01:21:43 dennas kernel: ? get_page_from_freelist+0x349/0xb00 Nov 17 01:21:43 dennas kernel: ? del_timer_sync+0x39/0x40 Nov 17 01:21:43 dennas kernel: __alloc_pages_nodemask+0x237/0x250 Nov 17 01:21:43 dennas kernel: khugepaged+0x102a/0x1f70 Nov 17 01:21:43 dennas kernel: ? wait_woken+0x80/0x80 Nov 17 01:21:43 dennas kernel: kthread+0x125/0x140 Nov 17 01:21:43 dennas kernel: ? __collapse_huge_page_swapin+0x440/0x440 Nov 17 01:21:43 dennas kernel: ? kthread_create_on_node+0x70/0x70 Nov 17 01:21:43 dennas kernel: ret_from_fork+0x25/0x30 Nov 17 01:21:43 dennas kernel: Code: 00 8b b0 30 05 00 00 48 8d 8b b0 00 00 00 48 8d 90 d8 06 00 00 4d 89 e0 48 c7 c7 a0 70 93 9c c6 05 e5 fe a4 00 01 e8 7e 74 04 00 <0f> ff e9 6b ff ff ff 66 0f 1f 44 00 00 0f 1f 44 00 00 48 8b 37 Nov 17 01:21:43 dennas kernel: ---[ end trace e1a8cbe8e0f397a4 ]--- ``` When I grep it all ``` [root@dennas ~]# journalctl | grep WQ_MEM_RECLAIM Oct 25 03:27:03 dennas kernel: workqueue: PF_MEMALLOC task 42(khugepaged) is flushing !WQ_MEM_RECLAIM i915-userptr-release: (null) Nov 17 01:21:43 dennas kernel: workqueue: PF_MEMALLOC task 42(khugepaged) is flushing !WQ_MEM_RECLAIM i915-userptr-release: (null) ``` first one is the original, second one is new one. Was the fix supposed to be in 4.13.12?
(In reply to wolf from comment #3) >... > Was the fix supposed to be in 4.13.12? It was merged on 4.15
oh, will report back if it shows even after update to 4.15
Closing, please re-open if still occurs.
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.