drm/amdgpu: Set vblank_disable_allowed = true
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 31 Mar 2016 06:46:43 +0000 (15:46 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2016 14:08:34 +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/amd/amdgpu/amdgpu_irq.c

index f594cfaa97e513f0bc6d436e26430abc8783e5ce..762cfdb85147471855418fff997877951d4aca6d 100644 (file)
@@ -219,6 +219,8 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
        if (r) {
                return r;
        }
+       adev->ddev->vblank_disable_allowed = true;
+
        /* enable msi */
        adev->irq.msi_enabled = false;