Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4495950ybx; Mon, 4 Nov 2019 14:22:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzjk3Mz2AF6YwxOC4U+QCNF7mxToB3UHkSLx+pcgC/zZfanmYS3vcn172sd3sTz80pgqiWx X-Received: by 2002:a17:906:6bc4:: with SMTP id t4mr27166275ejs.1.1572906134050; Mon, 04 Nov 2019 14:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572906134; cv=none; d=google.com; s=arc-20160816; b=L2sm6v2WhoOv2xs0uSPdQUB7RJrWLluehSrY9W+eiw/Qe0aXgtmm3S1k1XvncnVk4I c9MCye+UWYkX8FKUBhH499K/UrsrwPbgLoGs9OQlaoH09r5LNZJq2Q4mhcfQ6ulFuHn+ IqCDOIAByUqY22yV+190Q+xmTD3vJZBWVVrHgkiQnpfsLRjgv7Z/xDcg0M22r+SFAHXL DqKRNHw3I9pDxWAjHO+N02rxcFIa+xsBGXubgqTB8sSstgJX3clyX6d4pr9Rs3oZZskX 3PapI+ekJJTp/mG0Zv9aUBGBt+GpvR0rW9mTX4RGkwO7Ahj+CnalR4PrMaXs+DlHvLNw EEqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aQCTEbZlscwlYyiztbHxpL4UgDb55tYnD2Y8ilw934Y=; b=uAvRI9pqF59s4vK2R/baR634WHGtCBp9QtmiK4mNKa6oUIKJqQ85q5sa1999hAW+UJ /7YyCGr5yl88nkut+QsVGLiEGd4+Fi5eJDVvZbHFSbs9NjSS088oSvtrTOCEHZVm47ye V7NteWJ/sNkoXZ3I/lhhvXEGI5EbiSuBssaobgMvpO2DXNq+sd/4vXOvpnIjQuxOOs9f o+mRtD3p0iSsNtAoQS3rtboXFzDfBC0UousR+6i43I4wmGa4fYyyWCPkSTVBsTNGXXCJ 8BmTNKoe2VJvUA04MWhIRjp4V09YiodPTMNiyJptoR6Yt2e64J+QPhxP/p8Gbyunav2v wLAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8tYiGkl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hh19si5300986ejb.209.2019.11.04.14.21.40; Mon, 04 Nov 2019 14:22:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8tYiGkl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387705AbfKDV7V (ORCPT + 99 others); Mon, 4 Nov 2019 16:59:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:56304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731038AbfKDV7J (ORCPT ); Mon, 4 Nov 2019 16:59:09 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C438520659; Mon, 4 Nov 2019 21:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572904749; bh=sP7BL7tqYErBOvL8W0EM0ifrxBAL2ZwmaMUBXDKCsdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x8tYiGklybRxgLqrTEvTdZewwLO7TvHBKBfXAsSTmO5EOOLW2Y8iTtiPV3sHD0MWR RLQakrmRTFmvFWGu3i3wtTkmTHyO9qu7uJObopbnOrfty2YOE5Sg0pjF55qP9VbfV1 /qM3ucEOsAGPCYd/jfXG9HzRpCLuz7RR+xvSU/Xc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmytro Laktyushkin , Tony Cheng , Bhawanpreet Lakha , Alex Deucher , Sasha Levin Subject: [PATCH 4.19 056/149] drm/amd/display: fix odm combine pipe reset Date: Mon, 4 Nov 2019 22:44:09 +0100 Message-Id: <20191104212140.255532616@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212126.090054740@linuxfoundation.org> References: <20191104212126.090054740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmytro Laktyushkin [ Upstream commit f25f06b67ba237b76092a6fc522b1a94e84bfa85 ] We fail to reset the second odm combine pipe. This change fixes odm pointer management. Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Bhawanpreet Lakha Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- 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