vm_bind resulted in kernel BUG at lib/list_debug.c:49!, list_del corruption, ffff999983ccd358->next is NULL
I'm in the process of updating mesa/mesa!23045 (merged) to issue multiple binds per vm_bind ioctl (i.e., num_binds > 1). While testing things I just got this:
[10818.634601] xe REG[0x263a8-0x263af]: allow read access
[10818.634624] xe 0000:03:00.0: [drm] GT0: resumed
[10818.638583] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10818.638709] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000000200000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10818.638776] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000000200000, range=0x0000000000040000
[10818.638911] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [200000...23ffff) engine 00000000465a3ad9.
[10818.639099] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.639158] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 3 at (0 + 1) [0...8000000000) f:0
[10818.639311] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10818.639422] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000080000000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10818.639488] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000080000000, range=0x0000000000040000
[10818.639576] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [80000000...8003ffff) engine 00000000465a3ad9.
[10818.639719] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.639777] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (2 + 1) [80000000...c0000000) f:0
[10818.640797] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10818.640907] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000300000000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10818.640973] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000300000000, range=0x0000000000040000
[10818.641081] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [300000000...30003ffff) engine 00000000465a3ad9.
[10818.641232] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.641291] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (12 + 1) [300000000...340000000) f:0
[10818.641414] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.641515] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000240000000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.641580] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000240000000, range=0x0000000000010000
[10818.641667] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [240000000...24000ffff) engine 00000000465a3ad9.
[10818.641805] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.641863] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (9 + 1) [240000000...280000000) f:0
[10818.641986] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.642102] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000240800000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.642166] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000240800000, range=0x0000000000010000
[10818.642240] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [240800000...24080ffff) engine 00000000465a3ad9.
[10818.642343] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.642401] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 1 at (4 + 1) [240800000...240a00000) f:0
[10818.642516] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 1048576
[10818.642616] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000200000000, range=0x0000000000100000, bo_offset_or_userptr=0x0000000000000000
[10818.642680] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000200000000, range=0x0000000000100000
[10818.642753] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [200000000...2000fffff) engine 00000000465a3ad9.
[10818.642904] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.642960] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (8 + 1) [200000000...240000000) f:0
[10818.643138] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.643249] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000000000000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.643315] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000000000000, range=0x0000000000010000
[10818.643414] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [0...ffff) engine 00000000465a3ad9.
[10818.643518] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.643577] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 1 at (0 + 1) [0...200000) f:0
[10818.643694] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.643800] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffeffff0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.643863] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffeffff0000, range=0x0000000000010000
[10818.643934] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffeffff0000...fffeffffffff) engine 00000000465a3ad9.
[10818.644114] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.644170] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 3 at (511 + 1) [ff8000000000...1000000000000) f:0
[10818.644271] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.644382] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefffe0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.644448] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefffe0000, range=0x0000000000010000
[10818.644553] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefffe0000...fffefffeffff) engine 00000000465a3ad9.
[10818.644618] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.644675] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (480 + 16) [fffefffe0000...fffeffff0000) f:0
[10818.644764] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10818.644863] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000080040000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10818.644927] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000080040000, range=0x0000000000040000
[10818.645000] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [80040000...8007ffff) engine 00000000465a3ad9.
[10818.645078] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.645134] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (64 + 64) [80040000...80080000) f:0
[10818.646102] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10818.646216] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefffd0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10818.646282] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefffd0000, range=0x0000000000010000
[10818.646380] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefffd0000...fffefffdffff) engine 00000000465a3ad9.
[10818.646445] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.646503] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (464 + 16) [fffefffd0000...fffefffe0000) f:0
[10818.744591] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff70000, range=0x0000000000060000, bo_offset_or_userptr=0x0000000000000000
[10818.744667] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff70000, range=0x0000000000060000
[10818.744770] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefff70000...fffefffcffff) engine 00000000465a3ad9.
[10818.744832] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.744885] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (368 + 96) [fffefff70000...fffefffd0000) f:0
[10818.745521] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10818.745591] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 1, size: 131072
[10818.745676] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff10000, range=0x0000000000060000, bo_offset_or_userptr=0x0000000000000000
[10818.745735] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff10000, range=0x0000000000060000
[10818.745840] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefff10000...fffefff6ffff) engine 00000000465a3ad9.
[10818.745902] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10818.745955] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (272 + 96) [fffefff10000...fffefff70000) f:0
[10818.746254] xe 0000:03:00.0: [drm:xe_vm_bind_ioctl [xe]] Ioctl argument check failed at drivers/gpu/drm/xe/xe_vm.c:3093: err
[10819.784169] xe 0000:03:00.0: [drm] GT0: suspended
[10829.372173] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying GT save-restore MMIOs
[10829.372249] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x8724] = 0x40000000
[10829.372311] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x9424] = 0xfffffffc
[10829.372366] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x9434] = 0x00020000
[10829.372424] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x9524] = 0x10000000
[10829.372484] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xb0b4] = 0x0a480000
[10829.372539] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xb188] = 0x00000008
[10829.372602] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xcf2c] = 0x00010008
[10829.372656] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xcf30] = 0x00010008
[10829.372709] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xcf34] = 0x00010008
[10829.372763] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xcf38] = 0x00010008
[10829.372817] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xcf54] = 0x00001004
[10829.372876] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe90c] = 0x00000000
[10829.372934] xe 0000:03:00.0: [drm:xe_wopcm_init [xe]] WOPCM: 4096K
[10829.372993] xe 0000:03:00.0: [drm:xe_wopcm_init [xe]] GuC WOPCM is already locked [1440K, 544K)
[10829.416474] xe 0000:03:00.0: [drm:__xe_guc_upload [xe]] GuC successfully loaded
[10829.416831] xe 0000:03:00.0: [drm:xe_guc_ct_enable [xe]] GuC CT communication channel enabled
[10829.417245] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] flag:0x0
[10829.417335] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] entries:64
[10829.417418] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 0 0xb020 0xd00090
[10829.417499] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 1 0xb024 0xb00050
[10829.417580] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 2 0xb028 0xb000b0
[10829.417657] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 3 0xb02c 0xb000b0
[10829.417734] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 4 0xb030 0xb000b0
[10829.417811] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 5 0xb034 0xb000b0
[10829.417888] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 6 0xb038 0xb000b0
[10829.417965] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 7 0xb03c 0xb000b0
[10829.418055] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 8 0xb040 0xb000b0
[10829.418132] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 9 0xb044 0xb000b0
[10829.418209] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 10 0xb048 0xb000b0
[10829.418287] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 11 0xb04c 0xb000b0
[10829.418364] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 12 0xb050 0xb000b0
[10829.418441] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 13 0xb054 0xb000b0
[10829.418518] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 14 0xb058 0xb000b0
[10829.418594] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 15 0xb05c 0xb000b0
[10829.418671] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 16 0xb060 0xb000b0
[10829.418748] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 17 0xb064 0xb000b0
[10829.418824] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 18 0xb068 0xb000b0
[10829.418901] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 19 0xb06c 0xb000b0
[10829.419000] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 20 0xb070 0xb000b0
[10829.419095] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 21 0xb074 0xb000b0
[10829.419182] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 22 0xb078 0xb000b0
[10829.419268] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 23 0xb07c 0xb000b0
[10829.419354] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 24 0xb080 0xb000b0
[10829.419440] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 25 0xb084 0xb000b0
[10829.419527] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 26 0xb088 0xb000b0
[10829.419612] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 27 0xb08c 0xb000b0
[10829.419698] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 28 0xb090 0xb000b0
[10829.419785] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 29 0xb094 0xb000b0
[10829.419870] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 30 0xb098 0xb000b0
[10829.419957] xe 0000:03:00.0: [drm:xe_mocs_init [xe]] 31 0xb09c 0xb000b0
[10829.420469] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying rcs0 save-restore MMIOs
[10829.420577] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x20c4] = 0x3f7e0102
[10829.420673] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x20e4] = 0x80008000
[10829.420764] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x20ec] = 0x00020002
[10829.420867] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x83b4] = 0x00100010
[10829.420964] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe18c] = 0x02000200
[10829.421073] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe420] = 0x04000400
[10829.421166] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe48c] = 0x08000800
[10829.421264] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe4f0] = 0x30003000
[10829.421354] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe4f4] = 0x80008000
[10829.421448] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe5f0] = 0x38000000
[10829.421542] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe7c8] = 0x40000600
[10829.421633] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0xe7cc] = 0x00800010
[10829.421734] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying bcs0 save-restore MMIOs
[10829.421827] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x220c4] = 0x3f7e0102
[10829.421928] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting bcs0 registers
[10829.422034] xe REG[0x223a8-0x223af]: allow read access
[10829.422048] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying vcs0 save-restore MMIOs
[10829.422140] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1c00c4] = 0x3f7e0102
[10829.422249] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting vcs0 registers
[10829.422343] xe REG[0x1c03a8-0x1c03af]: allow read access
[10829.422364] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying vcs2 save-restore MMIOs
[10829.422456] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1d00c4] = 0x3f7e0102
[10829.422564] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting vcs2 registers
[10829.422659] xe REG[0x1d03a8-0x1d03af]: allow read access
[10829.422678] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying vecs0 save-restore MMIOs
[10829.422769] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1c80c4] = 0x3f7e0102
[10829.422877] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting vecs0 registers
[10829.422981] xe REG[0x1c83a8-0x1c83af]: allow read access
[10829.422992] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying vecs1 save-restore MMIOs
[10829.423049] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1d80c4] = 0x3f7e0102
[10829.423136] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting vecs1 registers
[10829.423207] xe REG[0x1d83a8-0x1d83af]: allow read access
[10829.423216] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying ccs0 save-restore MMIOs
[10829.423269] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1a0c4] = 0x3f7e0102
[10829.423327] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting ccs0 registers
[10829.423382] xe REG[0x1a3a8-0x1a3af]: allow read access
[10829.423389] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying ccs1 save-restore MMIOs
[10829.423442] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1c0c4] = 0x3f7e0102
[10829.423549] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting ccs1 registers
[10829.423631] xe REG[0x1c3a8-0x1c3af]: allow read access
[10829.423653] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying ccs2 save-restore MMIOs
[10829.423719] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x1e0c4] = 0x3f7e0102
[10829.423775] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting ccs2 registers
[10829.423828] xe REG[0x1e3a8-0x1e3af]: allow read access
[10829.423835] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] Applying ccs3 save-restore MMIOs
[10829.423900] xe 0000:03:00.0: [drm:xe_reg_sr_apply_mmio [xe]] REG[0x260c4] = 0x3f7e0102
[10829.423960] xe 0000:03:00.0: [drm:xe_reg_sr_apply_whitelist [xe]] Whitelisting ccs3 registers
[10829.424023] xe REG[0x263a8-0x263af]: allow read access
[10829.424046] xe 0000:03:00.0: [drm] GT0: resumed
[10829.427761] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10829.427886] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000000200000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10829.427950] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000000200000, range=0x0000000000040000
[10829.428050] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [200000...23ffff) engine 0000000052e65aa3.
[10829.428217] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.428272] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 3 at (0 + 1) [0...8000000000) f:0
[10829.428441] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10829.428546] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000080000000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10829.428610] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000080000000, range=0x0000000000040000
[10829.428711] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [80000000...8003ffff) engine 0000000052e65aa3.
[10829.428845] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.428900] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (2 + 1) [80000000...c0000000) f:0
[10829.429917] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10829.430035] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000300000000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10829.430096] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000300000000, range=0x0000000000040000
[10829.430288] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [300000000...30003ffff) engine 0000000052e65aa3.
[10829.430426] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.430481] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (12 + 1) [300000000...340000000) f:0
[10829.430637] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.430741] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000240000000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.430804] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000240000000, range=0x0000000000010000
[10829.430876] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [240000000...24000ffff) engine 0000000052e65aa3.
[10829.431000] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.431061] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (9 + 1) [240000000...280000000) f:0
[10829.431188] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.431293] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000240800000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.431355] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000240800000, range=0x0000000000010000
[10829.431454] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [240800000...24080ffff) engine 0000000052e65aa3.
[10829.431551] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.431606] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 1 at (4 + 1) [240800000...240a00000) f:0
[10829.431753] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 1048576
[10829.431860] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000200000000, range=0x0000000000100000, bo_offset_or_userptr=0x0000000000000000
[10829.431923] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000200000000, range=0x0000000000100000
[10829.431994] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [200000000...2000fffff) engine 0000000052e65aa3.
[10829.432150] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.432203] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 2 at (8 + 1) [200000000...240000000) f:0
[10829.432357] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.432460] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000000000000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.432523] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000000000000, range=0x0000000000010000
[10829.432595] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [0...ffff) engine 0000000052e65aa3.
[10829.432692] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.432747] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 1 at (0 + 1) [0...200000) f:0
[10829.432892] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.432994] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffeffff0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.433083] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffeffff0000, range=0x0000000000010000
[10829.433183] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffeffff0000...fffeffffffff) engine 0000000052e65aa3.
[10829.433352] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.433407] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 3 at (511 + 1) [ff8000000000...1000000000000) f:0
[10829.433535] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.433640] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefffe0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.433704] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefffe0000, range=0x0000000000010000
[10829.433799] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefffe0000...fffefffeffff) engine 0000000052e65aa3.
[10829.433856] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.433908] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (480 + 16) [fffefffe0000...fffeffff0000) f:0
[10829.434027] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10829.434128] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000000080040000, range=0x0000000000040000, bo_offset_or_userptr=0x0000000000000000
[10829.434190] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000000080040000, range=0x0000000000040000
[10829.434275] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [80040000...8007ffff) engine 0000000052e65aa3.
[10829.434337] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.434392] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (64 + 64) [80040000...80080000) f:0
[10829.435404] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 65536
[10829.435513] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefffd0000, range=0x0000000000010000, bo_offset_or_userptr=0x0000000000000000
[10829.435577] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefffd0000, range=0x0000000000010000
[10829.435673] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefffd0000...fffefffdffff) engine 0000000052e65aa3.
[10829.435731] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.435785] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (464 + 16) [fffefffd0000...fffefffe0000) f:0
[10829.533738] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff70000, range=0x0000000000060000, bo_offset_or_userptr=0x0000000000000000
[10829.533812] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff70000, range=0x0000000000060000
[10829.533914] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefff70000...fffefffcffff) engine 0000000052e65aa3.
[10829.533975] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.534076] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (368 + 96) [fffefff70000...fffefffd0000) f:0
[10829.534599] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 0, size: 262144
[10829.534680] xe 0000:03:00.0: [drm:xe_migrate_clear [xe]] Pass 1, size: 131072
[10829.534805] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff10000, range=0x0000000000060000, bo_offset_or_userptr=0x0000000000000000
[10829.534864] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff10000, range=0x0000000000060000
[10829.534961] xe 0000:03:00.0: [drm:__xe_pt_bind_vma [xe]] Preparing bind, with range [fffefff10000...fffefff6ffff) engine 0000000052e65aa3.
[10829.535138] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 1 entries to update
[10829.535224] xe 0000:03:00.0: [drm:xe_vm_dbg_print_entries [xe]] 0: Update level 0 at (272 + 96) [fffefff10000...fffefff70000) f:0
[10829.535509] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff70000, range=0x0000000000020000, bo_offset_or_userptr=0x0000000000000000
[10829.535623] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] REMAP:UNMAP: addr=0x0000fffefff70000, range=0x0000000000060000, keep=160
[10829.535738] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] REMAP:NEXT: addr=0x0000fffefff90000, range=0x0000000000040000
[10829.535792] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff70000, range=0x0000000000020000
[10829.535845] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] op=0, addr=0x0000fffefff90000, range=0x0000000000020000, bo_offset_or_userptr=0x0000000000020000
[10829.535900] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] REMAP:UNMAP: addr=0x0000fffefff70000, range=0x0000000000060000, keep=224
[10829.535954] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] REMAP:PREV: addr=0x0000fffefff70000, range=0x0000000000020000
[10829.536017] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] REMAP:NEXT: addr=0x0000fffefffb0000, range=0x0000000000020000
[10829.536123] xe 0000:03:00.0: [drm:vm_bind_ioctl_ops_create [xe]] MAP: addr=0x0000fffefff90000, range=0x0000000000020000
[10829.536213] ------------[ cut here ]------------
[10829.536296] WARNING: CPU: 4 PID: 39077 at drivers/gpu/drm/xe/xe_vm.c:1159 xe_vm_insert_vma+0x58/0x70 [xe]
[10829.536426] Modules linked in: snd_seq_dummy(E) snd_hrtimer(E) snd_seq(E) snd_seq_device(E) rfkill(E) qrtr(E) overlay(E) sunrpc(E) binfmt_misc(E) intel_rapl_msr(E) intel_rapl_common(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) kvm_intel(E) kvm(E) irqbypass(E) crc32_pclmul(E) ghash_clmulni_intel(E) sha512_ssse3(E) snd_sof_pci_intel_cnl(E) snd_sof_intel_hda_common(E) soundwire_intel(E) soundwire_generic_allocation(E) soundwire_cadence(E) snd_sof_intel_hda_mlink(E) snd_sof_intel_hda(E) snd_sof_pci(E) snd_sof_xtensa_dsp(E) snd_sof(E) snd_sof_utils(E) soundwire_bus(E) snd_soc_skl(E) snd_soc_hdac_hda(E) aesni_intel(E) snd_hda_ext_core(E) snd_soc_sst_ipc(E) snd_soc_sst_dsp(E) crypto_simd(E) snd_soc_acpi_intel_match(E) snd_soc_acpi(E) cryptd(E) snd_soc_core(E) snd_compress(E) snd_intel_dspcfg(E) snd_intel_sdw_acpi(E) snd_hda_codec(E) rapl(E) intel_cstate(E) snd_hda_core(E) iTCO_wdt(E) snd_hwdep(E) snd_pcm(E) intel_pmc_bxt(E) snd_timer(E) ee1004(E) intel_wmi_thunderbolt(E) intel_uncore(E) snd(E) pcspkr(E)
[10829.536478] wmi_bmof(E) iTCO_vendor_support(E) soundcore(E) watchdog(E) nls_ascii(E) nls_cp437(E) vfat(E) fat(E) acpi_tad(E) intel_pmc_core(E) acpi_pad(E) intel_pch_thermal(E) button(E) evdev(E) serio_raw(E) sg(E) msr(E) parport_pc(E) ppdev(E) lp(E) parport(E) loop(E) fuse(E) efi_pstore(E) dm_mod(E) configfs(E) efivarfs(E) ip_tables(E) x_tables(E) autofs4(E) xe(E) hid_generic(E) gpu_sched(E) drm_suballoc_helper(E) drm_ttm_helper(E) usbhid(E) hid(E) i915(E) sd_mod(E) i2c_algo_bit(E) drm_buddy(E) nvme(E) drm_display_helper(E) ahci(E) nvme_core(E) cec(E) t10_pi(E) libahci(E) ttm(E) drm_kms_helper(E) xhci_pci(E) libata(E) crc64_rocksoft(E) crc64(E) e1000e(E) crc_t10dif(E) i2c_i801(E) crct10dif_generic(E) crct10dif_pclmul(E) xhci_hcd(E) crc32c_intel(E) i2c_smbus(E) ptp(E) crct10dif_common(E) pps_core(E) scsi_mod(E) intel_lpss_pci(E) scsi_common(E) usbcore(E) intel_lpss(E) drm(E) idma64(E) usb_common(E) fan(E) video(E) wmi(E)
[10829.536559] CPU: 4 PID: 39077 Comm: sparse Tainted: G E 6.4.0pz+ #15
[10829.536562] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWR1.R00.X221.B00.2106281933 06/28/2021
[10829.536564] RIP: 0010:xe_vm_insert_vma+0x58/0x70 [xe]
[10829.536618] Code: cc cc cc cc 48 8d bb 78 04 00 00 be ff ff ff ff e8 ed 10 bd e8 85 c0 75 d5 0f 0b 48 89 ee 48 89 df e8 dc 93 62 ff 85 c0 74 d3 <0f> 0b 5b 5d c3 cc cc cc cc 0f 0b eb ad 66 66 2e 0f 1f 84 00 00 00
[10829.536621] RSP: 0018:ffffb8f84addbce8 EFLAGS: 00010282
[10829.536623] RAX: 00000000ffffffef RBX: ffff999957d1c000 RCX: 0000fffefff8ffff
[10829.536626] RDX: 0000fffefff8ffff RSI: 0000fffefff70000 RDI: ffff999957d1c020
[10829.536627] RBP: ffff999983ccd300 R08: 0000000000000000 R09: 0000000000000000
[10829.536629] R10: ffff99989214a140 R11: ffff9997b1523228 R12: ffff999957d1c478
[10829.536631] R13: ffff999957d1c000 R14: ffff999791f8be40 R15: 0000000000000000
[10829.536633] FS: 00007fe7786c1740(0000) GS:ffff999a9dd00000(0000) knlGS:0000000000000000
[10829.536635] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10829.536637] CR2: 00007fe7745c9210 CR3: 0000000322b3c004 CR4: 00000000003706e0
[10829.536639] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10829.536640] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[10829.536642] Call Trace:
[10829.536644] <TASK>
[10829.536646] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.536726] ? __warn+0x81/0x170
[10829.536732] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.536786] ? report_bug+0x18d/0x1c0
[10829.536791] ? handle_bug+0x41/0x70
[10829.536794] ? exc_invalid_op+0x13/0x60
[10829.536797] ? asm_exc_invalid_op+0x16/0x20
[10829.536805] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.536859] ? xe_vm_insert_vma+0x27/0x70 [xe]
[10829.536912] xe_vm_bind_ioctl+0x184c/0x1dc0 [xe]
[10829.536970] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.537053] drm_ioctl_kernel+0xc5/0x170 [drm]
[10829.537137] drm_ioctl+0x252/0x4c0 [drm]
[10829.537173] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.537236] __x64_sys_ioctl+0x8d/0xd0
[10829.537241] do_syscall_64+0x37/0x90
[10829.537244] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[10829.537248] RIP: 0033:0x7fe77831cafb
[10829.537250] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[10829.537253] RSP: 002b:00007ffc8756c280 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10829.537256] RAX: ffffffffffffffda RBX: 000055671aaa0ad8 RCX: 00007fe77831cafb
[10829.537258] RDX: 00007ffc8756c360 RSI: 0000000040786445 RDI: 0000000000000004
[10829.537260] RBP: 00007ffc8756c310 R08: 00007fe7777ab64c R09: 0000000000000064
[10829.537261] R10: 00007ffc8756a207 R11: 0000000000000246 R12: 000055671ac534c8
[10829.537263] R13: 00007fe775157b80 R14: 000055671ab2f1e0 R15: 0000000000000000
[10829.537270] </TASK>
[10829.537272] irq event stamp: 109847
[10829.537274] hardirqs last enabled at (109855): [<ffffffffa8f4898e>] __up_console_sem+0x5e/0x70
[10829.537277] hardirqs last disabled at (109862): [<ffffffffa8f48973>] __up_console_sem+0x43/0x70
[10829.537279] softirqs last enabled at (108608): [<ffffffffa8eaad87>] __irq_exit_rcu+0xb7/0x130
[10829.537282] softirqs last disabled at (108603): [<ffffffffa8eaad87>] __irq_exit_rcu+0xb7/0x130
[10829.537284] ---[ end trace 0000000000000000 ]---
[10829.537301] ------------[ cut here ]------------
[10829.537303] WARNING: CPU: 4 PID: 39077 at drivers/gpu/drm/xe/xe_vm.c:1159 xe_vm_insert_vma+0x58/0x70 [xe]
[10829.537376] Modules linked in: snd_seq_dummy(E) snd_hrtimer(E) snd_seq(E) snd_seq_device(E) rfkill(E) qrtr(E) overlay(E) sunrpc(E) binfmt_misc(E) intel_rapl_msr(E) intel_rapl_common(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) kvm_intel(E) kvm(E) irqbypass(E) crc32_pclmul(E) ghash_clmulni_intel(E) sha512_ssse3(E) snd_sof_pci_intel_cnl(E) snd_sof_intel_hda_common(E) soundwire_intel(E) soundwire_generic_allocation(E) soundwire_cadence(E) snd_sof_intel_hda_mlink(E) snd_sof_intel_hda(E) snd_sof_pci(E) snd_sof_xtensa_dsp(E) snd_sof(E) snd_sof_utils(E) soundwire_bus(E) snd_soc_skl(E) snd_soc_hdac_hda(E) aesni_intel(E) snd_hda_ext_core(E) snd_soc_sst_ipc(E) snd_soc_sst_dsp(E) crypto_simd(E) snd_soc_acpi_intel_match(E) snd_soc_acpi(E) cryptd(E) snd_soc_core(E) snd_compress(E) snd_intel_dspcfg(E) snd_intel_sdw_acpi(E) snd_hda_codec(E) rapl(E) intel_cstate(E) snd_hda_core(E) iTCO_wdt(E) snd_hwdep(E) snd_pcm(E) intel_pmc_bxt(E) snd_timer(E) ee1004(E) intel_wmi_thunderbolt(E) intel_uncore(E) snd(E) pcspkr(E)
[10829.537424] wmi_bmof(E) iTCO_vendor_support(E) soundcore(E) watchdog(E) nls_ascii(E) nls_cp437(E) vfat(E) fat(E) acpi_tad(E) intel_pmc_core(E) acpi_pad(E) intel_pch_thermal(E) button(E) evdev(E) serio_raw(E) sg(E) msr(E) parport_pc(E) ppdev(E) lp(E) parport(E) loop(E) fuse(E) efi_pstore(E) dm_mod(E) configfs(E) efivarfs(E) ip_tables(E) x_tables(E) autofs4(E) xe(E) hid_generic(E) gpu_sched(E) drm_suballoc_helper(E) drm_ttm_helper(E) usbhid(E) hid(E) i915(E) sd_mod(E) i2c_algo_bit(E) drm_buddy(E) nvme(E) drm_display_helper(E) ahci(E) nvme_core(E) cec(E) t10_pi(E) libahci(E) ttm(E) drm_kms_helper(E) xhci_pci(E) libata(E) crc64_rocksoft(E) crc64(E) e1000e(E) crc_t10dif(E) i2c_i801(E) crct10dif_generic(E) crct10dif_pclmul(E) xhci_hcd(E) crc32c_intel(E) i2c_smbus(E) ptp(E) crct10dif_common(E) pps_core(E) scsi_mod(E) intel_lpss_pci(E) scsi_common(E) usbcore(E) intel_lpss(E) drm(E) idma64(E) usb_common(E) fan(E) video(E) wmi(E)
[10829.537485] CPU: 4 PID: 39077 Comm: sparse Tainted: G W E 6.4.0pz+ #15
[10829.537488] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWR1.R00.X221.B00.2106281933 06/28/2021
[10829.537489] RIP: 0010:xe_vm_insert_vma+0x58/0x70 [xe]
[10829.537562] Code: cc cc cc cc 48 8d bb 78 04 00 00 be ff ff ff ff e8 ed 10 bd e8 85 c0 75 d5 0f 0b 48 89 ee 48 89 df e8 dc 93 62 ff 85 c0 74 d3 <0f> 0b 5b 5d c3 cc cc cc cc 0f 0b eb ad 66 66 2e 0f 1f 84 00 00 00
[10829.537564] RSP: 0018:ffffb8f84addbce8 EFLAGS: 00010282
[10829.537567] RAX: 00000000ffffffef RBX: ffff999957d1c000 RCX: 0000fffefffcffff
[10829.537569] RDX: 0000fffefffcffff RSI: 0000fffefffb0000 RDI: ffff999957d1c020
[10829.537586] RBP: ffff9999e3be5700 R08: 0000000000000000 R09: 0000000000000000
[10829.537588] R10: ffff99989214a140 R11: ffff9997b1523228 R12: ffff999957d1c478
[10829.537589] R13: ffff999957d1c000 R14: ffff999791f8be40 R15: 0000000000000000
[10829.537591] FS: 00007fe7786c1740(0000) GS:ffff999a9dd00000(0000) knlGS:0000000000000000
[10829.537593] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10829.537613] CR2: 00007fe7745c9210 CR3: 0000000322b3c004 CR4: 00000000003706e0
[10829.537615] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10829.537617] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[10829.537619] Call Trace:
[10829.537621] <TASK>
[10829.537622] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.537708] ? __warn+0x81/0x170
[10829.537713] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.537782] ? report_bug+0x18d/0x1c0
[10829.537786] ? handle_bug+0x41/0x70
[10829.537789] ? exc_invalid_op+0x13/0x60
[10829.537792] ? asm_exc_invalid_op+0x16/0x20
[10829.537800] ? xe_vm_insert_vma+0x58/0x70 [xe]
[10829.537873] ? xe_vm_insert_vma+0x27/0x70 [xe]
[10829.537929] xe_vm_bind_ioctl+0x1a96/0x1dc0 [xe]
[10829.537990] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.538088] drm_ioctl_kernel+0xc5/0x170 [drm]
[10829.538127] drm_ioctl+0x252/0x4c0 [drm]
[10829.538191] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.538285] __x64_sys_ioctl+0x8d/0xd0
[10829.538289] do_syscall_64+0x37/0x90
[10829.538292] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[10829.538296] RIP: 0033:0x7fe77831cafb
[10829.538298] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[10829.538300] RSP: 002b:00007ffc8756c280 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10829.538303] RAX: ffffffffffffffda RBX: 000055671aaa0ad8 RCX: 00007fe77831cafb
[10829.538305] RDX: 00007ffc8756c360 RSI: 0000000040786445 RDI: 0000000000000004
[10829.538307] RBP: 00007ffc8756c310 R08: 00007fe7777ab64c R09: 0000000000000064
[10829.538322] R10: 00007ffc8756a207 R11: 0000000000000246 R12: 000055671ac534c8
[10829.538324] R13: 00007fe775157b80 R14: 000055671ab2f1e0 R15: 0000000000000000
[10829.538331] </TASK>
[10829.538332] irq event stamp: 111113
[10829.538334] hardirqs last enabled at (111121): [<ffffffffa8f4898e>] __up_console_sem+0x5e/0x70
[10829.538336] hardirqs last disabled at (111128): [<ffffffffa8f48973>] __up_console_sem+0x43/0x70
[10829.538338] softirqs last enabled at (110980): [<ffffffffa8eaad87>] __irq_exit_rcu+0xb7/0x130
[10829.538341] softirqs last disabled at (110969): [<ffffffffa8eaad87>] __irq_exit_rcu+0xb7/0x130
[10829.538343] ---[ end trace 0000000000000000 ]---
[10829.538349] list_del corruption, ffff999983ccd358->next is NULL
[10829.538357] ------------[ cut here ]------------
[10829.538358] kernel BUG at lib/list_debug.c:49!
[10829.538363] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[10829.538364] CPU: 4 PID: 39077 Comm: sparse Tainted: G W E 6.4.0pz+ #15
[10829.538366] Hardware name: Intel Corporation CoffeeLake Client Platform/CoffeeLake S UDIMM RVP, BIOS CNLSFWR1.R00.X221.B00.2106281933 06/28/2021
[10829.538367] RIP: 0010:__list_del_entry_valid+0x59/0xc0
[10829.538369] Code: 48 8b 01 48 39 f8 75 5a 48 8b 72 08 48 39 c6 75 65 b8 01 00 00 00 c3 cc cc cc cc 48 89 fe 48 c7 c7 f0 27 09 aa e8 27 0e b2 ff <0f> 0b 48 89 fe 48 c7 c7 20 28 09 aa e8 16 0e b2 ff 0f 0b 48 89 fe
[10829.538388] RSP: 0018:ffffb8f84addbc90 EFLAGS: 00010246
[10829.538389] RAX: 0000000000000033 RBX: ffff999983ccd300 RCX: 0000000000000000
[10829.538390] RDX: 0000000000000000 RSI: ffffffffaa00d968 RDI: 00000000ffffffff
[10829.538391] RBP: ffff999983ccd358 R08: 0000000000000000 R09: ffffffffaa268ec0
[10829.538392] R10: ffffb8f84addbb40 R11: ffffffffaa5e8f08 R12: 0000000000000001
[10829.538393] R13: ffff999957d1c668 R14: ffff9998efd0f000 R15: ffff999983ccd300
[10829.538394] FS: 00007fe7786c1740(0000) GS:ffff999a9dd00000(0000) knlGS:0000000000000000
[10829.538395] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10829.538397] CR2: 00007fe7745c9210 CR3: 0000000322b3c004 CR4: 00000000003706e0
[10829.538398] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10829.538399] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[10829.538400] Call Trace:
[10829.538401] <TASK>
[10829.538402] ? die+0x32/0x80
[10829.538405] ? do_trap+0xd7/0x100
[10829.538408] ? __list_del_entry_valid+0x59/0xc0
[10829.538409] ? do_error_trap+0x81/0x110
[10829.538411] ? __list_del_entry_valid+0x59/0xc0
[10829.538414] ? exc_invalid_op+0x4c/0x60
[10829.538416] ? __list_del_entry_valid+0x59/0xc0
[10829.538418] ? asm_exc_invalid_op+0x16/0x20
[10829.538421] ? __list_del_entry_valid+0x59/0xc0
[10829.538424] drm_gpuva_remove+0x2b/0x70 [drm]
[10829.538453] xe_vm_remove_vma+0x24/0x70 [xe]
[10829.538510] xe_vma_op_unwind+0x1d7/0x1e0 [xe]
[10829.538566] xe_vm_bind_ioctl+0x1997/0x1dc0 [xe]
[10829.538624] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.538679] drm_ioctl_kernel+0xc5/0x170 [drm]
[10829.538712] drm_ioctl+0x252/0x4c0 [drm]
[10829.538745] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[10829.538803] __x64_sys_ioctl+0x8d/0xd0
[10829.538805] do_syscall_64+0x37/0x90
[10829.538807] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[10829.538810] RIP: 0033:0x7fe77831cafb
[10829.538811] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[10829.538812] RSP: 002b:00007ffc8756c280 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10829.538814] RAX: ffffffffffffffda RBX: 000055671aaa0ad8 RCX: 00007fe77831cafb
[10829.538815] RDX: 00007ffc8756c360 RSI: 0000000040786445 RDI: 0000000000000004
[10829.538816] RBP: 00007ffc8756c310 R08: 00007fe7777ab64c R09: 0000000000000064
[10829.538817] R10: 00007ffc8756a207 R11: 0000000000000246 R12: 000055671ac534c8
[10829.538818] R13: 00007fe775157b80 R14: 000055671ab2f1e0 R15: 0000000000000000
[10829.538821] </TASK>
[10829.538822] Modules linked in: snd_seq_dummy(E) snd_hrtimer(E) snd_seq(E) snd_seq_device(E) rfkill(E) qrtr(E) overlay(E) sunrpc(E) binfmt_misc(E) intel_rapl_msr(E) intel_rapl_common(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) kvm_intel(E) kvm(E) irqbypass(E) crc32_pclmul(E) ghash_clmulni_intel(E) sha512_ssse3(E) snd_sof_pci_intel_cnl(E) snd_sof_intel_hda_common(E) soundwire_intel(E) soundwire_generic_allocation(E) soundwire_cadence(E) snd_sof_intel_hda_mlink(E) snd_sof_intel_hda(E) snd_sof_pci(E) snd_sof_xtensa_dsp(E) snd_sof(E) snd_sof_utils(E) soundwire_bus(E) snd_soc_skl(E) snd_soc_hdac_hda(E) aesni_intel(E) snd_hda_ext_core(E) snd_soc_sst_ipc(E) snd_soc_sst_dsp(E) crypto_simd(E) snd_soc_acpi_intel_match(E) snd_soc_acpi(E) cryptd(E) snd_soc_core(E) snd_compress(E) snd_intel_dspcfg(E) snd_intel_sdw_acpi(E) snd_hda_codec(E) rapl(E) intel_cstate(E) snd_hda_core(E) iTCO_wdt(E) snd_hwdep(E) snd_pcm(E) intel_pmc_bxt(E) snd_timer(E) ee1004(E) intel_wmi_thunderbolt(E) intel_uncore(E) snd(E) pcspkr(E)
[10829.538846] wmi_bmof(E) iTCO_vendor_support(E) soundcore(E) watchdog(E) nls_ascii(E) nls_cp437(E) vfat(E) fat(E) acpi_tad(E) intel_pmc_core(E) acpi_pad(E) intel_pch_thermal(E) button(E) evdev(E) serio_raw(E) sg(E) msr(E) parport_pc(E) ppdev(E) lp(E) parport(E) loop(E) fuse(E) efi_pstore(E) dm_mod(E) configfs(E) efivarfs(E) ip_tables(E) x_tables(E) autofs4(E) xe(E) hid_generic(E) gpu_sched(E) drm_suballoc_helper(E) drm_ttm_helper(E) usbhid(E) hid(E) i915(E) sd_mod(E) i2c_algo_bit(E) drm_buddy(E) nvme(E) drm_display_helper(E) ahci(E) nvme_core(E) cec(E) t10_pi(E) libahci(E) ttm(E) drm_kms_helper(E) xhci_pci(E) libata(E) crc64_rocksoft(E) crc64(E) e1000e(E) crc_t10dif(E) i2c_i801(E) crct10dif_generic(E) crct10dif_pclmul(E) xhci_hcd(E) crc32c_intel(E) i2c_smbus(E) ptp(E) crct10dif_common(E) pps_core(E) scsi_mod(E) intel_lpss_pci(E) scsi_common(E) usbcore(E) intel_lpss(E) drm(E) idma64(E) usb_common(E) fan(E) video(E) wmi(E)
[10829.538878] ---[ end trace 0000000000000000 ]---
[10829.750764] RIP: 0010:__list_del_entry_valid+0x59/0xc0
[10829.750771] Code: 48 8b 01 48 39 f8 75 5a 48 8b 72 08 48 39 c6 75 65 b8 01 00 00 00 c3 cc cc cc cc 48 89 fe 48 c7 c7 f0 27 09 aa e8 27 0e b2 ff <0f> 0b 48 89 fe 48 c7 c7 20 28 09 aa e8 16 0e b2 ff 0f 0b 48 89 fe
[10829.750773] RSP: 0018:ffffb8f84addbc90 EFLAGS: 00010246
[10829.750775] RAX: 0000000000000033 RBX: ffff999983ccd300 RCX: 0000000000000000
[10829.750777] RDX: 0000000000000000 RSI: ffffffffaa00d968 RDI: 00000000ffffffff
[10829.750778] RBP: ffff999983ccd358 R08: 0000000000000000 R09: ffffffffaa268ec0
[10829.750779] R10: ffffb8f84addbb40 R11: ffffffffaa5e8f08 R12: 0000000000000001
[10829.750781] R13: ffff999957d1c668 R14: ffff9998efd0f000 R15: ffff999983ccd300
[10829.750782] FS: 00007fe7786c1740(0000) GS:ffff999a9dd00000(0000) knlGS:0000000000000000
[10829.750784] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10829.750785] CR2: 00007fe7745c9210 CR3: 0000000322b3c004 CR4: 00000000003706e0
[10829.750786] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10829.750788] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Actually I can 100% reproduce this:
- Install https://gitlab.freedesktop.org/pzanoni/mesa/-/commits/xe_sparse_bug528 (branch xe_sparse_bug528)
- Grab https://people.freedesktop.org/~pzanoni/528/
make
with-mesa ./sparse 19
Edited by Paulo Zanoni