aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-02-14 15:08:41 +0000
committerAbhinav Kumar <[email protected]>2025-02-15 19:46:42 +0000
commit588257897058a0b1aa47912db4fe93c6ff5e3887 (patch)
treeec1151d2c364fc721c4674c6abcf2ca51da02ba2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/msm/dpu: Drop extraneous return in dpu_crtc_reassign_planes() (diff)
downloadkernel-588257897058a0b1aa47912db4fe93c6ff5e3887.tar.gz
kernel-588257897058a0b1aa47912db4fe93c6ff5e3887.zip
drm/msm/dsi/phy: Protect PHY_CMN_CLK_CFG0 updated from driver side
PHY_CMN_CLK_CFG0 register is updated by the PHY driver and by two divider clocks from Common Clock Framework: devm_clk_hw_register_divider_parent_hw(). Concurrent access by the clocks side is protected with spinlock, however driver's side in restoring state is not. Restoring state is called from msm_dsi_phy_enable(), so there could be a path leading to concurrent and conflicting updates with clock framework. Add missing lock usage on the PHY driver side, encapsulated in its own function so the code will be still readable. While shuffling the code, define and use PHY_CMN_CLK_CFG0 bitfields to make the code more readable and obvious. Fixes: 1ef7c99d145c ("drm/msm/dsi: add support for 7nm DSI PHY/PLL") Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/637376/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions