Skip to content

Commit 3b1f6c5

Browse files
hsinyi527mbgg
authored andcommitted
arm64: dts: mt8173: fix vcodec-enc clock
Fix the assigned-clock-parents to higher frequency clock to avoid h264 encode timeout: [ 134.763465] mtk_vpu 10020000.vpu: vpu ipi 4 ack time out ! [ 134.769008] [MTK_VCODEC][ERROR][18]: vpu_enc_send_msg() vpu_ipi_send msg_id c002 len 32 fail -5 [ 134.777707] [MTK_VCODEC][ERROR][18]: vpu_enc_encode() AP_IPIMSG_ENC_ENCODE 0 fail venc_sel is the clock used by h264 encoder, and venclt_sel is the clock used by vp8 encoder. Assign venc_sel to vcodecpll_ck and venclt_sel to vcodecpll_370p5. vcodecpll 1482000000 vcodecpll_ck 494000000 venc_sel 494000000 ... vcodecpll_370p5 370500000 venclt_sel 370500000 Fixes: fbbad02 ("arm64: dts: Using standard CCF interface to set vcodec clk") Signed-off-by: Hsin-Yi Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent 2ef96a5 commit 3b1f6c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/boot/dts/mediatek/mt8173.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,8 @@
14021402
"venc_lt_sel";
14031403
assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>,
14041404
<&topckgen CLK_TOP_VENC_LT_SEL>;
1405-
assigned-clock-parents = <&topckgen CLK_TOP_VENCPLL_D2>,
1406-
<&topckgen CLK_TOP_UNIVPLL1_D2>;
1405+
assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>,
1406+
<&topckgen CLK_TOP_VCODECPLL_370P5>;
14071407
};
14081408

14091409
jpegdec: jpegdec@18004000 {

0 commit comments

Comments
 (0)