[amdgpu] Kernel v5.10-rc3 drm_mm_init() crash
I tried new kernel v5.10-rc3, got this
[ 11.399359] [drm] amdgpu kernel modesetting enabled.
[ 11.399987] checking generic (d0000000 300000) vs hw (d0000000 10000000)
[ 11.399988] fb0: switching to amdgpudrmfb from simple
[ 11.400590] Console: switching to colour dummy device 80x25
[ 11.400621] amdgpu 0000:0a:00.0: vgaarb: deactivate vga console
[ 11.400717] [drm] initializing kernel modesetting (RAVEN 0x1002:0x15DD 0x1458:0xD000 0xD8).
[ 11.400723] amdgpu 0000:0a:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[ 11.400736] [drm] register mmio base: 0xFCB00000
[ 11.400738] [drm] register mmio size: 524288
[ 11.400759] [drm] add ip block number 0 <soc15_common>
[ 11.400761] [drm] add ip block number 1 <gmc_v9_0>
[ 11.400763] [drm] add ip block number 2 <vega10_ih>
[ 11.400765] [drm] add ip block number 3 <psp>
[ 11.400766] [drm] add ip block number 4 <gfx_v9_0>
[ 11.400768] [drm] add ip block number 5 <sdma_v4_0>
[ 11.400770] [drm] add ip block number 6 <powerplay>
[ 11.400772] [drm] add ip block number 7 <dm>
[ 11.400773] [drm] add ip block number 8 <vcn_v1_0>
[ 11.425283] [drm] BIOS signature incorrect 0 0
[ 11.425319] amdgpu 0000:0a:00.0: amdgpu: Fetched VBIOS from ROM BAR
[ 11.425322] amdgpu: ATOM BIOS: 113-RAVEN-116
[ 11.425349] [drm] VCN decode is enabled in VM mode
[ 11.425351] [drm] VCN encode is enabled in VM mode
[ 11.425353] [drm] JPEG decode is enabled in VM mode
[ 11.425381] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[ 11.425389] amdgpu 0000:0a:00.0: amdgpu: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[ 11.425392] amdgpu 0000:0a:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[ 11.425396] amdgpu 0000:0a:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[ 11.425402] [drm] Detected VRAM RAM=2048M, BAR=2048M
[ 11.425405] [drm] RAM width 128bits DDR4
[ 11.425442] [TTM] Zone kernel: Available graphics memory: 3012342 KiB
[ 11.425445] [TTM] Zone dma32: Available graphics memory: 2097152 KiB
[ 11.425447] [TTM] Initializing pool allocator
[ 11.425450] [TTM] Initializing DMA pool allocator
[ 11.425487] [drm] amdgpu: 2048M of VRAM memory ready
[ 11.425490] [drm] amdgpu: 3072M of GTT memory ready.
[ 11.425495] invalid opcode: 0000 [#1] SMP
[ 11.425497] CPU: 1 PID: 267 Comm: modprobe Not tainted 5.10.0-rc3 #25
[ 11.425499] Hardware name: Gigabyte Technology Co., Ltd. B450 I AORUS PRO WIFI/B450 I AORUS PRO WIFI-CF, BIOS F60c 10/29/2020
[ 11.425504] RIP: 0010:drm_mm_init+0x97/0xa0
[ 11.425507] Code: b8 00 00 00 00 00 00 00 48 89 7f 30 48 8d 7f 18 48 89 47 08 48 89 57 10 e8 06 fe ff ff 48 c7 83 f0 00 00 00 00 00 00 00 5b c3 <0f> 0b 0f 1f 80 00 00 00 00 53 ba 01 00 00 00 48 89 fb be 20 00 00
[ 11.425511] RSP: 0018:ffffa0ec8040ba00 EFLAGS: 00010246
[ 11.425513] RAX: 0000000000000000 RBX: ffff9acb914d9000 RCX: 0000000000000000
[ 11.425515] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9acb914d9068
[ 11.425517] RBP: 0000000000000004 R08: 0000000000023140 R09: ffff9acb914d9000
[ 11.425519] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[ 11.425520] R13: ffff9acb931655b8 R14: 0000000000000000 R15: 0000000000000001
[ 11.425523] FS: 00007f524f5cc740(0000) GS:ffff9accb9040000(0000) knlGS:0000000000000000
[ 11.425525] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 11.425527] CR2: 00007ffcef3249a8 CR3: 000000011c5d5000 CR4: 00000000003506e0
[ 11.425528] Call Trace:
[ 11.425532] ttm_range_man_init+0x52/0x80 [ttm]
[ 11.425608] amdgpu_ttm_init.cold+0xef/0x146 [amdgpu]
[ 11.425674] gmc_v9_0_sw_init+0x331/0x530 [amdgpu]
[ 11.425744] amdgpu_device_init.cold+0x1126/0x14dd [amdgpu]
[ 11.425748] ? pci_conf1_read+0x9f/0xf0
[ 11.425751] ? pci_bus_read_config_word+0x2e/0x40
[ 11.425809] amdgpu_driver_load_kms+0x10/0x110 [amdgpu]
[ 11.425866] amdgpu_pci_probe+0x124/0x1b0 [amdgpu]
[ 11.425870] pci_device_probe+0xc8/0x140
[ 11.425873] really_probe+0xcd/0x2d0
[ 11.425875] driver_probe_device+0x4a/0xa0
[ 11.425877] device_driver_attach+0x4e/0x60
[ 11.425879] __driver_attach+0x44/0xb0
[ 11.425880] ? device_driver_attach+0x60/0x60
[ 11.425883] bus_for_each_dev+0x5c/0x90
[ 11.425885] bus_add_driver+0x16d/0x1c0
[ 11.425887] driver_register+0x67/0xb0
[ 11.425889] ? 0xffffffffc08c6000
[ 11.425891] do_one_initcall+0x34/0x130
[ 11.425894] ? _cond_resched+0x10/0x20
[ 11.425897] ? kmem_cache_alloc+0x31/0x140
[ 11.425900] do_init_module+0x52/0x350
[ 11.425902] load_module+0x205b/0x2230
[ 11.425905] ? kernel_read_file+0x200/0x250
[ 11.425908] ? __do_sys_finit_module+0x8f/0xc0
[ 11.425910] __do_sys_finit_module+0x8f/0xc0
[ 11.425913] do_syscall_64+0x2d/0x40
[ 11.425915] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 11.425917] RIP: 0033:0x7f524f708149
[ 11.425919] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 17 ed 0c 00 f7 d8 64 89 01 48
[ 11.425923] RSP: 002b:00007ffcef327a68 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 11.425926] RAX: ffffffffffffffda RBX: 0000000002013e90 RCX: 00007f524f708149
[ 11.425927] RDX: 0000000000000000 RSI: 00000000020147f0 RDI: 0000000000000009
[ 11.425929] RBP: 0000000000040000 R08: 0000000000000000 R09: 0000000000000000
[ 11.425931] R10: 0000000000000009 R11: 0000000000000246 R12: 00000000020147f0
[ 11.425932] R13: 0000000000000000 R14: 00000000020140b0 R15: 0000000002013e90
[ 11.425935] Modules linked in: amdgpu(+) mfd_core gpu_sched ttm
[ 11.425939] ---[ end trace 6722c2022028917f ]---
[ 11.624052] RIP: 0010:drm_mm_init+0x97/0xa0
[ 11.624057] Code: b8 00 00 00 00 00 00 00 48 89 7f 30 48 8d 7f 18 48 89 47 08 48 89 57 10 e8 06 fe ff ff 48 c7 83 f0 00 00 00 00 00 00 00 5b c3 <0f> 0b 0f 1f 80 00 00 00 00 53 ba 01 00 00 00 48 89 fb be 20 00 00
[ 11.624061] RSP: 0018:ffffa0ec8040ba00 EFLAGS: 00010246
[ 11.624064] RAX: 0000000000000000 RBX: ffff9acb914d9000 RCX: 0000000000000000
[ 11.624065] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9acb914d9068
[ 11.624067] RBP: 0000000000000004 R08: 0000000000023140 R09: ffff9acb914d9000
[ 11.624069] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[ 11.624070] R13: ffff9acb931655b8 R14: 0000000000000000 R15: 0000000000000001
[ 11.624072] FS: 00007f524f5cc740(0000) GS:ffff9accb9040000(0000) knlGS:0000000000000000
[ 11.624074] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 11.624076] CR2: 00007ffcef3249a8 CR3: 000000011c5d5000 CR4: 00000000003506e0