drm/xe: fix xe_ttm_stolen_mgr_init on DG2
[ 409.101094] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 409.108099] #PF: supervisor read access in kernel mode [ 409.113264] #PF: error_code(0x0000) - not-present page [ 409.118429] PGD 0 P4D 0 [ 409.120976] Oops: 0000 [#1 (closed)] PREEMPT SMP PTI [ 409.125181] CPU: 29 PID: 3912 Comm: modprobe Not tainted 6.1.0-rc1-0901+ #1 (closed) [ 409.132184] Hardware name: HPE ProLiant DL380 Gen10/ProLiant DL380 Gen10, BIOS U30 07/14/2022 [ 409.140757] RIP: 0010:xe_force_wake_get+0x1d/0x240 [xe] [ 409.146028] Code: cc cc cc cc 66 0f 1f 84 00 00 00 00 00 41 57 41 56 49 89 fe 41 55 41 54 55 53 89 f3 31 f6 48 83 ec 38 4c 8b 27 48 89 7c 24 28 <49> 8b 04 24 48 89 44 24 30 48 8d 47 08 48 89 c7 48 89 44 24 18 e8 [ 409.164909] RSP: 0018:ffffc900070bbb58 EFLAGS: 00010292 [ 409.170162] RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff82a995b0 [ 409.177335] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881b81e2140 [ 409.184509] RBP: 0000000000000000 R08: ffff8881ae11dc00 R09: ffffffff82a995c7 [ 409.191682] R10: ffff88af9987d001 R11: ffff8881b81e0040 R12: 0000000000000000 [ 409.198856] R13: ffff8881b81e2108 R14: ffff8881b81e2140 R15: ffffffffa0165f5b [ 409.206031] FS: 00007f5bc3243540(0000) GS:ffff88afaf740000(0000) knlGS:0000000000000000 [ 409.214168] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.219945] CR2: 0000000000000000 CR3: 000000019c6c4005 CR4: 00000000007706e0 [ 409.227120] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 409.234295] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 409.241469] PKRU: 55555554 [ 409.244187] Call Trace: [ 409.246644] [ 409.248753] ? add_dr+0x7e/0x90 [ 409.251914] xe_mmio_total_vram_size+0x87/0xd0 [xe] [ 409.256836] xe_ttm_stolen_mgr_init+0x223/0x3d0 [xe] [ 409.261844] xe_device_probe+0xf4/0x240 [xe] [ 409.266149] xe_pci_probe+0x419/0x530 [xe] [ 409.270281] pci_device_probe+0xa2/0x150 [ 409.274227] really_probe+0xd9/0x390
Signed-off-by: Philippe Lecluse philippe.lecluse@intel.com