xe_evict --r evict-small blows up on DG2
[ 455.861974] kernel BUG at drivers/gpu/drm/xe/xe_bb.c:45!
[ 455.867527] invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
[ 455.873071] CPU: 1 PID: 84 Comm: kworker/u12:4 Tainted: G W 5.18.0-xe+ #2318
[ 455.881366] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWR1.R00.X220.B00.2103302221 03/30/2021
[ 455.894218] Workqueue: events_unbound async_op_work_func [xe]
[ 455.899960] RIP: 0010:__xe_bb_create_job+0x91/0xa0 [xe]
[ 455.905177] Code: 48 89 df e8 71 3f 33 e1 c7 03 00 00 00 05 48 8b 7d 00 e8 e2 f1 01 00 4c 89 ee 5b 4c 89 e7 5d 41 5c 41 5d 41 5e e9 2f f3 01 00 <0f> 0b 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 41 54 41 89 f4 55 48
[ 455.923797] RSP: 0018:ffff88810e95e778 EFLAGS: 00010202
[ 455.928991] RAX: 0000000000000000 RBX: 000000000000041a RCX: ffffffffa0088040
[ 455.936075] RDX: 0000000000000003 RSI: dffffc0000000000 RDI: ffff888103940bd0
[ 455.943168] RBP: ffff888103940bc0 R08: ffffed1021d2bceb R09: ffffed1021d2bceb
[ 455.950256] R10: ffff88810e95e840 R11: ffffed1021d2bcea R12: ffff888121209000
[ 455.957342] R13: ffff88810e95e7c8 R14: 00000000000003f7 R15: ffff888107fb3b80
[ 455.964427] FS: 0000000000000000(0000) GS:ffff88841dc80000(0000) knlGS:0000000000000000
[ 455.972458] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 455.978166] CR2: 00007ff8967a7840 CR3: 0000000006e16003 CR4: 00000000003706e0
[ 455.985253] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 455.992344] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 455.999433] Call Trace:
[ 456.001871] <TASK>
[ 456.003964] xe_bb_create_migration_job+0xda/0x110 [xe]
[ 456.009179] ? xe_bb_new+0xd0/0xd0 [xe]
[ 456.013022] xe_migrate_copy+0x7d1/0xd80 [xe]
[ 456.017382] ? xe_migrate_init+0x1d0/0x1d0 [xe]
[ 456.021912] ? probe_iommu_group+0x70/0x70
[ 456.025998] ? lockdep_hardirqs_on+0xbf/0x130
[ 456.030332] ? preempt_count_sub+0xf/0xb0
[ 456.034320] ? _raw_spin_unlock_irqrestore+0x3d/0x60
[ 456.039257] ? __rb_reserve_next+0x383/0x8d0
[ 456.043506] ? ring_buffer_lock_reserve+0x22d/0x800
[ 456.048365] ? rb_commit.isra.16+0xbf/0x480
[ 456.052529] ? ring_buffer_unlock_commit+0x10d/0x230
[ 456.057469] ? trace_event_buffer_commit+0xdc/0x430
[ 456.062321] ? rcu_read_lock_sched_held+0x9c/0xd0
[ 456.067006] ? rcu_read_lock_bh_held+0xb0/0xb0
[ 456.071425] xe_bo_move+0x12f/0x450 [xe]
[ 456.075351] ttm_bo_handle_move_mem+0x147/0x220 [ttm]
[ 456.080382] ttm_bo_bounce_temp_buffer.isra.16+0xf9/0x120 [ttm]
[ 456.086275] ? ttm_bo_handle_move_mem+0x220/0x220 [ttm]
[ 456.091477] ? xe_bo_move+0x361/0x450 [xe]
[ 456.095574] ttm_mem_evict_first+0x3e8/0x7d0 [ttm]
[ 456.100351] ? ttm_bo_bounce_temp_buffer.isra.16+0x120/0x120 [ttm]
[ 456.106503] ? debug_check_no_obj_freed+0x181/0x270
[ 456.111356] ? lock_downgrade+0x3d0/0x3d0
[ 456.115349] ? lockdep_hardirqs_on+0xbf/0x130
[ 456.119690] ? kfree+0xd7/0x3e0
[ 456.122815] ? xe_ttm_vram_mgr_new+0x2f6/0x380 [xe]
[ 456.127691] ttm_bo_mem_space+0x37b/0x3a0 [ttm]
[ 456.132208] ttm_bo_validate+0x1af/0x260 [ttm]
[ 456.136634] ? rwlock_bug.part.2+0x50/0x50
[ 456.140711] ? ttm_bo_mem_space+0x3a0/0x3a0 [ttm]
[ 456.145400] ? ttm_resource_move_to_lru_tail+0x313/0x350 [ttm]
[ 456.151211] ? do_raw_spin_unlock+0x9d/0x130
[ 456.155464] ? preempt_count_sub+0xf/0xb0
[ 456.159457] ttm_bo_init_reserved+0x1d1/0x3b0 [ttm]
[ 456.164318] __xe_bo_create_locked+0x26f/0x370 [xe]
[ 456.169189] ? xe_ttm_io_mem_pfn+0xf0/0xf0 [xe]
[ 456.173715] ? xe_bo_trigger_rebind+0x3d0/0x3d0 [xe]
[ 456.178674] xe_bo_create_locked+0x4b/0x1d0 [xe]
[ 456.183289] xe_bo_create+0x9/0xa0 [xe]
[ 456.187129] xe_pt_create+0x95/0x100 [xe]
[ 456.191144] xe_pt_populate_for_vma+0x4d8/0x650 [xe]
[ 456.196110] ? xe_pt_populate_empty+0x1a0/0x1a0 [xe]
[ 456.201070] ? do_raw_spin_unlock+0x9d/0x130
[ 456.205314] ? preempt_count_sub+0xf/0xb0
[ 456.209303] ? _raw_spin_unlock+0x24/0x40
[ 456.213293] ? xe_bo_pin+0x8a/0xa0 [xe]
[ 456.217133] __xe_pt_prepare_bind+0x379/0x6d0 [xe]
[ 456.221928] __xe_pt_prepare_bind+0x1df/0x6d0 [xe]
[ 456.226717] ? rcu_read_lock_sched_held+0x9c/0xd0
[ 456.231393] xe_vm_bind_vma+0x19b/0x6f0 [xe]
[ 456.235670] ? __xe_pt_prepare_bind+0x6d0/0x6d0 [xe]
[ 456.240633] ? check_chain_key+0x1e3/0x2f0
[ 456.244712] ? __might_resched+0x112/0x1b0
[ 456.248792] ? ttm_resource_places_compat+0xbd/0xf0 [ttm]
[ 456.254171] ? ttm_resource_compat+0x36/0x90 [ttm]
[ 456.258953] ? ttm_bo_validate+0xfb/0x260 [ttm]
[ 456.263472] ? ttm_bo_mem_space+0x3a0/0x3a0 [ttm]
[ 456.268160] ? mutex_lock_interruptible_nested+0x20/0x20
[ 456.273446] ? ttm_tt_populate+0x2c/0x280 [ttm]
[ 456.277961] ? xe_bo_populate+0x110/0x180 [xe]
[ 456.282405] ? xe_bo_create+0xa0/0xa0 [xe]
[ 456.286504] __xe_vm_bind.constprop.32+0x46/0xe0 [xe]
[ 456.291555] vm_bind_ioctl.isra.28+0x389/0x3c0 [xe]
[ 456.296433] ? __vm_bind_ioctl.isra.27+0x250/0x250 [xe]
[ 456.301652] ? rcu_read_lock_sched_held+0x9c/0xd0
[ 456.306336] ? down_write+0xeb/0x140
[ 456.309897] ? down_write_killable+0x160/0x160
[ 456.314316] ? async_op_work_func+0x566/0x860 [xe]
[ 456.319106] async_op_work_func+0x566/0x860 [xe]
[ 456.323728] ? vm_bind_ioctl.isra.28+0x3c0/0x3c0 [xe]
[ 456.328774] ? rcu_read_lock_sched_held+0x9c/0xd0
[ 456.333450] ? rcu_read_lock_bh_held+0xb0/0xb0
[ 456.337867] process_one_work+0x540/0xa30
[ 456.341859] ? pwq_dec_nr_in_flight+0x100/0x100
[ 456.346364] ? do_raw_spin_lock+0x114/0x1d0
[ 456.350528] worker_thread+0x60/0x660
[ 456.354172] ? process_one_work+0xa30/0xa30
[ 456.358333] kthread+0x174/0x1b0
[ 456.361546] ? kthread_complete_and_exit+0x20/0x20
[ 456.366315] ret_from_fork+0x22/0x30
[ 456.369878] </TASK>
[ 456.372053] Modules linked in: fuse x86_pkg_temp_thermal coretemp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm mei_me mei e1000e crct10dif_pclmul crc32_pclmul i2c_i801 ptp ghash_clmulni_intel i2c_smbus pps_core xe drm_ttm_helper ttm intel_lpss_pci gpu_sched drm_suballoc_helper
[ 456.404161] ---[ end trace 0000000000000000 ]---
[ 456.482573] RIP: 0010:__xe_bb_create_job+0x91/0xa0 [xe]
[ 456.489328] Code: 48 89 df e8 71 3f 33 e1 c7 03 00 00 00 05 48 8b 7d 00 e8 e2 f1 01 00 4c 89 ee 5b 4c 89 e7 5d 41 5c 41 5d 41 5e e9 2f f3 01 00 <0f> 0b 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 41 54 41 89 f4 55 48
[ 456.511903] RSP: 0018:ffff88810e95e778 EFLAGS: 00010202
[ 456.518797] RAX: 0000000000000000 RBX: 000000000000041a RCX: ffffffffa0088040
[ 456.527242] RDX: 0000000000000003 RSI: dffffc0000000000 RDI: ffff888103940bd0
[ 456.537248] RBP: ffff888103940bc0 R08: ffffed1021d2bceb R09: ffffed1021d2bceb
[ 456.545654] R10: ffff88810e95e840 R11: ffffed1021d2bcea R12: ffff888121209000
[ 456.555356] R13: ffff88810e95e7c8 R14: 00000000000003f7 R15: ffff888107fb3b80
[ 456.564040] FS: 0000000000000000(0000) GS:ffff88841de00000(0000) knlGS:0000000000000000
[ 456.574577] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 456.581391] CR2: 00007ff897400010 CR3: 0000000006e16005 CR4: 00000000003706e0
[ 456.590308] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 456.598519] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 456.608509] kworker/u12:4 (84) used greatest stack depth: 22608 bytes left