diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0558-drm-amdgpu-Fix-max_vblank_count-value-for-current-di.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0558-drm-amdgpu-Fix-max_vblank_count-value-for-current-di.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0558-drm-amdgpu-Fix-max_vblank_count-value-for-current-di.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0558-drm-amdgpu-Fix-max_vblank_count-value-for-current-di.patch new file mode 100644 index 00000000..e1bf7394 --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0558-drm-amdgpu-Fix-max_vblank_count-value-for-current-di.patch @@ -0,0 +1,40 @@ +From 5a6adfa20b622a273205e33b20c12332aa7eb724 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Tue, 22 Sep 2015 10:06:45 -0400 +Subject: [PATCH 0558/1050] drm/amdgpu: Fix max_vblank_count value for current + display engines +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The value was much too low, which could cause the userspace visible +vblank counter to move backwards when the hardware counter wrapped +around. + +Ported from radeon commit: +b0b9bb4dd51f396dcf843831905f729e74b0c8c0 + +Reviewed-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +Cc: stable@vger.kernel.org +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +index 0aba8e9..7c42ff6 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +@@ -140,7 +140,7 @@ void amdgpu_irq_preinstall(struct drm_device *dev) + */ + int amdgpu_irq_postinstall(struct drm_device *dev) + { +- dev->max_vblank_count = 0x001fffff; ++ dev->max_vblank_count = 0x00ffffff; + return 0; + } + +-- +1.9.1 + |