drm/radeon: Set vblank_disable_allowed = true
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 31 Mar 2016 06:46:42 +0000 (15:46 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2016 14:08:33 +0000 (10:08 -0400)
Without this, since the conversion from drm_vblank_pre/post_modeset to
drm_vblank_on/off, the vblank interrupt could never be disabled after
userspace triggered enabling it.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_irq_kms.c

index 979f3bf..1e9304d 100644 (file)
@@ -291,6 +291,8 @@ int radeon_irq_kms_init(struct radeon_device *rdev)
        if (r) {
                return r;
        }
+       rdev->ddev->vblank_disable_allowed = true;
+
        /* enable msi */
        rdev->msi_enabled = 0;