]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: fix resume error when iommu disabled in Picasso
authorYifan Zhang <yifan1.zhang@amd.com>
Mon, 11 Oct 2021 12:42:31 +0000 (20:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Oct 2021 18:16:02 +0000 (14:16 -0400)
commitc168a4201022d53661092b112aecf5c5d468e874
tree8fe0ef1ce441c803a72979e2387f505a07b5ad52
parentd2ad70638adf9127a4b0375427ec0c6be401b528
drm/amdkfd: fix resume error when iommu disabled in Picasso

When IOMMU disabled in sbios and kfd in iommuv2 path,
IOMMU resume failure blocks system resume. Don't allow kfd to
use iommu v2 when iommu is disabled.

Reported-by: youling <youling257@gmail.com>
Tested-by: youling <youling257@gmail.com>
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c