Skip to content

Commit 4cb8369

Browse files
authored
qcs6490: VP9 fix backported from mailing list
* QCS6490: Fix VP9 decode for SC7280 on venus driver * QCS6490: Make VP9 Patch work with build system
1 parent 83d0771 commit 4cb8369

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Mecid Urganci <[email protected]>
3+
Date: Tue, 10 Dec 2025 00:00:00 +0000
4+
Subject: Fix VP9 decode on SC7280 by restricting EOS quirk to IRIS2
5+
6+
Send NULL EOS addr for only IRIS2 (SM8250), for firmware <= 1.0.87.
7+
SC7280 also reports "1.0.<hash>" parsed as 1.0.0; restricting to IRIS2
8+
avoids misapplying this quirk and breaking VP9 decode on SC7280.
9+
---
10+
drivers/media/platform/qcom/venus/vdec.c | 8 +++++++-
11+
1 file changed, 7 insertions(+), 1 deletion(-)
12+
13+
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c
14+
index 111111111111..222222222222 100644
15+
--- a/drivers/media/platform/qcom/venus/vdec.c
16+
+++ b/drivers/media/platform/qcom/venus/vdec.c
17+
@@ -566,9 +566,15 @@
18+
goto unlock;
19+
20+
fdata.buffer_type = HFI_BUFFER_INPUT;
21+
fdata.flags |= HFI_BUFFERFLAG_EOS;
22+
- if (IS_V6(inst->core) && is_fw_rev_or_older(inst->core, 1, 0, 87))
23+
+
24+
+ /* Send NULL EOS addr for only IRIS2 (SM8250),for firmware <= 1.0.87.
25+
+ * SC7280 also reports "1.0.<hash>" parsed as 1.0.0; restricting to IRIS2
26+
+ * avoids misapplying this quirk and breaking VP9 decode on SC7280.
27+
+ */
28+
+
29+
+ if (IS_IRIS2(inst->core) && is_fw_rev_or_older(inst->core, 1, 0, 87))
30+
fdata.device_addr = 0;
31+
else
32+
fdata.device_addr = 0xdeadb000;

0 commit comments

Comments
 (0)