]> git.baikalelectronics.ru Git - kernel.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)
commit5d49a436b4a390e9809b55c095eb07245033b2e6
tree1901efb81cec5087aeda5ce03766319c7f5898c2
parentcc5531efbe88d241a63a001998edf6e3ea8483ca
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