File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2394,6 +2394,10 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
2394
2394
if (r )
2395
2395
goto init_failed ;
2396
2396
2397
+ r = amdgpu_amdkfd_resume_iommu (adev );
2398
+ if (r )
2399
+ goto init_failed ;
2400
+
2397
2401
r = amdgpu_device_ip_hw_init_phase1 (adev );
2398
2402
if (r )
2399
2403
goto init_failed ;
@@ -3148,6 +3152,10 @@ static int amdgpu_device_ip_resume(struct amdgpu_device *adev)
3148
3152
{
3149
3153
int r ;
3150
3154
3155
+ r = amdgpu_amdkfd_resume_iommu (adev );
3156
+ if (r )
3157
+ return r ;
3158
+
3151
3159
r = amdgpu_device_ip_resume_phase1 (adev );
3152
3160
if (r )
3153
3161
return r ;
@@ -4601,6 +4609,10 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
4601
4609
dev_warn (tmp_adev -> dev , "asic atom init failed!" );
4602
4610
} else {
4603
4611
dev_info (tmp_adev -> dev , "GPU reset succeeded, trying to resume\n" );
4612
+ r = amdgpu_amdkfd_resume_iommu (tmp_adev );
4613
+ if (r )
4614
+ goto out ;
4615
+
4604
4616
r = amdgpu_device_ip_resume_phase1 (tmp_adev );
4605
4617
if (r )
4606
4618
goto out ;
You can’t perform that action at this time.
0 commit comments