Skip to content

Commit 56b522f

Browse files
yifancomgregkh
authored andcommitted
drm/amdgpu: init iommu after amdkfd device init
[ Upstream commit 286826d ] This patch is to fix clinfo failure in Raven/Picasso: Number of platforms: 1 Platform Profile: FULL_PROFILE Platform Version: OpenCL 2.2 AMD-APP (3364.0) Platform Name: AMD Accelerated Parallel Processing Platform Vendor: Advanced Micro Devices, Inc. Platform Extensions: cl_khr_icd cl_amd_event_callback Platform Name: AMD Accelerated Parallel Processing Number of devices: 0 Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: James Zhu <[email protected]> Tested-by: James Zhu <[email protected]> Acked-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 572ee50 commit 56b522f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2487,10 +2487,6 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
24872487
if (r)
24882488
goto init_failed;
24892489

2490-
r = amdgpu_amdkfd_resume_iommu(adev);
2491-
if (r)
2492-
goto init_failed;
2493-
24942490
r = amdgpu_device_ip_hw_init_phase1(adev);
24952491
if (r)
24962492
goto init_failed;
@@ -2529,6 +2525,10 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
25292525
if (!adev->gmc.xgmi.pending_reset)
25302526
amdgpu_amdkfd_device_init(adev);
25312527

2528+
r = amdgpu_amdkfd_resume_iommu(adev);
2529+
if (r)
2530+
goto init_failed;
2531+
25322532
amdgpu_fru_get_product_info(adev);
25332533

25342534
init_failed:

0 commit comments

Comments
 (0)