drm/msm: Fix fence rollover issue
authorRob Clark <robdclark@chromium.org>
Wed, 15 Jun 2022 16:24:35 +0000 (09:24 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 5 Jul 2022 03:01:11 +0000 (06:01 +0300)
commit2311720a0182756f175fbf4afc1fb76ac487b587
tree1e0e1b367649c75cf59f73a71efb8136e64535bf
parent4400c3a1d48f7f7863ca65d24f99ad295b37726c
drm/msm: Fix fence rollover issue

And while we are at it, let's start the fence counter close to the
rollover point so that if issues slip in, they are more obvious.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Fixes: fde5de6cb461 ("drm/msm: move fence code to it's own file")
Fixes: 5f3aee4ceb5b ("drm/msm: Handle fence rollover")
Patchwork: https://patchwork.freedesktop.org/patch/489619/
Link: https://lore.kernel.org/r/20220615162435.3011793-1-robdclark@gmail.com
[DB: fixed the conflict while applying the patch]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/msm_fence.c