drm/msm: Handle fence rollover
authorRob Clark <robdclark@chromium.org>
Tue, 9 Nov 2021 18:11:04 +0000 (10:11 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 28 Nov 2021 17:56:47 +0000 (09:56 -0800)
commit5f3aee4ceb5b8607e9a4b752c2547667200e19e2
tree934beb2681895656580507bbd893c791ac8b3c8d
parentc28e2f2b417ed747bfbc5f900c87f3ec9cc6b25e
drm/msm: Handle fence rollover

Add some helpers for fence comparision, which handle rollover properly,
and stop open coding fence seqno comparisions.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Akhil P Oommen <akhilpo@codeaurora.org>
Link: https://lore.kernel.org/r/20211109181117.591148-5-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_fence.h
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h