drm/amdkfd: fix boot failure when iommu is disabled in Picasso.
authorYifan Zhang <yifan1.zhang@amd.com>
Mon, 11 Oct 2021 12:37:01 +0000 (20:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Nov 2021 13:13:30 +0000 (14:13 +0100)
commitf17dca0ab3f38b19c0f1b935f417f62d4a528723
tree206b7c9efac7807de4f2dc502894ee96289e2646
parentf5e3b7f0f0b78514d68c44e7909ff2547c51bbb7
drm/amdkfd: fix boot failure when iommu is disabled in Picasso.

commit afd18180c07026f94a80ff024acef5f4159084a4 upstream.

When IOMMU disabled in sbios and kfd in iommuv2 path, iommuv2
init will fail. But this failure should not block amdgpu driver init.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c