aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch
new file mode 100644
index 00000000..094617c6
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4580-drm-amdgpu-fix-the-missed-vcn-fw-version-report.patch
@@ -0,0 +1,32 @@
+From 20673d1552d89f2fb6ce5fbbb9de7f0c6d4e8210 Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Wed, 23 May 2018 11:18:43 +0800
+Subject: [PATCH 4580/5725] drm/amdgpu: fix the missed vcn fw version report
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+It missed vcn.fw_version setting when init vcn microcode, and it will be used to
+report vcn ucode version via amdgpu_firmware_info sysfs interface.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
+index 41a189d..8f2785a 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
+@@ -82,6 +82,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
+ }
+
+ hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
++ adev->vcn.fw_version = le32_to_cpu(hdr->ucode_version);
+ family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
+ version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
+ version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
+--
+2.7.4
+