FILE
xe_guc_submit.h
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/xe/xe_guc_submit.h
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2022 Intel Corporation 4 */ 5 6#ifndef _XE_GUC_SUBMIT_H_ 7#define _XE_GUC_SUBMIT_H_ 8 9#include <linux/types.h> 10 11struct drm_printer; 12struct xe_exec_queue; 13struct xe_guc; 14 15int xe_guc_submit_init(struct xe_guc *guc, unsigned int num_ids); 16int xe_guc_submit_enable(struct xe_guc *guc); 17void xe_guc_submit_disable(struct xe_guc *guc); 18 19int xe_guc_submit_reset_prepare(struct xe_guc *guc); 20void xe_guc_submit_reset_wait(struct xe_guc *guc); 21void xe_guc_submit_stop(struct xe_guc *guc); 22int xe_guc_submit_start(struct xe_guc *guc); 23void xe_guc_submit_pause(struct xe_guc *guc); 24void xe_guc_submit_unpause(struct xe_guc *guc); 25void xe_guc_submit_unpause_prepare(struct xe_guc *guc); 26void xe_guc_submit_pause_abort(struct xe_guc *guc); 27void xe_guc_submit_wedge(struct xe_guc *guc); 28 29int xe_guc_read_stopped(struct xe_guc *guc); 30int xe_guc_sched_done_handler(struct xe_guc *guc, u32 *msg, u32 len); 31int xe_guc_deregister_done_handler(struct xe_guc *guc, u32 *msg, u32 len); 32int xe_guc_exec_queue_reset_handler(struct xe_guc *guc, u32 *msg, u32 len); 33int xe_guc_exec_queue_memory_cat_error_handler(struct xe_guc *guc, u32 *msg, 34 u32 len); 35int xe_guc_exec_queue_reset_failure_handler(struct xe_guc *guc, u32 *msg, u32 len); 36int xe_guc_error_capture_handler(struct xe_guc *guc, u32 *msg, u32 len); 37 38struct xe_guc_submit_exec_queue_snapshot * 39xe_guc_exec_queue_snapshot_capture(struct xe_exec_queue *q); 40void 41xe_guc_exec_queue_snapshot_capture_delayed(struct xe_guc_submit_exec_queue_snapshot *snapshot); 42void 43xe_guc_exec_queue_snapshot_print(struct xe_guc_submit_exec_queue_snapshot *snapshot, 44 struct drm_printer *p); 45void 46xe_guc_exec_queue_snapshot_free(struct xe_guc_submit_exec_queue_snapshot *snapshot); 47void xe_guc_submit_print(struct xe_guc *guc, struct drm_printer *p); 48void xe_guc_register_vf_exec_queue(struct xe_exec_queue *q, int ctx_type); 49 50int xe_guc_contexts_hwsp_rebase(struct xe_guc *guc, void *scratch); 51 52#endif
~/
Read-only file preview.