drm/msm: Add MSM_SUBMIT_FENCE_SN_IN
authorRob Clark <robdclark@chromium.org>
Thu, 24 Feb 2022 22:23:21 +0000 (14:23 -0800)
committerRob Clark <robdclark@chromium.org>
Sat, 5 Mar 2022 06:49:52 +0000 (22:49 -0800)
commit17154addc5c1a175bcf3441ff0d9598efa1f05cd
treee4b4c3afed270e9734cc2f5930d470240cd0c852
parent5f9ffe89803387078c3b253970795fa7ed447f18
drm/msm: Add MSM_SUBMIT_FENCE_SN_IN

Add a way for userspace to specify the sequence number fence used to
track completion of the submit.  As the seqno fence is simply an
incrementing counter which is local to the submitqueue, it is easy for
userspace to know the next value.

This is useful for native userspace drivers in a vm guest, as the guest
to host roundtrip can have high latency.  Assigning the fence seqno in
the guest userspace allows the guest to continue without waiting for
response from the host.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220224222321.60653-1-robdclark@gmail.com
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_gem_submit.c
include/uapi/drm/msm_drm.h