aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch')
-rw-r--r--meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch b/meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch
new file mode 100644
index 00000000..8d42980e
--- /dev/null
+++ b/meta-amdfalconx86/recipes-kernel/linux/files/0427-drm-amdgpu-Set-vblank_disable_allowed-true.patch
@@ -0,0 +1,34 @@
+From 2db5fbd509cb7327031e8d45464ba426246456d7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
+Date: Thu, 31 Mar 2016 15:46:43 +0900
+Subject: [PATCH 0427/1110] drm/amdgpu: Set vblank_disable_allowed = true
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
+index f594cfa..762cfdb 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
+@@ -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;
+
+--
+2.7.4
+