diff options
author | 2022-01-21 10:39:54 -0500 | |
---|---|---|
committer | 2022-01-27 15:47:34 -0500 | |
commit | 1790b649b01ba7e44af7c08ffcfc0eaa9d4f5ac6 (patch) | |
tree | ff60a802525568f679b1328f5ab6c775224ccd42 | |
parent | drm/amdgpu: add determine passthrough under arm64 (diff) | |
download | wireguard-linux-1790b649b01ba7e44af7c08ffcfc0eaa9d4f5ac6.tar.xz wireguard-linux-1790b649b01ba7e44af7c08ffcfc0eaa9d4f5ac6.zip |
drm/amdkfd: enable heavy-weight TLB flush on Vega20
It is to meet the requirement for memory allocation
optimization on MI50.
Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 337953af7c2f..26a593b3d7dc 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -1419,7 +1419,8 @@ err_unlock: static bool kfd_flush_tlb_after_unmap(struct kfd_dev *dev) { return KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) || (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && - dev->adev->sdma.instance[0].fw_version >= 18); + dev->adev->sdma.instance[0].fw_version >= 18) || + KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 0); } static int kfd_ioctl_map_memory_to_gpu(struct file *filep, |