Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdkfd: remove redundant iommu cleanup code

kfd_resume doesn't involve iommu operation, remove
redundant iommu cleanup code.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Tested-by: James Zhu <James.Zhu@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yifan Zhang and committed by
Alex Deucher
499f4d38 c2c15410

+1 -7
+1 -7
drivers/gpu/drm/amd/amdkfd/kfd_device.c
··· 1190 1190 int err = 0; 1191 1191 1192 1192 err = kfd->dqm->ops.start(kfd->dqm); 1193 - if (err) { 1193 + if (err) 1194 1194 dev_err(kfd_device, 1195 1195 "Error starting queue manager for device %x:%x\n", 1196 1196 kfd->pdev->vendor, kfd->pdev->device); 1197 - goto dqm_start_error; 1198 - } 1199 1197 1200 - return err; 1201 - 1202 - dqm_start_error: 1203 - kfd_iommu_suspend(kfd); 1204 1198 return err; 1205 1199 } 1206 1200