This patch calculate HOTAL and VTOTAL value to be programmed when DSI is operating in command mode as per BSPEC. Signed-off-by: Madhav Chauhan <madhav.chauhan@xxxxxxxxx> --- drivers/gpu/drm/i915/icl_dsi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c index af72b57..c93d02c 100644 --- a/drivers/gpu/drm/i915/icl_dsi.c +++ b/drivers/gpu/drm/i915/icl_dsi.c @@ -811,6 +811,12 @@ static void gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder, htotal /= 2; } + if (intel_dsi->operation_mode == INTEL_DSI_COMMAND_MODE) { + htotal = hactive + 160; + //TODO: Calculate VTOTAL = ceiling( 400us / Line Time) + //Info missing from BSPEC + } + /* minimum hactive as per bspec: 256 pixels */ if (adjusted_mode->crtc_hdisplay < 256) DRM_ERROR("hactive is less then 256 pixels\n"); -- 2.7.4 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx