b827c84f5e
We need to pull the drm_sched_job_init much earlier, but that's very minor surgery. v2: Actually fix up cleanup paths by calling drm_sched_job_init, which I wanted to to in the previous round (and did, for all other drivers). Spotted by Lucas. v3: Rebase over renamed functions to add dependencies. v4: Rebase over patches from Christian. v5: More rebasing over work from Christian. Acked-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Russell King <linux+etnaviv@armlinux.org.uk> Cc: Christian Gmeiner <christian.gmeiner@gmail.com> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: "Christian König" <christian.koenig@amd.com> Cc: etnaviv@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Link: https://patchwork.freedesktop.org/patch/msgid/20220331204651.2699107-2-daniel.vetter@ffwll.ch
24 lines
559 B
C
24 lines
559 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2017 Etnaviv Project
|
|
*/
|
|
|
|
#ifndef __ETNAVIV_SCHED_H__
|
|
#define __ETNAVIV_SCHED_H__
|
|
|
|
#include <drm/gpu_scheduler.h>
|
|
|
|
struct etnaviv_gpu;
|
|
|
|
static inline
|
|
struct etnaviv_gem_submit *to_etnaviv_submit(struct drm_sched_job *sched_job)
|
|
{
|
|
return container_of(sched_job, struct etnaviv_gem_submit, sched_job);
|
|
}
|
|
|
|
int etnaviv_sched_init(struct etnaviv_gpu *gpu);
|
|
void etnaviv_sched_fini(struct etnaviv_gpu *gpu);
|
|
int etnaviv_sched_push_job(struct etnaviv_gem_submit *submit);
|
|
|
|
#endif /* __ETNAVIV_SCHED_H__ */
|