RE: [PATCH] amdgpu/vcn: add dummy feedback message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - Internal Distribution Only]

I think you need to create a MR for libdrm patch, and the tittle should be like "tests/amdgpu/vcn"

Regards,
Leo


-----Original Message-----
From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of James Zhu
Sent: Monday, April 13, 2020 1:13 PM
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Cc: Li, Pauline <Pauline.Li@xxxxxxx>; Zhu, James <James.Zhu@xxxxxxx>
Subject: [PATCH] amdgpu/vcn: add dummy feedback message

Latest VCN firmware has feedback header check.

Signed-off-by: James Zhu <James.Zhu@xxxxxxx>
---
 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

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cleo.liu%40amd.com%7Ce06ed3031a8e4c5de9d008d7dfcde4e5%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637223947784156110&amp;sdata=lkYADqz5Pqcu%2FYN%2BBZKzJHeCV8NypHniPBBHN3WD40U%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux