tests/amdgpu/vcn: fix the nop command in IBs

Just make them properly i.e. put 0 to the Nop reg

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
main
Leo Liu 2018-12-11 15:52:58 -05:00
parent 8f2e09251e
commit 866ada1b37
1 changed files with 12 additions and 6 deletions

View File

@ -268,8 +268,10 @@ static void amdgpu_cs_vcn_dec_create(void)
ib_cpu[len++] = msg_buf.addr >> 32; ib_cpu[len++] = msg_buf.addr >> 32;
ib_cpu[len++] = 0x81C3; ib_cpu[len++] = 0x81C3;
ib_cpu[len++] = 0; ib_cpu[len++] = 0;
for (; len % 16; ++len) for (; len % 16; ) {
ib_cpu[len] = 0x81ff; ib_cpu[len++] = 0x81ff;
ib_cpu[len++] = 0;
}
r = submit(len, AMDGPU_HW_IP_VCN_DEC); r = submit(len, AMDGPU_HW_IP_VCN_DEC);
CU_ASSERT_EQUAL(r, 0); CU_ASSERT_EQUAL(r, 0);
@ -336,8 +338,10 @@ static void amdgpu_cs_vcn_dec_decode(void)
ib_cpu[len++] = 0x81C6; ib_cpu[len++] = 0x81C6;
ib_cpu[len++] = 0x1; ib_cpu[len++] = 0x1;
for (; len % 16; ++len) for (; len % 16; ) {
ib_cpu[len] = 0x80000000; ib_cpu[len++] = 0x81ff;
ib_cpu[len++] = 0;
}
r = submit(len, AMDGPU_HW_IP_VCN_DEC); r = submit(len, AMDGPU_HW_IP_VCN_DEC);
CU_ASSERT_EQUAL(r, 0); CU_ASSERT_EQUAL(r, 0);
@ -373,8 +377,10 @@ static void amdgpu_cs_vcn_dec_destroy(void)
ib_cpu[len++] = msg_buf.addr >> 32; ib_cpu[len++] = msg_buf.addr >> 32;
ib_cpu[len++] = 0x81C3; ib_cpu[len++] = 0x81C3;
ib_cpu[len++] = 0; ib_cpu[len++] = 0;
for (; len % 16; ++len) for (; len % 16; ) {
ib_cpu[len] = 0x80000000; ib_cpu[len++] = 0x81ff;
ib_cpu[len++] = 0;
}
r = submit(len, AMDGPU_HW_IP_VCN_DEC); r = submit(len, AMDGPU_HW_IP_VCN_DEC);
CU_ASSERT_EQUAL(r, 0); CU_ASSERT_EQUAL(r, 0);