Skip to content

Commit ba7a94e

Browse files
fltoAbhinav Kumar
authored andcommitted
drm/msm/dpu: add missing flush and fetch bits for DMA4/DMA5 planes
Note that with this, DMA4/DMA5 are still non-functional, but at least display *something* in modetest instead of nothing or underflow. Fixes: efcd010 ("drm/msm/dpu: add support for SM8550") Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on SM8550-QRD Patchwork: https://patchwork.freedesktop.org/patch/545548/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent a85c238 commit ba7a94e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
static const u32 fetch_tbl[SSPP_MAX] = {CTL_INVALID_BIT, 16, 17, 18, 19,
5353
CTL_INVALID_BIT, CTL_INVALID_BIT, CTL_INVALID_BIT, CTL_INVALID_BIT, 0,
54-
1, 2, 3, CTL_INVALID_BIT, CTL_INVALID_BIT};
54+
1, 2, 3, 4, 5};
5555

5656
static int _mixer_stages(const struct dpu_lm_cfg *mixer, int count,
5757
enum dpu_lm lm)
@@ -198,6 +198,12 @@ static void dpu_hw_ctl_update_pending_flush_sspp(struct dpu_hw_ctl *ctx,
198198
case SSPP_DMA3:
199199
ctx->pending_flush_mask |= BIT(25);
200200
break;
201+
case SSPP_DMA4:
202+
ctx->pending_flush_mask |= BIT(13);
203+
break;
204+
case SSPP_DMA5:
205+
ctx->pending_flush_mask |= BIT(14);
206+
break;
201207
case SSPP_CURSOR0:
202208
ctx->pending_flush_mask |= BIT(22);
203209
break;

0 commit comments

Comments
 (0)