summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2017-03-30 12:00:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-05-24 17:41:47 -0400
commit3b8f5ab331079595bc6e397a3d30dd1f2a306ab1 (patch)
treee815aab2fece0f21a25c75d2b0c2d859bfe24037 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
parent62a9f37e4ceae83d4661d7c8bbba20e7bb02da45 (diff)
downloadlinux-3b8f5ab331079595bc6e397a3d30dd1f2a306ab1.tar.gz
linux-3b8f5ab331079595bc6e397a3d30dd1f2a306ab1.tar.bz2
linux-3b8f5ab331079595bc6e397a3d30dd1f2a306ab1.zip
drm/amdgpu: update vcn decode create msg
Based on new vcn firmware interface changes Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 5c4057dd875b..09190fadd228 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
@@ -379,25 +379,20 @@ static int amdgpu_vcn_dec_get_create_msg(struct amdgpu_ring *ring, uint32_t hand
}
msg[0] = cpu_to_le32(0x00000028);
- msg[1] = cpu_to_le32(0x0000004c);
+ msg[1] = cpu_to_le32(0x00000038);
msg[2] = cpu_to_le32(0x00000001);
msg[3] = cpu_to_le32(0x00000000);
msg[4] = cpu_to_le32(handle);
msg[5] = cpu_to_le32(0x00000000);
msg[6] = cpu_to_le32(0x00000001);
msg[7] = cpu_to_le32(0x00000028);
- msg[8] = cpu_to_le32(0x00000024);
+ msg[8] = cpu_to_le32(0x00000010);
msg[9] = cpu_to_le32(0x00000000);
msg[10] = cpu_to_le32(0x00000007);
msg[11] = cpu_to_le32(0x00000000);
- msg[12] = cpu_to_le32(0x00000000);
- msg[13] = cpu_to_le32(0x00000780);
- msg[14] = cpu_to_le32(0x00000440);
- msg[15] = cpu_to_le32(0x00000000);
- msg[16] = cpu_to_le32(0x01b37000);
- msg[17] = cpu_to_le32(0x00000000);
- msg[18] = cpu_to_le32(0x00000000);
- for (i = 19; i < 1024; ++i)
+ msg[12] = cpu_to_le32(0x00000780);
+ msg[13] = cpu_to_le32(0x00000440);
+ for (i = 14; i < 1024; ++i)
msg[i] = cpu_to_le32(0x0);
amdgpu_bo_kunmap(bo);