FAILED: patch "[PATCH] pmdomain: imx: Fix i.MX8MP VC8000E power up sequence" failed to apply to 6.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x 25e252bcf1593b420b12a7231d9dd64b885a2ae2
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026072121-astride-calcium-3a3f@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 25e252bcf1593b420b12a7231d9dd64b885a2ae2 Mon Sep 17 00:00:00 2001
From: Peng Fan <[email protected]>
Date: Wed, 10 Jun 2026 22:39:11 +0800
Subject: [PATCH] pmdomain: imx: Fix i.MX8MP VC8000E power up sequence
Per errata[1]:
ERR050531: VPU_NOC power down handshake may hang during VC8000E/VPUMIX power up/down cycling.
Description: VC8000E reset de-assertion edge and AXI clock may have a timing issue.
Workaround: Set bit2 (vc8000e_clk_en) of BLK_CLK_EN_CSR to 0 to gate off both AXI clock and VC8000E clock sent to VC8000E and AXI clock sent to VPU_NOC m_v_2 interface during VC8000E power up(VC8000E reset is de-asserted by HW)
Add a bool variable is_errata_err050531 in
'struct imx8m_blk_ctrl_domain_data' to represent whether the workaround is needed. If is_errata_err050531 is true, first clear the clk before powering up gpc, then enable the clk after powering up gpc.
[1] https://www.nxp.com/webapp/Download?colCode=IMX8MP_1P33A
drivers/pmdomain/imx/imx8m-blk-ctrl.c +18 -1
@@ -54,6 +54,15 @@ struct imx8m_blk_ctrl_domain_data {* register. */ u32 mipi_phy_rst_mask; + +/* +* VC8000E reset de-assertion edge and AXI clock may have a timing issue. +* Workaround: Set bit2 (vc8000e_clk_en) of BLK_CLK_EN_CSR to 0 to gate off +* both AXI clock and VC8000E clock sent to VC8000E and AXI clock sent to +* VPU_NOC m_v_2 interface during VC8000E power up(VC8000E reset is +* de-asserted by HW) +*/ +bool is_errata_err050531; };#define DOMAIN_MAX_CLKS 4
@@ -108,7 +117,11 @@ static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd)dev_err (bc->dev,"failed to enable clocks\n" ); goto bus_put; } -regmap_set_bits (bc->regmap,BLK_CLK_EN , data->clk_mask); + +if (data->is_errata_err050531) +regmap_clear_bits (bc->regmap,BLK_CLK_EN , data->clk_mask); +else +regmap_set_bits (bc->regmap,BLK_CLK_EN , data->clk_mask);/* power up upstream GPC domain */ ret =pm_runtime_get_sync (domain->power_dev);
@@ -117,6 +130,9 @@ static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd) goto clk_disable; } +if (data->is_errata_err050531) +regmap_set_bits (bc->regmap,BLK_CLK_EN , data->clk_mask); +/* wait for reset to propagate */ udelay (5 );
@@ -511,6 +527,7 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_vpu_blk_ctl_domain_data[] .clk_mask = BIT(2), .path_names = (const char *[]){"vc8000e"}, .num_paths = 1, + .is_errata_err050531 = true, }, };