mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
Only the GuC should be issuing TLB invalidations if it is enabled. Part of this patch is sanitize the device on driver unload to ensure we do not send GuC based TLB invalidations during driver unload. 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>
27 lines
737 B
C
27 lines
737 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_TLB_INVALIDATION_H_
|
|
#define _XE_GT_TLB_INVALIDATION_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "xe_gt_tlb_invalidation_types.h"
|
|
|
|
struct xe_gt;
|
|
struct xe_guc;
|
|
struct xe_vma;
|
|
|
|
int xe_gt_tlb_invalidation_init(struct xe_gt *gt);
|
|
void xe_gt_tlb_invalidation_reset(struct xe_gt *gt);
|
|
int xe_gt_tlb_invalidation_guc(struct xe_gt *gt);
|
|
int xe_gt_tlb_invalidation_vma(struct xe_gt *gt,
|
|
struct xe_gt_tlb_invalidation_fence *fence,
|
|
struct xe_vma *vma);
|
|
int xe_gt_tlb_invalidation_wait(struct xe_gt *gt, int seqno);
|
|
int xe_guc_tlb_invalidation_done_handler(struct xe_guc *guc, u32 *msg, u32 len);
|
|
|
|
#endif /* _XE_GT_TLB_INVALIDATION_ */
|