All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qingqing Zhuo <qingqing.zhuo@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: stylon.wang@amd.com, Charlene Liu <Charlene.Liu@amd.com>,
	Sunpeng.Li@amd.com, Harry.Wentland@amd.com,
	qingqing.zhuo@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 06/19] drm/amd/display: update dio for two pixel per container case
Date: Sat, 18 Mar 2023 03:56:02 -0400	[thread overview]
Message-ID: <20230318075615.2630-7-qingqing.zhuo@amd.com> (raw)
In-Reply-To: <20230318075615.2630-1-qingqing.zhuo@amd.com>

From: Charlene Liu <Charlene.Liu@amd.com>

[why]
Processing rate of the DP encoder, must be programmed to be the same as
DIG_FIFO_OUTPUT_ PROCESSING_MODE in DP mode
0: 1 pixel per cycle
1: 2 pixel per cycle

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
---
 .../gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c
index c72448125976..89de64f18040 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c
@@ -286,6 +286,7 @@ static void enc32_stream_encoder_dp_unblank(
 		uint32_t n_vid = 0x8000;
 		uint32_t m_vid;
 		uint32_t n_multiply = 0;
+		uint32_t pix_per_cycle = 0;
 		uint64_t m_vid_l = n_vid;
 
 		/* YCbCr 4:2:0 : Computed VID_M will be 2X the input rate */
@@ -320,6 +321,10 @@ static void enc32_stream_encoder_dp_unblank(
 		REG_UPDATE_2(DP_VID_TIMING,
 				DP_VID_M_N_GEN_EN, 1,
 				DP_VID_N_MUL, n_multiply);
+
+		REG_UPDATE(DP_PIXEL_FORMAT,
+				DP_PIXEL_PER_CYCLE_PROCESSING_MODE,
+				pix_per_cycle);
 	}
 
 	/* make sure stream is disabled before resetting steer fifo */
-- 
2.34.1


  parent reply	other threads:[~2023-03-18  7:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18  7:55 [PATCH 00/19] DC Patches Mar 20th, 2023 Qingqing Zhuo
2023-03-18  7:55 ` [PATCH 01/19] drm/amd/display: Implement workaround for writing to OTG_PIXEL_RATE_DIV register Qingqing Zhuo
2023-03-18  7:55 ` [PATCH 02/19] drm/amd/display: remove outdated 8bpc comments Qingqing Zhuo
2023-03-18  7:55 ` [PATCH 03/19] drm/amd/display: Make DCN32 3dlut function available to future DCNs Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 04/19] drm/amd/display: Add const to a function Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 05/19] drm/amd/display: skip wait vblank Qingqing Zhuo
2023-03-18  7:56 ` Qingqing Zhuo [this message]
2023-03-18  7:56 ` [PATCH 07/19] drm/amd/display: power down eDP if eDP not present Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 08/19] drm/amd/display: initialize link_srv in virtual env Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 09/19] drm/amd/display: Add function pointer for validate bw usb4 Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 10/19] drm/amd/display: Add CRC and DMUB test support Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 11/19] drm/amd/display: add missing code change init pix_per_cycle Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 12/19] drm/amd/display: Set MPC_SPLIT_DYNAMIC for DCN10 Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 13/19] drm/amd/display: Set MPC_SPLIT_DYNAMIC for DCN301 Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 14/19] Revert "drm/amdgpu/display: change pipe policy for DCN 2.0" Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 15/19] drm/amd/display: align commit_planes_for_stream to latest dc code Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 16/19] drm/amd/display: fix wrong index used in dccg32_set_dpstreamclk Qingqing Zhuo
2023-03-18  7:56   ` Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 17/19] drm/amd/display: Set dcn32 caps.seamless_odm Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 18/19] drm/amd/display: 3.2.228 Qingqing Zhuo
2023-03-18  7:56 ` [PATCH 19/19] drm/amdgpu/smu11: enable TEMP_DEPENDENT_VMIN for navi1x Qingqing Zhuo
2023-03-20  8:26   ` Quan, Evan
2023-03-20 13:16     ` Zhuo, Qingqing (Lillian)
2023-03-21 14:48 ` [PATCH 00/19] DC Patches Mar 20th, 2023 Wheeler, Daniel

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=20230318075615.2630-7-qingqing.zhuo@amd.com \
    --to=qingqing.zhuo@amd.com \
    --cc=Alvin.Lee2@amd.com \
    --cc=Aurabindo.Pillai@amd.com \
    --cc=Bhawanpreet.Lakha@amd.com \
    --cc=Charlene.Liu@amd.com \
    --cc=Harry.Wentland@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=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.