dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
  • * [PATCH AUTOSEL 4.19 048/100] drm/amd/display: fix odm combine pipe reset
           [not found] <20191018220525.9042-1-sashal@kernel.org>
           [not found] ` <20191018220525.9042-1-sashal-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    @ 2019-10-18 22:04 ` Sasha Levin
      1 sibling, 0 replies; 3+ messages in thread
    From: Sasha Levin @ 2019-10-18 22:04 UTC (permalink / raw)
      To: linux-kernel, stable
      Cc: Sasha Levin, Tony Cheng, amd-gfx, Dmytro Laktyushkin, dri-devel,
    	Alex Deucher, Bhawanpreet Lakha
    
    From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
    
    [ Upstream commit f25f06b67ba237b76092a6fc522b1a94e84bfa85 ]
    
    We fail to reset the second odm combine pipe. This change fixes
    odm pointer management.
    
    Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
    Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
    Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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_resource.c | 6 ++----
     1 file changed, 2 insertions(+), 4 deletions(-)
    
    diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
    index d440b28ee43fb..6896d69b8c240 100644
    --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
    +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
    @@ -1399,9 +1399,9 @@ bool dc_remove_plane_from_context(
     			 * For head pipe detach surfaces from pipe for tail
     			 * pipe just zero it out
     			 */
    -			if (!pipe_ctx->top_pipe ||
    -				(!pipe_ctx->top_pipe->top_pipe &&
    +			if (!pipe_ctx->top_pipe || (!pipe_ctx->top_pipe->top_pipe &&
     					pipe_ctx->top_pipe->stream_res.opp != pipe_ctx->stream_res.opp)) {
    +				pipe_ctx->top_pipe = NULL;
     				pipe_ctx->plane_state = NULL;
     				pipe_ctx->bottom_pipe = NULL;
     			} else {
    @@ -1803,8 +1803,6 @@ enum dc_status dc_remove_stream_from_ctx(
     				dc->res_pool->funcs->remove_stream_from_ctx(dc, new_ctx, stream);
     
     			memset(del_pipe, 0, sizeof(*del_pipe));
    -
    -			break;
     		}
     	}
     
    -- 
    2.20.1
    
    _______________________________________________
    dri-devel mailing list
    dri-devel@lists.freedesktop.org
    https://lists.freedesktop.org/mailman/listinfo/dri-devel
    
    ^ permalink raw reply related	[flat|nested] 3+ messages in thread

  • end of thread, other threads:[~2019-10-18 22:05 UTC | newest]
    
    Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20191018220525.9042-1-sashal@kernel.org>
         [not found] ` <20191018220525.9042-1-sashal-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2019-10-18 22:03   ` [PATCH AUTOSEL 4.19 012/100] drm/msm/dpu: handle failures while initializing displays Sasha Levin
    2019-10-18 22:05   ` [PATCH AUTOSEL 4.19 088/100] drm/amdgpu: fix memory leak Sasha Levin
    2019-10-18 22:04 ` [PATCH AUTOSEL 4.19 048/100] drm/amd/display: fix odm combine pipe reset Sasha Levin
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox