<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Thank you Siqueira.<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
--</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jay<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com><br>
<b>Sent:</b> Tuesday, September 6, 2022 11:56 AM<br>
<b>To:</b> Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Wentland, Harry <Harry.Wentland@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> Re: [PATCH] drm/amd/display: Fix register definitions for DCN32/321</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
On 2022-09-01 15:27, Aurabindo Pillai wrote:<br>
> [Why & How]<br>
> Fix the instatiation sequence for MPC registers and add a few other<br>
> missing register definitions that were ommited erroneously when copying<br>
> them over to enable runtime initialization of reigster offsets for<br>
> DCN32/321<br>
> <br>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com><br>
> ---<br>
>   .../drm/amd/display/dc/dcn32/dcn32_resource.c |  27 +--<br>
>   .../drm/amd/display/dc/dcn32/dcn32_resource.h | 216 ++++++++++++------<br>
>   .../amd/display/dc/dcn321/dcn321_resource.c   |  24 +-<br>
>   3 files changed, 166 insertions(+), 101 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c<br>
> index ef0a6d468a10..9d3b8568351e 100644<br>
> --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c<br>
> +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c<br>
> @@ -461,22 +461,17 @@ static const struct dcn20_dsc_mask dsc_mask = {<br>
>   };<br>
>   <br>
>   static struct dcn30_mpc_registers mpc_regs;<br>
> -#define dcn_mpc_regs_init()\<br>
> -             ( \<br>
> -             MPC_REG_LIST_DCN3_0_RI(0),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(1),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(2),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(3),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(0),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(1),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(2),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(3),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(0),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(1),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(2),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(3),\<br>
> -             MPC_DWB_MUX_REG_LIST_DCN3_0_RI(0)\<br>
> -             )<br>
> +<br>
> +#define dcn_mpc_regs_init() \<br>
> +     MPC_REG_LIST_DCN3_2_RI(0),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(1),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(2),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(3),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(0),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(1),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(2),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(3),\<br>
> +     MPC_DWB_MUX_REG_LIST_DCN3_0_RI(0)<br>
>   <br>
>   static const struct dcn30_mpc_shift mpc_shift = {<br>
>        MPC_COMMON_MASK_SH_LIST_DCN32(__SHIFT)<br>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h<br>
> index 60d8fad16eee..4c931905223d 100644<br>
> --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h<br>
> +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h<br>
> @@ -222,7 +222,8 @@ void dcn32_determine_det_override(struct dc_state *context, display_e2e_pipe_par<br>
>         SRI_ARR(DP_MSA_TIMING_PARAM4, DP, id),                                   \<br>
>         SRI_ARR(DP_MSE_RATE_CNTL, DP, id), SRI_ARR(DP_MSE_RATE_UPDATE, DP, id),  \<br>
>         SRI_ARR(DP_PIXEL_FORMAT, DP, id), SRI_ARR(DP_SEC_CNTL, DP, id),          \<br>
> -      SRI_ARR(DP_SEC_CNTL2, DP, id), SRI_ARR(DP_SEC_CNTL6, DP, id),            \<br>
> +      SRI_ARR(DP_SEC_CNTL1, DP, id), SRI_ARR(DP_SEC_CNTL2, DP, id),            \<br>
> +      SRI_ARR(DP_SEC_CNTL5, DP, id), SRI_ARR(DP_SEC_CNTL6, DP, id),            \<br>
>         SRI_ARR(DP_STEER_FIFO, DP, id), SRI_ARR(DP_VID_M, DP, id),               \<br>
>         SRI_ARR(DP_VID_N, DP, id), SRI_ARR(DP_VID_STREAM_CNTL, DP, id),          \<br>
>         SRI_ARR(DP_VID_TIMING, DP, id), SRI_ARR(DP_SEC_AUD_N, DP, id),           \<br>
> @@ -735,75 +736,6 @@ void dcn32_determine_det_override(struct dc_state *context, display_e2e_pipe_par<br>
>   #define MPC_DWB_MUX_REG_LIST_DCN3_0_RI(inst)                                   \<br>
>     SRII_DWB(DWB_MUX, MUX, MPC_DWB, inst)<br>
>   <br>
> -#define MPC_MCM_REG_LIST_DCN32_RI(inst)                                        \<br>
> -  ( \<br>
> -  SRII(MPCC_MCM_SHAPER_CONTROL, MPCC_MCM, inst),                               \<br>
> -      SRII(MPCC_MCM_SHAPER_OFFSET_R, MPCC_MCM, inst),                          \<br>
> -      SRII(MPCC_MCM_SHAPER_OFFSET_G, MPCC_MCM, inst),                          \<br>
> -      SRII(MPCC_MCM_SHAPER_OFFSET_B, MPCC_MCM, inst),                          \<br>
> -      SRII(MPCC_MCM_SHAPER_SCALE_R, MPCC_MCM, inst),                           \<br>
> -      SRII(MPCC_MCM_SHAPER_SCALE_G_B, MPCC_MCM, inst),                         \<br>
> -      SRII(MPCC_MCM_SHAPER_LUT_INDEX, MPCC_MCM, inst),                         \<br>
> -      SRII(MPCC_MCM_SHAPER_LUT_DATA, MPCC_MCM, inst),                          \<br>
> -      SRII(MPCC_MCM_SHAPER_LUT_WRITE_EN_MASK, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_B, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_G, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_R, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_B, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_G, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_R, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_0_1, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_2_3, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_4_5, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_6_7, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_8_9, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_10_11, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_12_13, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_14_15, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_16_17, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_18_19, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_20_21, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_22_23, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_24_25, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_26_27, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_28_29, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_30_31, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMA_REGION_32_33, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_B, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_G, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_R, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_B, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_G, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_R, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_0_1, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_2_3, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_4_5, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_6_7, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_8_9, MPCC_MCM, inst),                   \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_10_11, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_12_13, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_14_15, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_16_17, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_18_19, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_20_21, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_22_23, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_24_25, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_26_27, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_28_29, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_30_31, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_SHAPER_RAMB_REGION_32_33, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_3DLUT_MODE, MPCC_MCM, inst),                               \<br>
> -      SRII(MPCC_MCM_3DLUT_INDEX, MPCC_MCM, inst),                              \<br>
> -      SRII(MPCC_MCM_3DLUT_DATA, MPCC_MCM, inst),                               \<br>
> -      SRII(MPCC_MCM_3DLUT_DATA_30BIT, MPCC_MCM, inst),                         \<br>
> -      SRII(MPCC_MCM_3DLUT_READ_WRITE_CONTROL, MPCC_MCM, inst),                 \<br>
> -      SRII(MPCC_MCM_3DLUT_OUT_NORM_FACTOR, MPCC_MCM, inst),                    \<br>
> -      SRII(MPCC_MCM_3DLUT_OUT_OFFSET_R, MPCC_MCM, inst),                       \<br>
> -      SRII(MPCC_MCM_3DLUT_OUT_OFFSET_G, MPCC_MCM, inst),                       \<br>
> -      SRII(MPCC_MCM_3DLUT_OUT_OFFSET_B, MPCC_MCM, inst),                       \<br>
> -      SRII(MPCC_MCM_MEM_PWR_CTRL, MPCC_MCM, inst)                              \<br>
> -  )<br>
> -<br>
>   #define MPC_OUT_MUX_COMMON_REG_LIST_DCN1_0_RI(inst)                            \<br>
>     ( \<br>
>     SRII(MUX, MPC_OUT, inst), VUPDATE_SRII(CUR, VUPDATE_LOCK_SET, inst)          \<br>
> @@ -887,6 +819,149 @@ void dcn32_determine_det_override(struct dc_state *context, display_e2e_pipe_par<br>
>         SRII(MPCC_OGAM_LUT_CONTROL, MPCC_OGAM, inst)                             \<br>
>     )<br>
>   <br>
> +#define MPC_REG_LIST_DCN3_2_RI(inst) \<br>
> +     MPC_REG_LIST_DCN3_0_RI(inst),\<br>
> +     SRII(MPCC_MOVABLE_CM_LOCATION_CONTROL, MPCC, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_CONTROL, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_OFFSET_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_OFFSET_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_OFFSET_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_SCALE_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_SCALE_G_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_LUT_INDEX, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_LUT_DATA, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_LUT_WRITE_EN_MASK, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_0_1, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_2_3, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_4_5, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_6_7, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_8_9, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_10_11, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_12_13, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_14_15, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_16_17, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_18_19, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_20_21, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_22_23, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_24_25, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_26_27, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_28_29, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_30_31, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMA_REGION_32_33, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_0_1, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_2_3, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_4_5, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_6_7, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_8_9, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_10_11, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_12_13, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_14_15, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_16_17, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_18_19, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_20_21, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_22_23, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_24_25, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_26_27, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_28_29, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_30_31, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_SHAPER_RAMB_REGION_32_33, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_MODE, MPCC_MCM, inst), /*TODO: may need to add other 3DLUT regs*/\<br>
> +     SRII(MPCC_MCM_3DLUT_INDEX, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_DATA, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_DATA_30BIT, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_READ_WRITE_CONTROL, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_OUT_NORM_FACTOR, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_OUT_OFFSET_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_OUT_OFFSET_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_3DLUT_OUT_OFFSET_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_CONTROL, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_LUT_INDEX, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_LUT_DATA, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_LUT_CONTROL, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_SLOPE_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_SLOPE_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_SLOPE_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_BASE_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_BASE_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_START_BASE_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL1_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL2_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL1_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL2_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL1_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_END_CNTL2_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_OFFSET_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_OFFSET_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_OFFSET_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_0_1, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_2_3, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_4_5, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_6_7, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_8_9, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_10_11, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_12_13, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_14_15, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_16_17, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_18_19, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_20_21, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_22_23, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_24_25, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_26_27, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_28_29, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_30_31, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMA_REGION_32_33, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_SLOPE_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_SLOPE_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_SLOPE_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_BASE_CNTL_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_BASE_CNTL_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_START_BASE_CNTL_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL1_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL2_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL1_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL2_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL1_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_END_CNTL2_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_OFFSET_B, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_OFFSET_G, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_OFFSET_R, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_0_1, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_2_3, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_4_5, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_6_7, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_8_9, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_10_11, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_12_13, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_14_15, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_16_17, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_18_19, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_20_21, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_22_23, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_24_25, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_26_27, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_28_29, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_30_31, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_1DLUT_RAMB_REGION_32_33, MPCC_MCM, inst),\<br>
> +     SRII(MPCC_MCM_MEM_PWR_CTRL, MPCC_MCM, inst)<br>
> +<br>
>   /* OPTC */<br>
>   <br>
>   #define OPTC_COMMON_REG_LIST_DCN3_2_RI(inst)                                   \<br>
> @@ -1121,6 +1196,7 @@ void dcn32_determine_det_override(struct dc_state *context, display_e2e_pipe_par<br>
>         SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_D), SR(DCHUBBUB_DET0_CTRL),    \<br>
>         SR(DCHUBBUB_DET1_CTRL), SR(DCHUBBUB_DET2_CTRL), SR(DCHUBBUB_DET3_CTRL),  \<br>
>         SR(DCHUBBUB_COMPBUF_CTRL), SR(COMPBUF_RESERVED_SPACE),                   \<br>
> +      SR(DCHUBBUB_DEBUG_CTRL_0),                                               \<br>
>         SR(DCHUBBUB_ARB_USR_RETRAINING_CNTL),                                    \<br>
>         SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_A),                             \<br>
>         SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_B),                             \<br>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c<br>
> index a93dc00ebfb5..184997a5b464 100644<br>
> --- a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c<br>
> +++ b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c<br>
> @@ -466,21 +466,15 @@ static const struct dcn20_dsc_mask dsc_mask = {<br>
>   <br>
>   static struct dcn30_mpc_registers mpc_regs;<br>
>   #define dcn_mpc_regs_init()\<br>
> -             ( \<br>
> -             MPC_REG_LIST_DCN3_0_RI(0),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(1),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(2),\<br>
> -             MPC_REG_LIST_DCN3_0_RI(3),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(0),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(1),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(2),\<br>
> -             MPC_OUT_MUX_REG_LIST_DCN3_0_RI(3),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(0),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(1),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(2),\<br>
> -             MPC_MCM_REG_LIST_DCN32_RI(3),\<br>
> -             MPC_DWB_MUX_REG_LIST_DCN3_0_RI(0)\<br>
> -             )<br>
> +     MPC_REG_LIST_DCN3_2_RI(0),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(1),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(2),\<br>
> +     MPC_REG_LIST_DCN3_2_RI(3),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(0),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(1),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(2),\<br>
> +     MPC_OUT_MUX_REG_LIST_DCN3_0_RI(3),\<br>
> +     MPC_DWB_MUX_REG_LIST_DCN3_0_RI(0)<br>
>   <br>
>   static const struct dcn30_mpc_shift mpc_shift = {<br>
>        MPC_COMMON_MASK_SH_LIST_DCN32(__SHIFT)<br>
<br>
LGTM,<br>
<br>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com><br>
<br>
I asked Daniel to run a couple of tests with this patch. Let's wait for <br>
his result before we merge it.<br>
<br>
Thanks<br>
Siqueira<br>
</div>
</span></font></div>
</div>
</body>
</html>