drm/msm: Ratelimit invalid-fence message
authorRob Clark <robdclark@chromium.org>
Wed, 17 Mar 2021 16:40:38 +0000 (09:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 11:36:08 +0000 (13:36 +0200)
commit439c2c22fb8501a99229a70142aa214d830ce8cf
tree7bc1ae5355ee1ebff044f8431ea322853e3008e0
parent57e0546f01ca19b4ce5ed1cc66ae5a1b8671c198
drm/msm: Ratelimit invalid-fence message

[ Upstream commit 7ad48d27a2846bfda29214fb454d001c3e02b9e7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_fence.c