diff options
author | Maíra Canal <mcanal@igalia.com> | 2023-11-30 13:40:37 -0300 |
---|---|---|
committer | Maíra Canal <mcanal@igalia.com> | 2023-12-01 09:42:47 -0300 |
commit | 34a101e64296c736b14ce27e647fcebd70cb7bf8 (patch) | |
tree | 23c9fe3f9926e6e8ee8490f9590358ff1b903485 /drivers/gpu/drm/v3d/v3d_drv.h | |
parent | 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f (diff) | |
download | linux-34a101e64296c736b14ce27e647fcebd70cb7bf8.tar.gz linux-34a101e64296c736b14ce27e647fcebd70cb7bf8.tar.bz2 linux-34a101e64296c736b14ce27e647fcebd70cb7bf8.zip |
drm/v3d: Create a CPU job extension for the reset timestamp job
A CPU job is a type of job that performs operations that requires CPU
intervention. A reset timestamp job is a job that resets the timestamp
queries based on the value offset of the first query. As V3D doesn't
provide any mechanism to obtain a timestamp from the GPU, it is a job
that needs CPU intervention.
So, create a user extension for the CPU job that enables the creation
of a reset timestamp job. This user extension will allow the creation of
a CPU job that resets the timestamp value in the timestamp BO and resets
the availability syncobj.
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231130164420.932823-16-mcanal@igalia.com
Diffstat (limited to 'drivers/gpu/drm/v3d/v3d_drv.h')
-rw-r--r-- | drivers/gpu/drm/v3d/v3d_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/v3d/v3d_drv.h b/drivers/gpu/drm/v3d/v3d_drv.h index dd86e745c260..3988407635ed 100644 --- a/drivers/gpu/drm/v3d/v3d_drv.h +++ b/drivers/gpu/drm/v3d/v3d_drv.h @@ -319,6 +319,7 @@ struct v3d_csd_job { enum v3d_cpu_job_type { V3D_CPU_JOB_TYPE_INDIRECT_CSD = 1, V3D_CPU_JOB_TYPE_TIMESTAMP_QUERY, + V3D_CPU_JOB_TYPE_RESET_TIMESTAMP_QUERY, }; struct v3d_timestamp_query { |