]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:16 +0000 (09:48 +0100)
commit6c816938d51d6c9df8384f5c1b63575d73fa514a
tree1fe40566a9d9cea2b3808777487b8ba0810f5c8a
parent3969c9531cc18729cb41e12a5186cdbd5e804da7
drm/amdkfd: fix resume error when iommu disabled in Picasso

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 6f4b590aae217da16cfa44039a2abcfb209137ab ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c