[PATCH 1/2] drm/amdkfd: remove redundant iommu cleanup code

Zhu, James James.Zhu at amd.com
Thu Sep 30 21:18:44 UTC 2021


[AMD Official Use Only]


Reviewed-by: James Zhu <James.Zhu at amd.com> for the series



James Zhu

________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Yifan Zhang <yifan1.zhang at amd.com>
Sent: Tuesday, September 28, 2021 4:28 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Kuehling, Felix <Felix.Kuehling at amd.com>; Zhang, Yifan <Yifan1.Zhang at amd.com>
Subject: [PATCH 1/2] 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 at amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index c2a4d920da40..4a416231b24c 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -1085,18 +1085,12 @@ static int kfd_resume(struct kfd_dev *kfd)
         int err = 0;

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

         return err;
-
-dqm_start_error:
-       kfd_iommu_suspend(kfd);
-       return err;
 }

 static inline void kfd_queue_work(struct workqueue_struct *wq,
--
2.25.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210930/2571bcb9/attachment-0001.htm>


More information about the amd-gfx mailing list