1663787f9947d6daf8399a576f6955ef7315e3d3
[openwrt/staging/yousong.git] /
1 From 53fb5e2a9834ead04a432c266831e5fd77f96983 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 595/703] 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");