[PATCH] amdgpu/vcn: add dummy feedback message
James Zhu
jamesz at amd.com
Mon Apr 13 18:08:54 UTC 2020
sure
On 2020-04-13 1:34 p.m., Liu, Leo wrote:
> [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 at lists.freedesktop.org> On Behalf Of James Zhu
> Sent: Monday, April 13, 2020 1:13 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Li, Pauline <Pauline.Li at amd.com>; Zhu, James <James.Zhu at amd.com>
> Subject: [PATCH] amdgpu/vcn: add dummy feedback message
>
> 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
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cleo.liu%40amd.com%7Ce06ed3031a8e4c5de9d008d7dfcde4e5%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637223947784156110&sdata=lkYADqz5Pqcu%2FYN%2BBZKzJHeCV8NypHniPBBHN3WD40U%3D&reserved=0
More information about the amd-gfx
mailing list