1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef _XE_GT_TLB_INVALIDATION_TYPES_H_ 7 #define _XE_GT_TLB_INVALIDATION_TYPES_H_ 8 9 #include <linux/dma-fence.h> 10 11 /** 12 * struct xe_gt_tlb_invalidation_fence - XE GT TLB invalidation fence 13 * 14 * Optionally passed to xe_gt_tlb_invalidation and will be signaled upon TLB 15 * invalidation completion. 16 */ 17 struct xe_gt_tlb_invalidation_fence { 18 /** @base: dma fence base */ 19 struct dma_fence base; 20 /** @link: link into list of pending tlb fences */ 21 struct list_head link; 22 /** @seqno: seqno of TLB invalidation to signal fence one */ 23 int seqno; 24 /** @invalidation_time: time of TLB invalidation */ 25 ktime_t invalidation_time; 26 }; 27 28 #endif 29