Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1064160ybl; Wed, 14 Aug 2019 10:08:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqykgF4WNKXAmb1PQ0xpg/5jenoo1KSpG7m2fRJd2s9O+koYFjGLCh1nc2MeBxi+fCXfCrHD X-Received: by 2002:a17:902:2bc8:: with SMTP id l66mr425898plb.222.1565802480048; Wed, 14 Aug 2019 10:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802480; cv=none; d=google.com; s=arc-20160816; b=wR7DG0o4977a3idVlyYaYtjxMT48Rj3MdZ50E4+/7uD1vY62tDzWYuaxme93EwMOD8 ss+48IiEYzvYENY1X0v3v9W22wPT6e2JaEWnvAW3a/yPR4zLr76JsSoh3xIT6mTGx2kG 5xcmomFCZbrcVXaZpqJPu5UhfsFJDqQgSOEWRA0ecWMqsThXKvhraKRjAVHfpgLNUXP4 SDgwBbZYXF3UhoOJBCwcXoLkc4ZJ7aIXBLGXW/vfbRL28vnL+WD0wMcbM9GNZjlDAKrW kn6IGJ69Chw2VaNDm7xNR7LNKcw2OW2qt4TLR2KVGbVvk7O0UEe06FeInhNIA0EmqcsP vdoQ== 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=w/vUOuyBciYHm5NzyMlPSRg1i34rkDxAf44PIUPnr9Y=; b=ywNEQMPf7094SWxIGrbFT4VJ3gYjkDwS01x5Bi9NMAyiAezNjzTXK+AQu2ah2qsTUP pJAx1+7GmcwRwDdsPgzurDjsaCX19Wvdg7U1Mr2vHouI8S6r5QK182zaEsx+DzBZOQLF sfPGpjWCbN7tx4fUdwjUgkZz6zSVBrLeP7NPilsOctz1L7v1HetmNGnsws/2KP0jMjXS ro9oyBZ5133pXyx7auNvx0R2nhhHeFl3QcfPBvEQi5/IOrg/U7vuf4R2Wcgfze3YBNch VV9AnLzfg/f8hoeXQnzI1fp3X4HYSdhLPhMsXPuPbEUZF7S9kSmwwVR/ziwjM7junqEK PVrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pN/1QTTS"; 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 n12si159883pgi.550.2019.08.14.10.07.43; Wed, 14 Aug 2019 10:08:00 -0700 (PDT) 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="pN/1QTTS"; 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 S1729316AbfHNREx (ORCPT + 99 others); Wed, 14 Aug 2019 13:04:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:53742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728672AbfHNREw (ORCPT ); Wed, 14 Aug 2019 13:04:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 5D2D421852; Wed, 14 Aug 2019 17:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802291; bh=Mzf1tfHHTh5RL/PRu3VQJ/WizmV6du3nA1sieXUlaUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pN/1QTTS1ab+kUDw8V9YPq7xhtFdwBx/nZVf62GZ4fkZLnKsOjpEspmeQM+Qv+iEn 2T74rAnSre85OQxNd+aq7NQ0ynfYnWCCgV9Pe64MuSfNoehLHxLL/RLy71sLh6imYH or4VCpQQDANrGbNxVz1JwQMzuN06spAVNAWrqPXY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Yang , Anthony Koo , Leo Li , Tony Cheng , Alex Deucher , Sasha Levin Subject: [PATCH 5.2 069/144] drm/amd/display: put back front end initialization sequence Date: Wed, 14 Aug 2019 19:00:25 +0200 Message-Id: <20190814165802.735263887@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@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 [ Upstream commit feb7eb522e0a7a22c1e60d386bd3c3bfa1d5e4f7 ] [Why] Seamless boot optimization removed proper front end power off sequence. In driver disable enable case, this causes driver to power gate hubp and dpp while there is still memory fetching going on, this can cause invalid memory requests to be generated which will hang data fabric. [How] Put back proper front end power off sequence Signed-off-by: Eric Yang Reviewed-by: Anthony Koo Acked-by: Leo Li Acked-by: Tony Cheng Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index c7b4c3048b71d..5cc5dabf4d652 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -1120,16 +1120,7 @@ static void dcn10_init_hw(struct dc *dc) * everything down. */ if (dcb->funcs->is_accelerated_mode(dcb) || dc->config.power_down_display_on_boot) { - for (i = 0; i < dc->res_pool->pipe_count; i++) { - struct hubp *hubp = dc->res_pool->hubps[i]; - struct dpp *dpp = dc->res_pool->dpps[i]; - - hubp->funcs->hubp_init(hubp); - dc->res_pool->opps[i]->mpc_tree_params.opp_id = dc->res_pool->opps[i]->inst; - plane_atomic_power_down(dc, dpp, hubp); - } - - apply_DEGVIDCN10_253_wa(dc); + dc->hwss.init_pipes(dc, dc->current_state); } for (i = 0; i < dc->res_pool->audio_count; i++) { @@ -1298,10 +1289,6 @@ static bool dcn10_set_input_transfer_func(struct pipe_ctx *pipe_ctx, return result; } - - - - static bool dcn10_set_output_transfer_func(struct pipe_ctx *pipe_ctx, const struct dc_stream_state *stream) -- 2.20.1