]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Don't resume IOMMU after incomplete init
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 14 Mar 2023 00:03:08 +0000 (20:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:01 +0000 (13:34 +0100)
commit68c808a3c5cf11cfb4bf49c2f947edabd3918881
tree000e06202314d9fba958ef8cbde91641cabb70bd
parent30e2356bc218f04b28991d9973dc5e801c148158
drm/amdgpu: Don't resume IOMMU after incomplete init

commit b4ace06197b68ed82f630d78f4c4cc164e8b532f upstream.

Check kfd->init_complete in kgd2kfd_iommu_resume, consistent with other
kgd2kfd calls. This should fix IOMMU errors on resume from suspend when
KFD IOMMU initialization failed.

Reported-by: Matt Fagnani <matt.fagnani@bell.net>
Link: https://lore.kernel.org/r/4a3b225c-2ffd-e758-4de1-447375e34cad@bell.net/
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217170
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2454
Cc: Vasant Hegde <vasant.hegde@amd.com>
Cc: Linux regression tracking (Thorsten Leemhuis) <regressions@leemhuis.info>
Cc: stable@vger.kernel.org
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Matt Fagnani <matt.fagnani@bell.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdkfd/kfd_device.c