[PATCH] amdgpu/vcn: add dummy feedback message

James Zhu James.Zhu at amd.com
Mon Apr 13 17:12:35 UTC 2020


Latest VCN firmware has feedback header check.

Signed-off-by: James Zhu <James.Zhu at amd.com>
---
 tests/amdgpu/decode_messages.h | 4 ++++
 tests/amdgpu/vcn_tests.c       | 1 +
 2 files changed, 5 insertions(+)

diff --git a/tests/amdgpu/decode_messages.h b/tests/amdgpu/decode_messages.h
index bd6fe4b..0dd80a2 100644
--- a/tests/amdgpu/decode_messages.h
+++ b/tests/amdgpu/decode_messages.h
@@ -845,4 +845,8 @@ static const uint8_t vcn_dec_destroy_msg[] = {
 	0x03,0x00,0x44,0x40,0x00,0x00,0x00,0x00,
 };
 
+static const uint8_t feedback_msg[] = {
+	0x2c,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+};
+
 #endif /* _DECODE_MESSAGES_H_ */
diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c
index ad438f3..0d8df81 100644
--- a/tests/amdgpu/vcn_tests.c
+++ b/tests/amdgpu/vcn_tests.c
@@ -333,6 +333,7 @@ static void amdgpu_cs_vcn_dec_decode(void)
 			avc_decode_msg, sizeof(avc_decode_msg));
 
 	dec += 4*1024;
+	memcpy(dec, feedback_msg, sizeof(feedback_msg));
 	dec += 4*1024;
 	memcpy(dec, uvd_it_scaling_table, sizeof(uvd_it_scaling_table));
 
-- 
2.7.4



More information about the amd-gfx mailing list