brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0313-drm-vc4-Don-t-wait-for-vblank-on-fkms-cursor-updates.patch
1 From dd5fa07672eb01a4d90dfa39a4c54eaa0e086386 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Mon, 5 Feb 2018 18:53:18 +0000
4 Subject: [PATCH] drm/vc4: Don't wait for vblank on fkms cursor
5 updates.
6
7 We don't use the same async update path between fkms and normal kms,
8 and the normal kms workaround ended up making us wait. This became a
9 larger problem in rpi-4.14.y, as the USB HID update rate throttling
10 got (accidentally?) dropped.
11
12 Signed-off-by: Eric Anholt <eric@anholt.net>
13 ---
14 drivers/gpu/drm/vc4/vc4_kms.c | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
16
17 --- a/drivers/gpu/drm/vc4/vc4_kms.c
18 +++ b/drivers/gpu/drm/vc4/vc4_kms.c
19 @@ -222,7 +222,8 @@ static int vc4_atomic_commit(struct drm_
20 * drm_atomic_helper_setup_commit() from auto-completing
21 * commit->flip_done.
22 */
23 - state->legacy_cursor_update = false;
24 + if (!vc4->firmware_kms)
25 + state->legacy_cursor_update = false;
26 ret = drm_atomic_helper_setup_commit(state, nonblock);
27 if (ret)
28 return ret;