]> 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)
commit4861155cdb8e3f712e5e2dc7d084ba9153909c46
tree1901efb81cec5087aeda5ce03766319c7f5898c2
parent9d168b0bd6dc4ad87473fd5fe87559d0eee1064b
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