]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14ad582ff31c88d3ddd5b63fb12aa851185ba67a
treee4b4c3afed270e9734cc2f5930d470240cd0c852
parentdf46d160ec122ebb41b5fdf4238222e7d469a631
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