lkml.org 
[lkml]   [2021]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 50/57] drm/amd/display: Fixed corruptions on HPDRX link loss restore
    Date
    From: Vladimir Stempen <vladimir.stempen@amd.com>

    [ Upstream commit 4b08d8c78360241d270396a9de6eb774e88acd00 ]

    [why]
    Heavy corruption or blank screen reported on wake,
    with 6k display connected and FEC enabled

    [how]
    When Disable/Enable stream for display pipes on HPDRX,
    DC should take into account ODM split pipes.

    Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Vladimir Stempen <vladimir.stempen@amd.com>
    Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
    Acked-by: Anson Jacob <anson.jacob@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
    index 004e2b32e02fa..17e6fd8201395 100644
    --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
    +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
    @@ -3023,14 +3023,14 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd
    for (i = 0; i < MAX_PIPES; i++) {
    pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i];
    if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off &&
    - pipe_ctx->stream->link == link)
    + pipe_ctx->stream->link == link && !pipe_ctx->prev_odm_pipe)
    core_link_disable_stream(pipe_ctx);
    }

    for (i = 0; i < MAX_PIPES; i++) {
    pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i];
    if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off &&
    - pipe_ctx->stream->link == link)
    + pipe_ctx->stream->link == link && !pipe_ctx->prev_odm_pipe)
    core_link_enable_stream(link->dc->current_state, pipe_ctx);
    }

    --
    2.27.0


    \
     
     \ /
      Last update: 2021-02-05 23:13    [W:8.075 / U:0.636 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site