Skip to content

Commit 0dd10a9

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdkfd: remove redundant iommu cleanup code
kfd_resume doesn't involve iommu operation, remove redundant iommu cleanup code. 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]>
1 parent 4702b34 commit 0dd10a9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_device.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,18 +1085,12 @@ static int kfd_resume(struct kfd_dev *kfd)
10851085
int err = 0;
10861086

10871087
err = kfd->dqm->ops.start(kfd->dqm);
1088-
if (err) {
1088+
if (err)
10891089
dev_err(kfd_device,
10901090
"Error starting queue manager for device %x:%x\n",
10911091
kfd->pdev->vendor, kfd->pdev->device);
1092-
goto dqm_start_error;
1093-
}
10941092

10951093
return err;
1096-
1097-
dqm_start_error:
1098-
kfd_iommu_suspend(kfd);
1099-
return err;
11001094
}
11011095

11021096
static inline void kfd_queue_work(struct workqueue_struct *wq,

0 commit comments

Comments
 (0)