drm/vc4: crtc: Reduce PV fifo threshold on hvs4
authorDom Cobley <popcornmix@gmail.com>
Thu, 18 Mar 2021 16:13:28 +0000 (17:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:42:12 +0000 (08:42 +0200)
commit9998522074640d2d35fc40211630735c9cfdae1a
tree13b53215901d629de277a25f277dc52d570098d7
parentd8a0861e269d583f6420bed104866d2dc69c2711
drm/vc4: crtc: Reduce PV fifo threshold on hvs4

[ Upstream commit eb9dfdd1ed40357b99a4201c8534c58c562e48c9 ]

Experimentally have found PV on hvs4 reports fifo full
error with expected settings and does not with one less

This appears as:
[drm:drm_atomic_helper_wait_for_flip_done] *ERROR* [CRTC:82:crtc-3] flip_done timed out

with bit 10 of PV_STAT set "HVS driving pixels when the PV FIFO is full"

Fixes: c8b75bca92cb ("drm/vc4: Add KMS support for Raspberry Pi.")
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210318161328.1471556-3-maxime@cerno.tech
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_crtc.c