drm/amdkfd: enable heavy-weight TLB flush on Arcturus
Subsystems (3)
PATCH 1/1 drm/amdkfd: enable heavy-weight TLB flush on Arcturus
SDMA FW fixes the hang issue for adding heavy-weight TLB flush on Arcturus, so we can enable it.
Signed-off-by Eric Huang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 8 +++++--- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +5 -3
@@ -1892,10 +1892,12 @@ int amdgpu_amdkfd_gpuvm_map_memory_to_gpu( true); ret =unreserve_bo_and_vms (&ctx, false, false); -/* Only apply no TLB flush on Aldebaran to -* workaround regressions on other Asics. +/* Only apply no TLB flush on Aldebaran and Arcturus +* to workaround regressions on other Asics. */ -if (table_freed && (adev->asic_type !=CHIP_ALDEBARAN )) +if (table_freed && + ((adev->asic_type !=CHIP_ALDEBARAN ) || + (adev->asic_type !=CHIP_ARCTURUS )) *table_freed = true; goto out;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +2 -1
@@ -1806,7 +1806,8 @@ static int kfd_ioctl_unmap_memory_from_gpu(struct file *filep, }mutex_unlock (&p->mutex); -if (KFD_GC_VERSION (dev) ==IP_VERSION (9 ,4 ,2 )) { +if (KFD_GC_VERSION (dev) ==IP_VERSION (9 ,4 ,2 ) || +KFD_GC_VERSION (dev) ==IP_VERSION (9 ,4 ,1 )) { err =amdgpu_amdkfd_gpuvm_sync_memory (dev->adev, (struct kgd_mem *) mem, true);if (err) {
Signature · 1 line
2.25.1