@@ -622,7 +622,7 @@ int amdgpu_vm_validate(struct amdgpu_device *adev, struct amdgpu_vm *vm,
622
622
623
623
pr_warn_ratelimited ("Evicted user BO is not reserved\n" );
624
624
if (ti ) {
625
- pr_warn_ratelimited ("pid %d\n" , ti -> pid );
625
+ pr_warn_ratelimited ("pid %d\n" , ti -> task . pid );
626
626
amdgpu_vm_put_task_info (ti );
627
627
}
628
628
@@ -2508,11 +2508,11 @@ void amdgpu_vm_set_task_info(struct amdgpu_vm *vm)
2508
2508
if (!vm -> task_info )
2509
2509
return ;
2510
2510
2511
- if (vm -> task_info -> pid == current -> pid )
2511
+ if (vm -> task_info -> task . pid == current -> pid )
2512
2512
return ;
2513
2513
2514
- vm -> task_info -> pid = current -> pid ;
2515
- get_task_comm (vm -> task_info -> task_name , current );
2514
+ vm -> task_info -> task . pid = current -> pid ;
2515
+ get_task_comm (vm -> task_info -> task . comm , current );
2516
2516
2517
2517
if (current -> group_leader -> mm != current -> mm )
2518
2518
return ;
@@ -2775,7 +2775,7 @@ void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm)
2775
2775
2776
2776
dev_warn (adev -> dev ,
2777
2777
"VM memory stats for proc %s(%d) task %s(%d) is non-zero when fini\n" ,
2778
- ti -> process_name , ti -> pid , ti -> task_name , ti -> tgid );
2778
+ ti -> process_name , ti -> task . pid , ti -> task . comm , ti -> tgid );
2779
2779
}
2780
2780
2781
2781
amdgpu_vm_put_task_info (vm -> task_info );
@@ -3164,5 +3164,5 @@ void amdgpu_vm_print_task_info(struct amdgpu_device *adev,
3164
3164
dev_err (adev -> dev ,
3165
3165
" Process %s pid %d thread %s pid %d\n" ,
3166
3166
task_info -> process_name , task_info -> tgid ,
3167
- task_info -> task_name , task_info -> pid );
3167
+ task_info -> task . comm , task_info -> task . pid );
3168
3168
}
0 commit comments