Skip to content

Commit 944ba00

Browse files
hkasivisgregkh
authored andcommitted
drm/amdkfd: Insert missing TLB flush on GFX10 and later
commit edcfe22 upstream. 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] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4c5b744 commit 944ba00

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
@@ -1487,8 +1487,7 @@ void kfd_flush_tlb(struct kfd_process_device *pdd, enum TLB_FLUSH_TYPE type);
14871487

14881488
static inline bool kfd_flush_tlb_after_unmap(struct kfd_dev *dev)
14891489
{
1490-
return KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 3) ||
1491-
KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) ||
1490+
return KFD_GC_VERSION(dev) > IP_VERSION(9, 4, 2) ||
14921491
(KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && dev->sdma_fw_version >= 18) ||
14931492
KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 0);
14941493
}

0 commit comments

Comments
 (0)