brcm2708: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0589-drm-vc4-Make-sure-that-vblank-waits-work-without-v3d.patch
1 From 31290e7ce363dc0bf6e3bae9c7b879e52f2e2a55 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 29 Mar 2019 12:04:36 -0700
4 Subject: [PATCH 589/773] drm/vc4: Make sure that vblank waits work without v3d
5 loaded.
6
7 This flag exists to protect legacy drivers, but when vc4's v3d doesn't
8 probe, it doesn't get set up by vc4_v3d.c's call of drm_irq_install.
9 This resulted in applications running as fast as possible, and laggy
10 performance from compton as it had to wait for the latest rendering by
11 the application for its presentation.
12
13 Signed-off-by: Eric Anholt <eric@anholt.net>
14 ---
15 drivers/gpu/drm/vc4/vc4_kms.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/drivers/gpu/drm/vc4/vc4_kms.c
19 +++ b/drivers/gpu/drm/vc4/vc4_kms.c
20 @@ -422,6 +422,7 @@ int vc4_kms_load(struct drm_device *dev)
21 /* Set support for vblank irq fast disable, before drm_vblank_init() */
22 dev->vblank_disable_immediate = true;
23
24 + dev->irq_enabled = true;
25 ret = drm_vblank_init(dev, dev->mode_config.num_crtc);
26 if (ret < 0) {
27 dev_err(dev->dev, "failed to initialize vblank\n");