Skip to content

Commit edcfe22

Browse files
hkasivisalexdeucher
authored andcommitted
drm/amdkfd: Insert missing TLB flush on GFX10 and later
Heavy-weight TLB flush is required after unmap on all GPUs for correctness and security. Signed-off-by: Harish Kasiviswanathan <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 2931937 commit edcfe22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,8 +1466,7 @@ void kfd_flush_tlb(struct kfd_process_device *pdd, enum TLB_FLUSH_TYPE type);
14661466

14671467
static inline bool kfd_flush_tlb_after_unmap(struct kfd_dev *dev)
14681468
{
1469-
return KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 3) ||
1470-
KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) ||
1469+
return KFD_GC_VERSION(dev) > IP_VERSION(9, 4, 2) ||
14711470
(KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && dev->sdma_fw_version >= 18) ||
14721471
KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 0);
14731472
}

0 commit comments

Comments
 (0)