summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_gt_tlb_invalidation_types.h
blob: 934c828efe31cb728d7e751555e9525233f30ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* 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