]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Add new error code for VCN/JPEG new chain
authorStanley.Yang <Stanley.Yang@amd.com>
Mon, 28 Jul 2025 11:49:24 +0000 (19:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 18:36:06 +0000 (14:36 -0400)
Add VIDS and JPEG8/9 S|D chain error code for VCN/JPEG v5.0.1.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c

index 03ec4b741d194caac9b57a82e73c1ffae56ee9d9..8f389cb2f6c7c0ad55cf8f7c670287d397253add 100644 (file)
@@ -1016,8 +1016,9 @@ static int jpeg_v5_0_1_aca_bank_parser(struct aca_handle *handle, struct aca_ban
 
 /* reference to smu driver if header file */
 static int jpeg_v5_0_1_err_codes[] = {
-       16, 17, 18, 19, 20, 21, 22, 23, /* JPEG[0-7][S|D] */
-       24, 25, 26, 27, 28, 29, 30, 31
+       16, 17, 18, 19, 20, 21, 22, 23, /* JPEG[0-9][S|D] */
+       24, 25, 26, 27, 28, 29, 30, 31,
+       48, 49, 50, 51,
 };
 
 static bool jpeg_v5_0_1_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,
index cb560d64da08c0202ad7373356b14d7f708fb8bb..74f811fed79a2c0b36887a551ac305b8c6100fea 100644 (file)
@@ -1562,7 +1562,7 @@ static int vcn_v5_0_1_aca_bank_parser(struct aca_handle *handle, struct aca_bank
 
 /* reference to smu driver if header file */
 static int vcn_v5_0_1_err_codes[] = {
-       14, 15, /* VCN */
+       14, 15, 47, /* VCN [D|V|S] */
 };
 
 static bool vcn_v5_0_1_aca_bank_is_valid(struct aca_handle *handle, struct aca_bank *bank,