9e3631d2a5731e2e3ae693389b0fe0bda831feb6
[openwrt/staging/xback.git] /
1 From 0ce577f34c986e0d3e42aecd3a7a3407d5d52f1b 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 591/725] 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");