Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 35 lines 856 B view raw
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright(c) 2025, Intel Corporation. All rights reserved. 4 */ 5 6#ifndef _XE_MERT_H_ 7#define _XE_MERT_H_ 8 9#include <linux/completion.h> 10#include <linux/spinlock.h> 11#include <linux/types.h> 12 13struct xe_device; 14 15/** 16 * struct xe_mert - MERT related data 17 */ 18struct xe_mert { 19 /** @lock: protects the TLB invalidation status */ 20 spinlock_t lock; 21 /** @tlb_inv_triggered: indicates if TLB invalidation was triggered */ 22 bool tlb_inv_triggered; 23 /** @tlb_inv_done: completion of TLB invalidation */ 24 struct completion tlb_inv_done; 25}; 26 27#ifdef CONFIG_PCI_IOV 28void xe_mert_init_early(struct xe_device *xe); 29int xe_mert_invalidate_lmtt(struct xe_device *xe); 30void xe_mert_irq_handler(struct xe_device *xe, u32 master_ctl); 31#else 32static inline void xe_mert_irq_handler(struct xe_device *xe, u32 master_ctl) { } 33#endif 34 35#endif