]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs
authorYong Zhao <Yong.Zhao@amd.com>
Thu, 13 Sep 2018 01:42:20 +0000 (21:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Sep 2018 15:25:23 +0000 (10:25 -0500)
commit44d8cc6f1a905e4bb1d4221a898abb0d7e9d100a
tree1901efb81cec5087aeda5ce03766319c7f5898c2
parent15426dbb65c5b37680d27e84d58a1ed3b8532518
drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs

Because CRAT_CU_FLAGS_IOMMU_PRESENT was not set in some BIOS crat, we
need to workaround this.

For future compatibility, we also overwrite the bit in capability according
to the value of needs_iommu_device.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c