diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/files/1114-fix-default-UVD-context-size.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/files/1114-fix-default-UVD-context-size.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/files/1114-fix-default-UVD-context-size.patch b/meta-amdfalconx86/recipes-kernel/linux/files/1114-fix-default-UVD-context-size.patch new file mode 100644 index 00000000..9bfac892 --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/files/1114-fix-default-UVD-context-size.patch @@ -0,0 +1,34 @@ +From 769574cc4720acfd1eca9bc5467e1a5a4a7956f3 Mon Sep 17 00:00:00 2001 +From: Sanjay R Mehta <sanju.mehta@amd.com> +Date: Sat, 17 Sep 2016 14:41:30 +0530 +Subject: [PATCH 04/12] fix default UVD context size +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Context buffers should be denied by default, not allowed. + +Signed-off-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Leo Liu <leo.liu@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +index 9050af2..ddc487d 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +@@ -439,7 +439,7 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, + unsigned fs_in_mb = width_in_mb * height_in_mb; + + unsigned image_size, tmp, min_dpb_size, num_dpb_buffer; +- unsigned min_ctx_size = 0; ++ unsigned min_ctx_size = ~0; + + image_size = width * height; + image_size += image_size / 2; +-- +2.7.4 + |