Re: [PATCH v3] drm/msm/dsi/phy: program PLL_SYSTEM_MUXES on the first PHY enable

From: Dmitry Baryshkov

Date: Fri Nov 27 2026 - 15:26:57 EST


On Thu, Nov 26, 2026 at 01:20:49PM +0800, Qianhui Xu wrote:
> From: Xu Qianhui <xiaqinghuan@xxxxxxxxxxxxxxxx>
>
> dsi_7nm_phy_enable() pre-seeds pll_enable_cnt to 1 while de-asserting
> DIGTOP_PWRDN_B and PLL_SHUTDOWNB, and dsi_pll_enable_pll_bias() returns
> early whenever the counter is already non-zero. On the first PHY
> bring-up the bias helper therefore never reaches its
> PLL_SYSTEM_MUXES = 0xc0 write, and nothing else programs that register
> before the panel is powered up: PLL_SYSTEM_MUXES keeps 0x0, the locked
> PLL outputs are not routed to the lanes, and a panel wired for bonded
> DSI comes up with the backlight on and no image.
>
> The combination is old. commit cb55f39bf7b1 ("drm/msm/dsi/phy: Fix
> reading zero as PLL rates when unprepared") introduced both the counter
> and the pre-seed. commit 93c97bc8d85d ("drm/msm: dsi: fix PLL init in
> bonded mode") briefly dropped the pre-seed, which made the write
> reachable again. Its revert,
>
> commit 44784327815b ("Revert "drm/msm: dsi: fix PLL init in bonded mode"")
>
> restored both sides, so on current master the muxes are once more never
> programmed during the first bring-up.
>
> Program PLL_SYSTEM_MUXES in dsi_7nm_phy_enable() next to the CTRL_0
> write that powers the PHY up, while the same lock is held. This only
> adds a register write to a path that already programs CTRL_0: no
> existing write moves, and the counter, the locking and the order of the
> rest of the PHY programming are untouched, so the byte-clock regression
> that led to the revert cannot come back through this path. The bias
> helper keeps its own write for the paths that raise the counter from
> zero.
>
> Measured on a Lenovo Y700 Gen4 tablet (SM8750P, bonded dual-DSI CSOT
> PP8807HB1-1 panel, "novatek,nt36536"): without this change
> PLL_SYSTEM_MUXES reads 0x0 at panel bring-up and the panel stays dark;
> with it the register reads back 0xc0, the panel initialises and the DSI
> host starts receiving interrupts (41 in /proc/interrupts, 0 before).
>
> Fixes: cb55f39bf7b1 ("drm/msm/dsi/phy: Fix reading zero as PLL rates when unprepared")
> Signed-off-by: Xu Qianhui <xiaqinghuan@xxxxxxxxxxxxxxxx>
> Tested-by: Jianfeng Liu <liujianfeng1994@xxxxxxxxx>
> ---

Cc: <stable@xxxxxxxxxxxxxxx>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry