9a9df5793b0431fb96b4a5dac4989650f5422460
[openwrt/staging/jow.git] /
1 From b1cc4f92e1f664d36f8b631e86a8c5e761bdcbbb 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/782] 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");