drm/msm: Ratelimit invalid-fence message
authorRob Clark <robdclark@chromium.org>
Wed, 17 Mar 2021 16:40:38 +0000 (09:40 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 17 Mar 2021 21:19:19 +0000 (14:19 -0700)
commit7ad48d27a2846bfda29214fb454d001c3e02b9e7
tree1c2864321a579c2c0c97018d68d133db8a781fd0
parent4a9d36b0610aa7034340e976652e5b43320dd7c5
drm/msm: Ratelimit invalid-fence message

We have seen a couple cases where low memory situations cause something
bad to happen, followed by a flood of these messages obscuring the root
cause.  Lets ratelimit the dmesg spam so that next time it happens we
don't lose the kernel traces leading up to this.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
drivers/gpu/drm/msm/msm_fence.c