bb0c8552a2269e7f3eef3fff29b5fa09a821a3ca
[openwrt/staging/chunkeey.git] /
1 From 561918ec5e668f9d940051737d861ee0592816f6 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 588/806] 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");