]> 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)
commit509063734d0f7d9415412236115efab4daca5bb6
treee4b4c3afed270e9734cc2f5930d470240cd0c852
parentf55e86317ca63c5f84b1792e8353662ac8e5a66d
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