mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Add generic dependecy jobs / scheduler which serves as wrapper for DRM scheduler. Useful when we want delay a generic operation until a dma-fence signals. Existing use cases could be destroying of resources based fences / dma-resv, the preempt rebind worker, and pipelined GT TLB invalidations. Written in such a way it could be moved to DRM subsystem if needed. v3: - Remove unnecessary cast (Staurt) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Link: https://lore.kernel.org/r/20250724191216.4076566-3-matthew.brost@intel.com
22 lines
511 B
C
22 lines
511 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_sched_entity;
|
|
struct workqueue_struct;
|
|
struct xe_dep_scheduler;
|
|
struct xe_device;
|
|
|
|
struct xe_dep_scheduler *
|
|
xe_dep_scheduler_create(struct xe_device *xe,
|
|
struct workqueue_struct *submit_wq,
|
|
const char *name, u32 job_limit);
|
|
|
|
void xe_dep_scheduler_fini(struct xe_dep_scheduler *dep_scheduler);
|
|
|
|
struct drm_sched_entity *
|
|
xe_dep_scheduler_entity(struct xe_dep_scheduler *dep_scheduler);
|