[PATCH v4 08/14] accel/thames: Add IOCTLs for job creation and submission
Gyeyoung Baek
gye976 at gmail.com
Wed Dec 2 06:30:23 PST 2026
Hi Tomeu,
On Sun, Nov 29, 2026 at 8:37 PM Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
> +/**
> + * struct drm_thames_job_submit - Arguments passed to DRM_IOCTL_THAMES_JOB_SUBMIT
> + *
> + * A submission is an ordered array of Jobs, so a sequence of Dispatches is
> + * one call. The Jobs a client submits run in the order it submits them,
> + * across calls, and a Job submitted again while an earlier submission of
> + * it is in flight runs after that one. Jobs of different clients have no
> + * order between them.
IIUC, as all jobs of a client run in submission order, even across
calls, its independent jobs can't run concurrently on the two C7x cores
of the J722S: each one still waits for the job submitted before it. Is
this intended?
I sent a patch for rocket that runs such jobs in parallel. It takes the
dependencies from the BOs each job reads and writes, and runs the
independent branches of models such as inception on different cores:
https://lore.kernel.org/dri-devel/20261202100555.3122236-1-gye976@gmail.com/
If it isn't intended, how about giving each job a list of syncs to wait
on (like panthor's queue submit), and ordering the jobs by those
dependencies instead of by submission order?
--
Thanks,
Gyeyoung
More information about the linux-arm-kernel
mailing list