This is a note to let you know that I've just added the patch titled arm64: dts: mediatek: mt8195: Fix PM suspend/resume with venc clocks to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: arm64-dts-mediatek-mt8195-fix-pm-suspend-resume-with-venc-clocks.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 61b94d54421a1f3670ddd5396ec70afe833e9405 Mon Sep 17 00:00:00 2001 From: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> Date: Thu, 6 Jul 2023 11:58:41 +0200 Subject: arm64: dts: mediatek: mt8195: Fix PM suspend/resume with venc clocks From: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> commit 61b94d54421a1f3670ddd5396ec70afe833e9405 upstream. Before suspending the LARBs we're making sure that any operation is done: this never happens because we are unexpectedly unclocking the LARB20 before executing the suspend handler for the MediaTek Smart Multimedia Interface (SMI) and the cause of this is incorrect clocks on this LARB. Fix this issue by changing the Local Arbiter 20 (used by the video encoder secondary core) apb clock to CLK_VENC_CORE1_VENC; furthermore, in order to make sure that both the PM resume and video encoder operation is stable, add the CLK_VENC(_CORE1)_LARB clock to the VENC (main core) and VENC_CORE1 power domains, as this IP cannot communicate with the rest of the system (the AP) without local arbiter clocks being operational. Cc: stable@xxxxxxxxxxxxxxx Fixes: 3b5838d1d82e ("arm64: dts: mt8195: Add iommu and smi nodes") Fixes: 2b515194bf0c ("arm64: dts: mt8195: Add power domains controller") Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230706095841.109315-1-angelogioacchino.delregno@xxxxxxxxxxxxx Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -627,6 +627,8 @@ power-domain@MT8195_POWER_DOMAIN_VENC_CORE1 { reg = <MT8195_POWER_DOMAIN_VENC_CORE1>; + clocks = <&vencsys_core1 CLK_VENC_CORE1_LARB>; + clock-names = "venc1-larb"; mediatek,infracfg = <&infracfg_ao>; #power-domain-cells = <0>; }; @@ -689,6 +691,8 @@ power-domain@MT8195_POWER_DOMAIN_VENC { reg = <MT8195_POWER_DOMAIN_VENC>; + clocks = <&vencsys CLK_VENC_LARB>; + clock-names = "venc0-larb"; mediatek,infracfg = <&infracfg_ao>; #power-domain-cells = <0>; }; @@ -2665,7 +2669,7 @@ reg = <0 0x1b010000 0 0x1000>; mediatek,larb-id = <20>; mediatek,smi = <&smi_common_vpp>; - clocks = <&vencsys_core1 CLK_VENC_CORE1_LARB>, + clocks = <&vencsys_core1 CLK_VENC_CORE1_VENC>, <&vencsys_core1 CLK_VENC_CORE1_GALS>, <&vppsys0 CLK_VPP0_GALS_VDO0_VDO1_VENCSYS_CORE1>; clock-names = "apb", "smi", "gals"; Patches currently in stable-queue which might be from angelogioacchino.delregno@xxxxxxxxxxxxx are queue-6.6/arm64-dts-mt7986-fix-emmc-hs400-mode-without-uboot-initialization.patch queue-6.6/arm64-dts-mediatek-mt7622-fix-memory-node-warning-check.patch queue-6.6/arm64-dts-mediatek-mt8183-fix-unit-address-for-scp-reserved-memory.patch queue-6.6/arm64-dts-mediatek-cherry-fix-interrupt-cells-for-mt6360-on-i2c7.patch queue-6.6/arm64-dts-mt7986-change-cooling-trips.patch queue-6.6/arm64-dts-mediatek-mt8186-change-gpu-speedbin-nvmem-cell-name.patch queue-6.6/arm64-dts-mediatek-mt8183-kukui-jacuzzi-fix-dsi-unnecessary-cells-properties.patch queue-6.6/arm64-dts-mediatek-mt8186-fix-clock-names-for-power-domains.patch queue-6.6/arm64-dts-mediatek-mt8183-move-thermal-zones-to-the-root-node.patch queue-6.6/arm64-dts-mt7986-define-3w-max-power-to-both-sfp-on-bpi-r3.patch queue-6.6/arm64-dts-mediatek-mt8173-evb-fix-regulator-fixed-node-names.patch queue-6.6/arm64-dts-mediatek-mt8195-fix-pm-suspend-resume-with-venc-clocks.patch queue-6.6/arm64-dts-mediatek-mt8183-evb-fix-unit_address_vs_reg-warning-on-ntc.patch