Skip to content

Commit 8066008

Browse files
jameszhu-amdalexdeucher
authored andcommitted
drm/amdgpu: add amdgpu_amdkfd_resume_iommu
Add amdgpu_amdkfd_resume_iommu for amdgpu. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=211277 Signed-off-by: James Zhu <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent fefc01f commit 8066008

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,16 @@ void amdgpu_amdkfd_suspend(struct amdgpu_device *adev, bool run_pm)
192192
kgd2kfd_suspend(adev->kfd.dev, run_pm);
193193
}
194194

195+
int amdgpu_amdkfd_resume_iommu(struct amdgpu_device *adev)
196+
{
197+
int r = 0;
198+
199+
if (adev->kfd.dev)
200+
r = kgd2kfd_resume_iommu(adev->kfd.dev);
201+
202+
return r;
203+
}
204+
195205
int amdgpu_amdkfd_resume(struct amdgpu_device *adev, bool run_pm)
196206
{
197207
int r = 0;

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ int amdgpu_amdkfd_init(void);
137137
void amdgpu_amdkfd_fini(void);
138138

139139
void amdgpu_amdkfd_suspend(struct amdgpu_device *adev, bool run_pm);
140+
int amdgpu_amdkfd_resume_iommu(struct amdgpu_device *adev);
140141
int amdgpu_amdkfd_resume(struct amdgpu_device *adev, bool run_pm);
141142
void amdgpu_amdkfd_interrupt(struct amdgpu_device *adev,
142143
const void *ih_ring_entry);

0 commit comments

Comments
 (0)