lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f820ef6a-8d37-4c1e-b05a-244c8f45d693@amd.com>
Date:   Thu, 31 Aug 2023 15:53:25 -0400
From:   Harry Wentland <harry.wentland@....com>
To:     "Zuo, Jerry" <Jerry.Zuo@....com>,
        "Mahfooz, Hamza" <Hamza.Mahfooz@....com>,
        "amd-gfx@...ts.freedesktop.org" <amd-gfx@...ts.freedesktop.org>
Cc:     "stable@...r.kernel.org" <stable@...r.kernel.org>,
        "Li, Sun peng (Leo)" <Sunpeng.Li@....com>,
        "Siqueira, Rodrigo" <Rodrigo.Siqueira@....com>,
        "Deucher, Alexander" <Alexander.Deucher@....com>,
        "Koenig, Christian" <Christian.Koenig@....com>,
        "Pan, Xinhui" <Xinhui.Pan@....com>,
        David Airlie <airlied@...il.com>,
        Daniel Vetter <daniel@...ll.ch>, "Lei, Jun" <Jun.Lei@....com>,
        "Pillai, Aurabindo" <Aurabindo.Pillai@....com>,
        "Kazlauskas, Nicholas" <Nicholas.Kazlauskas@....com>,
        "Liu, Wenjing" <Wenjing.Liu@....com>,
        "Lee, Alvin" <Alvin.Lee2@....com>,
        "Kim, Sung joon" <Sungjoon.Kim@....com>,
        "Miess, Daniel" <Daniel.Miess@....com>,
        "Teeger, Gabe" <Gabe.Teeger@....com>,
        "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] Revert "drm/amd/display: Remove v_startup
 workaround for dcn3+"



On 2023-08-31 15:44, Zuo, Jerry wrote:
> [AMD Official Use Only - General]
> 
> 
> Series is:
> 
> Reviewed-By: Fangzhi Zuo <jerry.zuo@....com>
> 

Reviewed-by: Harry Wentland <harry.wentland@....com>

Harry

> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *发件人:* Mahfooz, Hamza <Hamza.Mahfooz@....com>
> *发送时间:* 星期四, 八月 31, 2023 3:39:04 下午
> *收件人:* amd-gfx@...ts.freedesktop.org <amd-gfx@...ts.freedesktop.org>
> *抄送:* Zuo, Jerry <Jerry.Zuo@....com>; Mahfooz, Hamza <Hamza.Mahfooz@....com>; stable@...r.kernel.org <stable@...r.kernel.org>; Wentland, Harry <Harry.Wentland@....com>; Li, Sun peng (Leo) <Sunpeng.Li@....com>; Siqueira, Rodrigo <Rodrigo.Siqueira@....com>; Deucher, Alexander <Alexander.Deucher@....com>; Koenig, Christian <Christian.Koenig@....com>; Pan, Xinhui <Xinhui.Pan@....com>; David Airlie <airlied@...il.com>; Daniel Vetter <daniel@...ll.ch>; Lei, Jun <Jun.Lei@....com>; Pillai, Aurabindo <Aurabindo.Pillai@....com>; Kazlauskas, Nicholas <Nicholas.Kazlauskas@....com>; Liu, Wenjing <Wenjing.Liu@....com>; Lee, Alvin <Alvin.Lee2@....com>; Kim, Sung joon <Sungjoon.Kim@....com>; Miess, Daniel <Daniel.Miess@....com>; Teeger, Gabe <Gabe.Teeger@....com>; dri-devel@...ts.freedesktop.org <dri-devel@...ts.freedesktop.org>; linux-kernel@...r.kernel.org <linux-kernel@...r.kernel.org>
> *主题:* [PATCH v2 1/2] Revert "drm/amd/display: Remove v_startup workaround for dcn3+"
> 
> This reverts commit 3a31e8b89b7240d9a17ace8a1ed050bdcb560f9e.
> 
> We still need to call dcn20_adjust_freesync_v_startup() for older DCN3+
> ASICs otherwise it can cause DP to HDMI 2.1 PCONs to fail to light up.
> 
> Cc: stable@...r.kernel.org
> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2809 <https://gitlab.freedesktop.org/drm/amd/-/issues/2809>
> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@....com>
> ---
>  .../drm/amd/display/dc/dml/dcn20/dcn20_fpu.c  | 24 ++++---------------
>  1 file changed, 4 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
> index 0989a0152ae8..1bfdf0271fdf 100644
> --- a/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
> +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
> @@ -1099,6 +1099,10 @@ void dcn20_calculate_dlg_params(struct dc *dc,
>                  context->res_ctx.pipe_ctx[i].plane_res.bw.dppclk_khz =
>                                                  pipes[pipe_idx].clks_cfg.dppclk_mhz * 1000;
>                  context->res_ctx.pipe_ctx[i].pipe_dlg_param = pipes[pipe_idx].pipe.dest;
> +               if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
> +                       dcn20_adjust_freesync_v_startup(
> +                               &context->res_ctx.pipe_ctx[i].stream->timing,
> +                               &context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
>  
>                  pipe_idx++;
>          }
> @@ -1927,7 +1931,6 @@ static bool dcn20_validate_bandwidth_internal(struct dc *dc, struct dc_state *co
>          int vlevel = 0;
>          int pipe_split_from[MAX_PIPES];
>          int pipe_cnt = 0;
> -       int i = 0;
>          display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC);
>          DC_LOGGER_INIT(dc->ctx->logger);
>  
> @@ -1951,15 +1954,6 @@ static bool dcn20_validate_bandwidth_internal(struct dc *dc, struct dc_state *co
>          dcn20_calculate_wm(dc, context, pipes, &pipe_cnt, pipe_split_from, vlevel, fast_validate);
>          dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel);
>  
> -       for (i = 0; i < dc->res_pool->pipe_count; i++) {
> -               if (!context->res_ctx.pipe_ctx[i].stream)
> -                       continue;
> -               if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
> -                       dcn20_adjust_freesync_v_startup(
> -                               &context->res_ctx.pipe_ctx[i].stream->timing,
> -                               &context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
> -       }
> -
>          BW_VAL_TRACE_END_WATERMARKS();
>  
>          goto validate_out;
> @@ -2232,7 +2226,6 @@ bool dcn21_validate_bandwidth_fp(struct dc *dc,
>          int vlevel = 0;
>          int pipe_split_from[MAX_PIPES];
>          int pipe_cnt = 0;
> -       int i = 0;
>          display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC);
>          DC_LOGGER_INIT(dc->ctx->logger);
>  
> @@ -2261,15 +2254,6 @@ bool dcn21_validate_bandwidth_fp(struct dc *dc,
>          dcn21_calculate_wm(dc, context, pipes, &pipe_cnt, pipe_split_from, vlevel, fast_validate);
>          dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel);
>  
> -       for (i = 0; i < dc->res_pool->pipe_count; i++) {
> -               if (!context->res_ctx.pipe_ctx[i].stream)
> -                       continue;
> -               if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
> -                       dcn20_adjust_freesync_v_startup(
> -                               &context->res_ctx.pipe_ctx[i].stream->timing,
> -                               &context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
> -       }
> -
>          BW_VAL_TRACE_END_WATERMARKS();
>  
>          goto validate_out;
> -- 
> 2.41.0
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ