All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Liu <HaoPing.Liu@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: stylon.wang@amd.com, Alan Liu <HaoPing.Liu@amd.com>,
	Sunpeng.Li@amd.com, Harry.Wentland@amd.com,
	qingqing.zhuo@amd.com, Martin Leung <Martin.Leung@amd.com>,
	Rodrigo.Siqueira@amd.com, roman.li@amd.com, solomon.chiu@amd.com,
	Aurabindo.Pillai@amd.com, Alvin Lee <Alvin.Lee2@amd.com>,
	wayne.lin@amd.com, Bhawanpreet.Lakha@amd.com,
	agustin.gutierrez@amd.com, pavle.kotarac@amd.com
Subject: [PATCH 01/22] drm/amd/display: Wait for VBLANK during pipe programming
Date: Thu, 3 Nov 2022 00:00:56 +0800	[thread overview]
Message-ID: <20221102160117.506511-2-HaoPing.Liu@amd.com> (raw)
In-Reply-To: <20221102160117.506511-1-HaoPing.Liu@amd.com>

From: Alvin Lee <Alvin.Lee2@amd.com>

[Description]
- Wait for vblank during front end programming
  for global sync to ensure all double buffer
  updates take.
- This prevents underflow in some cases.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
index f3334f513eb4..b465a83bde6f 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
@@ -1663,6 +1663,7 @@ static void dcn20_program_pipe(
 				pipe_ctx->pipe_dlg_param.vupdate_width);
 
 		if (pipe_ctx->stream->mall_stream_config.type != SUBVP_PHANTOM) {
+			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VBLANK);
 			pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VACTIVE);
 		}
 
-- 
2.25.1


  reply	other threads:[~2022-11-02 16:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-02 16:00 [PATCH 00/22] DC Patches Nov 2, 2022 Alan Liu
2022-11-02 16:00 ` Alan Liu [this message]
2022-11-02 16:00 ` [PATCH 02/22] drm/amd/display: Adding HDMI SCDC DEVICE_ID define Alan Liu
2022-11-02 16:00 ` [PATCH 03/22] drm/amd/display: Cursor update refactor: PSR-SU support condition Alan Liu
2022-11-02 16:00 ` [PATCH 04/22] drm/amd/display: Update 709 gamma to 2.222 as stated in the standerd Alan Liu
2022-11-02 16:01 ` [PATCH 05/22] drm/amd/display: Consider dp cable id only when data is non zero Alan Liu
2022-11-02 16:01 ` [PATCH 06/22] drm/amd/display: Waiting for 1 frame to fix the flash issue on PSR1 Alan Liu
2022-11-02 16:01 ` [PATCH 07/22] drm/amd/display: Update SR watermarks for DCN314 Alan Liu
2022-11-02 16:01 ` [PATCH 08/22] drm/amd/display: Allow tuning DCN314 bounding box Alan Liu
2022-11-02 16:01 ` [PATCH 09/22] drm/amd/display: Zeromem mypipe heap struct before using it Alan Liu
2022-11-02 16:01 ` [PATCH 10/22] drm/amd/display: Use min transition for SubVP into MPO Alan Liu
2022-11-02 16:01 ` [PATCH 11/22] drm/amd/display: Disable phantom OTG after enable for plane disable Alan Liu
2022-11-10 15:39   ` Nathan Chancellor
2022-11-10 17:35     ` Liu, HaoPing (Alan)
2022-11-02 16:01 ` [PATCH 12/22] drm/amd/display: Disable DRR actions during state commit Alan Liu
2022-11-02 16:01 ` [PATCH 13/22] drm/amd/display: Fix fallback issues for DP LL 1.4a tests Alan Liu
2022-11-02 16:01 ` [PATCH 14/22] drm/amd/display: Fix FCLK deviation and tool compile issues Alan Liu
2022-11-02 16:01 ` [PATCH 15/22] drm/amd/display: Fix reg timeout in enc314_enable_fifo Alan Liu
2022-11-02 16:01 ` [PATCH 16/22] drm/amd/display: Fix gpio port mapping issue Alan Liu
2022-11-02 16:01 ` [PATCH 17/22] drm/amd/display: Only update link settings after successful MST link train Alan Liu
2022-11-02 16:01 ` [PATCH 18/22] drm/amd/display: Enforce minimum prefetch time for low memclk on DCN32 Alan Liu
2022-11-02 16:01 ` [PATCH 19/22] drm/amd/display: Set correct EOTF and Gamut flag in VRR info Alan Liu
2022-11-02 16:01 ` [PATCH 20/22] drm/amd/display: Add margin for max vblank time for SubVP + DRR Alan Liu
2022-11-02 16:01 ` [PATCH 21/22] drm/amd/display: Populate DP2.0 output type for DML pipe Alan Liu
2022-11-02 16:01 ` [PATCH 22/22] drm/amd/display: 3.2.211 Alan Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221102160117.506511-2-HaoPing.Liu@amd.com \
    --to=haoping.liu@amd.com \
    --cc=Alvin.Lee2@amd.com \
    --cc=Aurabindo.Pillai@amd.com \
    --cc=Bhawanpreet.Lakha@amd.com \
    --cc=Harry.Wentland@amd.com \
    --cc=Martin.Leung@amd.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=Sunpeng.Li@amd.com \
    --cc=agustin.gutierrez@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=pavle.kotarac@amd.com \
    --cc=qingqing.zhuo@amd.com \
    --cc=roman.li@amd.com \
    --cc=solomon.chiu@amd.com \
    --cc=stylon.wang@amd.com \
    --cc=wayne.lin@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.