@@ -314,28 +314,34 @@ impl File {
314314 file_id,
315315 id
316316 ) ;
317- let ualloc = Arc :: pin_init ( Mutex :: new ( alloc:: DefaultAllocator :: new (
318- device,
319- & vm,
320- VM_DRV_GPU_START ..VM_DRV_GPU_END ,
321- buffer:: PAGE_SIZE ,
322- mmu:: PROT_GPU_SHARED_RW ,
323- 512 * 1024 ,
324- true ,
325- fmt ! ( "File {} VM {} GPU Shared" , file_id, id) ,
326- false ,
327- ) ?) ) ?;
328- let ualloc_priv = Arc :: pin_init ( Mutex :: new ( alloc:: DefaultAllocator :: new (
329- device,
330- & vm,
331- VM_DRV_GPUFW_START ..VM_DRV_GPUFW_END ,
332- buffer:: PAGE_SIZE ,
333- mmu:: PROT_GPU_FW_PRIV_RW ,
334- 64 * 1024 ,
335- true ,
336- fmt ! ( "File {} VM {} GPU FW Private" , file_id, id) ,
337- false ,
338- ) ?) ) ?;
317+ let ualloc = Arc :: pin_init (
318+ Mutex :: new ( alloc:: DefaultAllocator :: new (
319+ device,
320+ & vm,
321+ VM_DRV_GPU_START ..VM_DRV_GPU_END ,
322+ buffer:: PAGE_SIZE ,
323+ mmu:: PROT_GPU_SHARED_RW ,
324+ 512 * 1024 ,
325+ true ,
326+ fmt ! ( "File {} VM {} GPU Shared" , file_id, id) ,
327+ false ,
328+ ) ?) ,
329+ GFP_KERNEL ,
330+ ) ?;
331+ let ualloc_priv = Arc :: pin_init (
332+ Mutex :: new ( alloc:: DefaultAllocator :: new (
333+ device,
334+ & vm,
335+ VM_DRV_GPUFW_START ..VM_DRV_GPUFW_END ,
336+ buffer:: PAGE_SIZE ,
337+ mmu:: PROT_GPU_FW_PRIV_RW ,
338+ 64 * 1024 ,
339+ true ,
340+ fmt ! ( "File {} VM {} GPU FW Private" , file_id, id) ,
341+ false ,
342+ ) ?) ,
343+ GFP_KERNEL ,
344+ ) ?;
339345
340346 mod_dev_dbg ! (
341347 device,
0 commit comments