aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch')
-rw-r--r--common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch b/common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch
new file mode 100644
index 00000000..47082bd2
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0630-drm-amdgpu-add-UVD-support-for-Stoney.patch
@@ -0,0 +1,46 @@
+From bc80f2918e8acfb0f2dd2696af3c7f887a380a8c Mon Sep 17 00:00:00 2001
+From: Samuel Li <samuel.li@amd.com>
+Date: Thu, 8 Oct 2015 16:27:21 -0400
+Subject: [PATCH 0630/1050] drm/amdgpu: add UVD support for Stoney
+
+Stoney is UVD 6.x.
+
+Signed-off-by: Samuel Li <samuel.li@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+index d0312364..53f987a 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+@@ -53,6 +53,7 @@
+ #define FIRMWARE_TONGA "amdgpu/tonga_uvd.bin"
+ #define FIRMWARE_CARRIZO "amdgpu/carrizo_uvd.bin"
+ #define FIRMWARE_FIJI "amdgpu/fiji_uvd.bin"
++#define FIRMWARE_STONEY "amdgpu/stoney_uvd.bin"
+
+ /**
+ * amdgpu_uvd_cs_ctx - Command submission parser context
+@@ -83,6 +84,7 @@ MODULE_FIRMWARE(FIRMWARE_MULLINS);
+ MODULE_FIRMWARE(FIRMWARE_TONGA);
+ MODULE_FIRMWARE(FIRMWARE_CARRIZO);
+ MODULE_FIRMWARE(FIRMWARE_FIJI);
++MODULE_FIRMWARE(FIRMWARE_STONEY);
+
+ static void amdgpu_uvd_note_usage(struct amdgpu_device *adev);
+ static void amdgpu_uvd_idle_work_handler(struct work_struct *work);
+@@ -124,6 +126,9 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
+ case CHIP_CARRIZO:
+ fw_name = FIRMWARE_CARRIZO;
+ break;
++ case CHIP_STONEY:
++ fw_name = FIRMWARE_STONEY;
++ break;
+ default:
+ return -EINVAL;
+ }
+--
+1.9.1
+