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 v6.19-rc8 52 lines 1.5 kB view raw
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2022 Intel Corporation 4 */ 5#ifndef _XE_PT_H_ 6#define _XE_PT_H_ 7 8#include <linux/types.h> 9 10#include "xe_pt_types.h" 11 12struct dma_fence; 13struct drm_exec; 14struct xe_bo; 15struct xe_device; 16struct xe_exec_queue; 17struct xe_svm_range; 18struct xe_sync_entry; 19struct xe_tile; 20struct xe_vm; 21struct xe_vma; 22struct xe_vma_ops; 23 24/* Largest huge pte is currently 1GiB. May become device dependent. */ 25#define MAX_HUGEPTE_LEVEL 2 26 27#define xe_pt_write(xe, map, idx, data) \ 28 xe_map_wr(xe, map, (idx) * sizeof(u64), u64, data) 29 30unsigned int xe_pt_shift(unsigned int level); 31 32struct xe_pt *xe_pt_create(struct xe_vm *vm, struct xe_tile *tile, 33 unsigned int level, struct drm_exec *exec); 34 35void xe_pt_populate_empty(struct xe_tile *tile, struct xe_vm *vm, 36 struct xe_pt *pt); 37 38void xe_pt_destroy(struct xe_pt *pt, u32 flags, struct llist_head *deferred); 39 40void xe_pt_clear(struct xe_device *xe, struct xe_pt *pt); 41 42int xe_pt_update_ops_prepare(struct xe_tile *tile, struct xe_vma_ops *vops); 43struct dma_fence *xe_pt_update_ops_run(struct xe_tile *tile, 44 struct xe_vma_ops *vops); 45void xe_pt_update_ops_fini(struct xe_tile *tile, struct xe_vma_ops *vops); 46void xe_pt_update_ops_abort(struct xe_tile *tile, struct xe_vma_ops *vops); 47 48bool xe_pt_zap_ptes(struct xe_tile *tile, struct xe_vma *vma); 49bool xe_pt_zap_ptes_range(struct xe_tile *tile, struct xe_vm *vm, 50 struct xe_svm_range *range); 51 52#endif