Skip to content

Commit 9a1cd7d

Browse files
committed
Merge tag 'drm-msm-fixes-2025-02-20' of https://gitlab.freedesktop.org/drm/msm into drm-fixes
Fixes for v6.14-rc4 Display: * More catalog fixes: - to skip watchdog programming through top block if its not present - fix the setting of WB mask to ensure the WB input control is programmed correctly through ping-pong - drop lm_pair for sm6150 as that chipset does not have any 3dmerge block * Fix the mode validation logic for DP/eDP to account for widebus (2ppc) to allow high clock resolutions * Fix to disable dither during encoder disable as otherwise this was causing kms_writeback failure due to resource sharing between * WB and DSI paths as DSI uses dither but WB does not * Fixes for virtual planes, namely to drop extraneous return and fix uninitialized variables * Fix to avoid spill-over of DSC encoder block bits when programming the bits-per-component * Fixes in the DSI PHY to protect against concurrent access of PHY_CMN_CLK_CFG regs between clock and display drivers Core/GPU: * Fix non-blocking fence wait incorrectly rounding up to 1 jiffy timeout * Only print GMU fw version once, instead of each time the GPU resumes Signed-off-by: Dave Airlie <airlied@redhat.com> From: Rob Clark <robdclark@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGtt2AODBXdod8ULXcAygf_qYvwRDVeUVtODx=2jErp6cA@mail.gmail.com
2 parents 930293b + 73f69c6 commit 9a1cd7d

File tree

15 files changed

+75
-49
lines changed

15 files changed

+75
-49
lines changed

drivers/gpu/drm/msm/adreno/a6xx_gmu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,10 @@ static int a6xx_gmu_fw_load(struct a6xx_gmu *gmu)
813813
}
814814

815815
ver = gmu_read(gmu, REG_A6XX_GMU_CORE_FW_VERSION);
816-
DRM_INFO("Loaded GMU firmware v%u.%u.%u\n",
817-
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_MAJOR__MASK, ver),
818-
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_MINOR__MASK, ver),
819-
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_STEP__MASK, ver));
816+
DRM_INFO_ONCE("Loaded GMU firmware v%u.%u.%u\n",
817+
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_MAJOR__MASK, ver),
818+
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_MINOR__MASK, ver),
819+
FIELD_GET(A6XX_GMU_CORE_FW_VERSION_STEP__MASK, ver));
820820

821821
return 0;
822822
}

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static const struct dpu_wb_cfg sm8150_wb[] = {
297297
{
298298
.name = "wb_2", .id = WB_2,
299299
.base = 0x65000, .len = 0x2c8,
300-
.features = WB_SDM845_MASK,
300+
.features = WB_SM8250_MASK,
301301
.format_list = wb2_formats_rgb,
302302
.num_formats = ARRAY_SIZE(wb2_formats_rgb),
303303
.clk_ctrl = DPU_CLK_CTRL_WB2,

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static const struct dpu_wb_cfg sc8180x_wb[] = {
304304
{
305305
.name = "wb_2", .id = WB_2,
306306
.base = 0x65000, .len = 0x2c8,
307-
.features = WB_SDM845_MASK,
307+
.features = WB_SM8250_MASK,
308308
.format_list = wb2_formats_rgb,
309309
.num_formats = ARRAY_SIZE(wb2_formats_rgb),
310310
.clk_ctrl = DPU_CLK_CTRL_WB2,

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,12 @@ static const struct dpu_lm_cfg sm6150_lm[] = {
116116
.sblk = &sdm845_lm_sblk,
117117
.pingpong = PINGPONG_0,
118118
.dspp = DSPP_0,
119-
.lm_pair = LM_1,
120119
}, {
121120
.name = "lm_1", .id = LM_1,
122121
.base = 0x45000, .len = 0x320,
123122
.features = MIXER_QCM2290_MASK,
124123
.sblk = &sdm845_lm_sblk,
125124
.pingpong = PINGPONG_1,
126-
.lm_pair = LM_0,
127125
}, {
128126
.name = "lm_2", .id = LM_2,
129127
.base = 0x46000, .len = 0x320,

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static const struct dpu_wb_cfg sm6125_wb[] = {
144144
{
145145
.name = "wb_2", .id = WB_2,
146146
.base = 0x65000, .len = 0x2c8,
147-
.features = WB_SDM845_MASK,
147+
.features = WB_SM8250_MASK,
148148
.format_list = wb2_formats_rgb,
149149
.num_formats = ARRAY_SIZE(wb2_formats_rgb),
150150
.clk_ctrl = DPU_CLK_CTRL_WB2,

drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,6 @@ static int dpu_crtc_reassign_planes(struct drm_crtc *crtc, struct drm_crtc_state
12281228
done:
12291229
kfree(states);
12301230
return ret;
1231-
1232-
return 0;
12331231
}
12341232

12351233
static int dpu_crtc_atomic_check(struct drm_crtc *crtc,

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,9 @@ void dpu_encoder_helper_phys_cleanup(struct dpu_encoder_phys *phys_enc)
22812281
}
22822282
}
22832283

2284+
if (phys_enc->hw_pp && phys_enc->hw_pp->ops.setup_dither)
2285+
phys_enc->hw_pp->ops.setup_dither(phys_enc->hw_pp, NULL);
2286+
22842287
/* reset the merge 3D HW block */
22852288
if (phys_enc->hw_pp && phys_enc->hw_pp->merge_3d) {
22862289
phys_enc->hw_pp->merge_3d->ops.setup_3d_mode(phys_enc->hw_pp->merge_3d,

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static void dpu_hw_dsc_config(struct dpu_hw_dsc *hw_dsc,
5252
u32 slice_last_group_size;
5353
u32 det_thresh_flatness;
5454
bool is_cmd_mode = !(mode & DSC_MODE_VIDEO);
55+
bool input_10_bits = dsc->bits_per_component == 10;
5556

5657
DPU_REG_WRITE(c, DSC_COMMON_MODE, mode);
5758

@@ -68,7 +69,7 @@ static void dpu_hw_dsc_config(struct dpu_hw_dsc *hw_dsc,
6869
data |= (dsc->line_buf_depth << 3);
6970
data |= (dsc->simple_422 << 2);
7071
data |= (dsc->convert_rgb << 1);
71-
data |= dsc->bits_per_component;
72+
data |= input_10_bits;
7273

7374
DPU_REG_WRITE(c, DSC_ENC, data);
7475

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops,
272272

273273
if (cap & BIT(DPU_MDP_VSYNC_SEL))
274274
ops->setup_vsync_source = dpu_hw_setup_vsync_sel;
275-
else
275+
else if (!(cap & BIT(DPU_MDP_PERIPH_0_REMOVED)))
276276
ops->setup_vsync_source = dpu_hw_setup_wd_timer;
277277

278278
ops->get_safe_status = dpu_hw_get_safe_status;

drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,6 @@ int dpu_assign_plane_resources(struct dpu_global_state *global_state,
11641164
unsigned int num_planes)
11651165
{
11661166
unsigned int i;
1167-
int ret;
11681167

11691168
for (i = 0; i < num_planes; i++) {
11701169
struct drm_plane_state *plane_state = states[i];
@@ -1173,13 +1172,13 @@ int dpu_assign_plane_resources(struct dpu_global_state *global_state,
11731172
!plane_state->visible)
11741173
continue;
11751174

1176-
ret = dpu_plane_virtual_assign_resources(crtc, global_state,
1175+
int ret = dpu_plane_virtual_assign_resources(crtc, global_state,
11771176
state, plane_state);
11781177
if (ret)
1179-
break;
1178+
return ret;
11801179
}
11811180

1182-
return ret;
1181+
return 0;
11831182
}
11841183

11851184
static void dpu_plane_flush_csc(struct dpu_plane *pdpu, struct dpu_sw_pipe *pipe)

0 commit comments

Comments
 (0)