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>
Showing
- drivers/gpu/drm/amd/amdkfd/kfd_iommu.c 12 additions, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_iommu.c
- drivers/gpu/drm/amd/amdkfd/kfd_priv.h 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_priv.h
- drivers/gpu/drm/amd/amdkfd/kfd_topology.c 16 additions, 5 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_topology.c
Please register or sign in to comment