]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jan 2014 17:43:18 +0000 (09:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jan 2014 17:43:18 +0000 (09:43 -0800)
added patches:
drm-radeon-fix-uvd-256mb-check.patch

queue-3.10/drm-radeon-fix-uvd-256mb-check.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/drm-radeon-fix-uvd-256mb-check.patch b/queue-3.10/drm-radeon-fix-uvd-256mb-check.patch
new file mode 100644 (file)
index 0000000..6b6426b
--- /dev/null
@@ -0,0 +1,30 @@
+From bae651dbd7ade3c5d6518f89599ae680a2fe2b85 Mon Sep 17 00:00:00 2001
+From: Christian König <christian.koenig@amd.com>
+Date: Fri, 20 Dec 2013 17:48:54 +0100
+Subject: drm/radeon: fix UVD 256MB check
+
+From: Christian König <christian.koenig@amd.com>
+
+commit bae651dbd7ade3c5d6518f89599ae680a2fe2b85 upstream.
+
+Otherwise the kernel might reject our decoding requests.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_uvd.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/radeon/radeon_uvd.c
++++ b/drivers/gpu/drm/radeon/radeon_uvd.c
+@@ -460,7 +460,7 @@ static int radeon_uvd_cs_reloc(struct ra
+               return -EINVAL;
+       }
+-      if ((start >> 28) != (end >> 28)) {
++      if ((start >> 28) != ((end - 1) >> 28)) {
+               DRM_ERROR("reloc %LX-%LX crossing 256MB boundary!\n",
+                         start, end);
+               return -EINVAL;
index 56e7508353f48165e9ccd216ea2ec2ce94c7472e..285d680cf7116b78adcc755979e9c66d8344a86e 100644 (file)
@@ -45,3 +45,4 @@ drm-i915-hold-mutex-across-i915_gem_release.patch
 drm-i915-don-t-update-the-dri1-breadcrumb-with-modesetting.patch
 drm-radeon-fix-asic-gfx-values-for-scrapper-asics.patch
 drm-i915-use-the-correct-gmch_ctrl-register-for-sandybridge.patch
+drm-radeon-fix-uvd-256mb-check.patch