]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/v3d: Create a CPU job extension for the timestamp query job
authorMaíra Canal <mcanal@igalia.com>
Thu, 30 Nov 2023 16:40:36 +0000 (13:40 -0300)
committerMaíra Canal <mcanal@igalia.com>
Fri, 1 Dec 2023 12:41:37 +0000 (09:41 -0300)
commit9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f
tree15c0411c841c2d7a0d82f508e8c3177599d3ddda
parent18b8413b25b7070fa2e55858a2c808e6909581d0
drm/v3d: Create a CPU job extension for the timestamp query job

A CPU job is a type of job that performs operations that requires CPU
intervention. A timestamp query job is a job that calculates the
query timestamp and updates the query availability by signaling a
syncobj. 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 timestamp query job. This user extension will allow the creation of
a CPU job that performs the timestamp query calculation and updates the
timestamp BO with the proper value.

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-15-mcanal@igalia.com
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_sched.c
drivers/gpu/drm/v3d/v3d_submit.c
include/uapi/drm/v3d_drm.h