]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix dirtyfb refcounting
authorRob Clark <robdclark@chromium.org>
Fri, 4 Mar 2022 20:21:45 +0000 (12:21 -0800)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Mar 2022 03:28:47 +0000 (19:28 -0800)
commit6cf1ba54d6910472a4b8a663e61bee6f9ea5556f
tree831488dfa5cafa9e8c5976e9e49d489591d4819d
parent43dc478ab231d6931cca2c10f13072508ce661a4
drm/msm: Fix dirtyfb refcounting

refcount_t complains about 0->1 transitions, which isn't *quite* what we
wanted.  So use dirtyfb==1 to mean that the fb is not connected to any
output that requires dirtyfb flushing, so that we can keep the underflow
and overflow checking.

Fixes: ec882c8d0ec6 ("drm/msm: Avoid dirtyfb stalls on video mode displays (v2)")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220304202146.845566-1-robdclark@gmail.com
drivers/gpu/drm/msm/msm_fb.c