Skip to content

Commit 1210e2f

Browse files
erichuang22alexdeucher
authored andcommitted
drm/amdkfd: fix TLB flush after unmap for GFX9.4.2
TLB flush after unmap accidentially was removed on gfx9.4.2. It is to add it back. Signed-off-by: Eric Huang <[email protected]> Reviewed-by: Harish Kasiviswanathan <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent eed14eb commit 1210e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ static inline void kfd_flush_tlb(struct kfd_process_device *pdd,
14731473

14741474
static inline bool kfd_flush_tlb_after_unmap(struct kfd_dev *dev)
14751475
{
1476-
return KFD_GC_VERSION(dev) > IP_VERSION(9, 4, 2) ||
1476+
return KFD_GC_VERSION(dev) >= IP_VERSION(9, 4, 2) ||
14771477
(KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && dev->sdma_fw_version >= 18) ||
14781478
KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 0);
14791479
}

0 commit comments

Comments
 (0)