Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13472121ybl; Sun, 29 Dec 2019 12:43:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzNkuMbIKlNmEMLtx5q3afAXsFapKSixg/5yqhXOvbwmpQe4plszNSVDzO5EvGWTWXsZtIf X-Received: by 2002:a9d:58cb:: with SMTP id s11mr72402768oth.55.1577652205617; Sun, 29 Dec 2019 12:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652205; cv=none; d=google.com; s=arc-20160816; b=RDHlASXvReS4L101eU48e4f4RshJjD+U4WlqXK/69JUybF75gD+fO9BmTBXhkvo8qj oY2vx249RIJ/agQoYSe3Z+COt1i1SpxKbT7yS5HFjl8UJtDWmjghLxUgyGGJx/Te5QKQ 7qkCgeCMk2uUKaHhBEdBF+bDa2Ymq1MleE0nFPK0YrDv6qDKe5rBQWw8NpPWcgw6VvNn SUHzo5WTJyZmZ/SwIsH5hKM/UgfMIataSmSeg7jln4uDuSZjWxyB+2pX+BcaMMGPNjH7 WLWwGDR4ENDSlYbAyM1c4YNCg5wovWzkl3T3+JXyMoNZlacxOJWYIpsFYz6gJR1tn43N 76NQ== 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=wJDQ8+LsTZvGzT+cogRCmjg7MEwTOmj2COqKifhn1aE=; b=YapzSr/TkRpfZp+exnXE1oABhlZcy/lIVgDp5/BPdSnBobLZ339lICegXsDtTn3uRT Cf2SlKaeFGzNdzgrlgTaJTzKCxKX0veIOrCUvn0vg/95m4UDh1ncEDqmE7J6DvxS612o ARxBbpJWievlGePdXCoXaaH9GXWvJyzihPvyr1w46pmNgbMMn7fCrkpbsnMDmEbgSWVO dsnNOC9d/zzj33Zj0GJ68UG8X3j8qksG6ZBOmMxd0MNwEaWm6uwUzudn9oWu3MEcTNd8 65eSxpEHvPywFfl7vSjaKv5qjHpzDgKdYC0x5kDp+xqrgMy34TPiNleoY6reNtKvrK6B Eupw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWhRRpPE; 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 q28si18889253oij.149.2019.12.29.12.43.14; Sun, 29 Dec 2019 12:43:25 -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=qWhRRpPE; 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 S1730503AbfL2Rne (ORCPT + 99 others); Sun, 29 Dec 2019 12:43:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:50892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730484AbfL2Rn3 (ORCPT ); Sun, 29 Dec 2019 12:43:29 -0500 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 55B02206A4; Sun, 29 Dec 2019 17:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641408; bh=vhuP7OMP4iiJ6M6gVjJF7OPbuLtw1t3tCsxa6xcODGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qWhRRpPEPRhtMWP7yyz0Ivbwy0wu0EIc5+dgrdz8olfpkD8HmdxuQQfI0lhUZzzF7 77nABhA+CYP0Lff9w1hPzjp+06mBPfyx3UH1y3PhrBEUBmqpn5mp1BPVFvVJrYNZix oZkr7tEr51SpZIdqahxIHic6C5TZ+BEfx4Lk3iUU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jaehyun Chung , Alvin Lee , Bhawanpreet Lakha , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 052/434] drm/amd/display: OTC underflow fix Date: Sun, 29 Dec 2019 18:21:45 +0100 Message-Id: <20191229172705.382904435@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@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: Jaehyun Chung [ Upstream commit 785908cf19c9eb4803f6bf9c0a7447dc3661d5c3 ] [Why] Underflow occurs on some display setups(repro'd on 3x4K HDR) on boot, mode set, and hot-plugs with. Underflow occurs because mem clk is not set high after disabling pstate switching. This behaviour occurs because some calculations assumed displays were synchronized. [How] Add a condition to check if timing sync is disabled so that synchronized vblank can be set to false. Signed-off-by: Jaehyun Chung Reviewed-by: Alvin Lee Acked-by: Bhawanpreet Lakha Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index 6b2f2f1a1c9c..3980c7b78259 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -1765,7 +1765,7 @@ int dcn20_populate_dml_pipes_from_context( pipe_cnt = i; continue; } - if (!resource_are_streams_timing_synchronizable( + if (dc->debug.disable_timing_sync || !resource_are_streams_timing_synchronizable( res_ctx->pipe_ctx[pipe_cnt].stream, res_ctx->pipe_ctx[i].stream)) { synchronized_vblank = false; -- 2.20.1