Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1063710ybl; Wed, 14 Aug 2019 10:07:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS28dO8Wllcb8fu0YlRGx646Vciz0kgDszCFNd2B7/IrormCOiuWcjpx2CvA3OoDChnxS2 X-Received: by 2002:aa7:9dcd:: with SMTP id g13mr1007034pfq.204.1565802458578; Wed, 14 Aug 2019 10:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802458; cv=none; d=google.com; s=arc-20160816; b=WbtLQiGHikxBQlX7ZtCazfJ04/6gmQx7nNOLAvxPUGEnh2bQkrcytX4FSU6SjiTfQo eAvB200j+J77kDP75DdvvQsSd4JP3KZ0TYPo6YNUYFEAqtNNdSNkzJtapQpcdqnYlCbN Bq0XBj6RwdDof5HaEyLJAvisqGEBvaVE768CPsuiBI2UxMfAKVEVGbWEutvj01gFM8b2 IWUMC9EgL3O9TxO+HiMj/437n2NZLQbFKVoICUf0VFXwQbT1pmXB3IzVgYttbMKA+Dct y+T5N+4HFy0PSWPV1n2j7AycupPbrWj/yHXenr4L3JFUElKiDMGZg+wKkWFd9AP3ZZef jUZw== 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=YyCfKqKpD+r7Vqw2mNtdDekzR5c+F0aYAqlkpk7gQbU=; b=LxKa/EJLhFrM3ippYceyFy+m4Gcpr6OlssSvQpnXBivMxaX7tLhsQGV3jfJ0j5ynG9 81yktLTKCBKmn8pg9Olgfq24C4RUdTQ+Sq/HGXaR8KVgYFFCYciyyxT+LDwCketQN+Y9 sIrIaoxkpBk/5bGBV8YCqIvlu4mwPOCR58L2XPHbpVGoqA71AXJIAMOgTSCPfx99rR79 5Mo+yLilZlH1+gLr+nlU5BHu8o+13ySbXDvrI4HrXOq6eWB8YK1QPuR9ueNAxAjK3v1t jgfQiWMu/NnexihlBjUpi+f1WYg+zj2hr/CdZo+86CSmdiSWNK1nc5I/cRixylOAsnLm 6JeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hM+m+es5; 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 y1si164945pgg.490.2019.08.14.10.07.22; Wed, 14 Aug 2019 10:07:38 -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=hM+m+es5; 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 S1729293AbfHNREm (ORCPT + 99 others); Wed, 14 Aug 2019 13:04:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:53548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728673AbfHNREm (ORCPT ); Wed, 14 Aug 2019 13:04:42 -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 1C81B214DA; Wed, 14 Aug 2019 17:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802281; bh=b8t8g1ACQkvCxFBdeFia9t9I2vkxr4sZhptQsOoBZpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hM+m+es5SLJd+d8GyBHf5YF0izXt0emfJ6JeAcbh+OZPeHEmAq7P/o1C1ptjIRuzA FQxvzsIINqXaGZkQTgOEoecDsikTIcLC8QU2nfcTDEmRr4iF0KIN69yt1CrkiIt3H0 OKqasv1bG5UFgh03hLWpZkWK0WeCGWak0YI7G/58= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Murton Liu , Tony Cheng , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 5.2 065/144] drm/amd/display: Clock does not lower in Updateplanes Date: Wed, 14 Aug 2019 19:00:21 +0200 Message-Id: <20190814165802.555579467@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 492d9ec244923420af96db6b69ad7d575859aa92 ] [why] We reset the optimized_required in atomic_plane_disable flag immediately after it is set in atomic_plane_disconnect, causing us to never have flag set during next flip in UpdatePlanes. [how] Optimize directly after each time plane is removed. Signed-off-by: Murton Liu Reviewed-by: Tony Cheng Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 9e4d70a0055e1..c7b4c3048b71d 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 @@ -2416,6 +2416,12 @@ static void dcn10_apply_ctx_for_surface( if (removed_pipe[i]) dcn10_disable_plane(dc, &dc->current_state->res_ctx.pipe_ctx[i]); + for (i = 0; i < dc->res_pool->pipe_count; i++) + if (removed_pipe[i]) { + dc->hwss.optimize_bandwidth(dc, context); + break; + } + if (dc->hwseq->wa.DEGVIDCN10_254) hubbub1_wm_change_req_wa(dc->res_pool->hubbub); } -- 2.20.1