mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
38224c00d9
Endless fences are not good, add a TDR to cleanup any invalidation fences which have not received an invalidation message within a timeout period. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
28 lines
715 B
C
28 lines
715 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_TLB_INVALIDATION_TYPES_H_
|
|
#define _XE_GT_TLB_INVALIDATION_TYPES_H_
|
|
|
|
#include <linux/dma-fence.h>
|
|
|
|
/**
|
|
* struct xe_gt_tlb_invalidation_fence - XE GT TLB invalidation fence
|
|
*
|
|
* Optionally passed to xe_gt_tlb_invalidation and will be signaled upon TLB
|
|
* invalidation completion.
|
|
*/
|
|
struct xe_gt_tlb_invalidation_fence {
|
|
/** @base: dma fence base */
|
|
struct dma_fence base;
|
|
/** @link: link into list of pending tlb fences */
|
|
struct list_head link;
|
|
/** @seqno: seqno of TLB invalidation to signal fence one */
|
|
int seqno;
|
|
/** @invalidation_time: time of TLB invalidation */
|
|
ktime_t invalidation_time;
|
|
};
|
|
|
|
#endif
|