Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2249188pxb; Fri, 5 Feb 2021 12:43:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMALETII8eGWM+kSvAe7ujEm2a4XA3GyJLfMAPfUY5W9H0blIJmpoNmrTtwIcsD7lxoIWN X-Received: by 2002:a05:6402:57:: with SMTP id f23mr5336056edu.133.1612557826083; Fri, 05 Feb 2021 12:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612557826; cv=none; d=google.com; s=arc-20160816; b=KGVnADDjyhUyW/Y8Nc76S7vL/GH0VWyDgtlEyVaRgv2mAoBnZ2gwMTfQTbC7PDhSTc eD0EXoYUi4HbZmMhjTGQzqRkskTD7FKWpeZ7RPMKdkURsu054iU+UL6MqQ/nNhEI4xto VKhCp+ZWNYq2wxW22STByB9sRQ3Ksc6HfP/2uVHMJxXHc4mO6XLBmWP3savqvY1sWMe2 5R8RIRaiAgTTzBPNaKGjSjIkB0uaHn2qId0VnpLLMoW+cAIesClxGpT6YARmIVnNqL94 nKWK+ePt3Omqg1z3dzG7HOJY7Ep3GipONxat4MZGDJi94yExHJliVc4XB044IGcpohvA jfZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AkRB09BPilz4OtAKrhuQ4sQocHkOxSzkhXjuFCKprYY=; b=saKVDq+kD/xP6SVOeYFqvr/WIzDMKWjtlT1nT57QoSOeSrGCWyzDQp0rRKM+axn7uE wpgDMxlaNcNYtJ2CskjpYHYAvHpVKOjL3siatqC4M4qCkVbSzoxdWwnS3yZFM7uSOoA/ 17/PwI/BTMBzckkX5GDyJRuJAQYKTBKbBmq7dvVYlYBCD2hfrh4ntu5Z/vdeQMfUkljD Yn6lClm59D92rYlQqhmnTxE9fqRxIvQLbBom/qTHuHVLSku/MyHmVxsdcKf3CQGDzmoV O3oop2lWTWlgNo8JZQGUYwYrczFS6D6FV3pwy/sCsnKqF/FyYewe7KBQetBHXm0toxyc uhGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ha5yvuZP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si6148262edv.157.2021.02.05.12.43.21; Fri, 05 Feb 2021 12:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ha5yvuZP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233092AbhBES73 (ORCPT + 99 others); Fri, 5 Feb 2021 13:59:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:46108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbhBEPCu (ORCPT ); Fri, 5 Feb 2021 10:02:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 41CDE65065; Fri, 5 Feb 2021 14:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612534371; bh=3eSuLmnkEQxyn1kIi6VU+yURhO7h3WPw6ZW8154zkAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ha5yvuZPvf48/Duq+o7A1gJbuTvzVtAO8N94NIr7lIvJsQghJTDWXGybE34uNMASr ZmWV/zsUP1VyzByPK5EQOwwSPWuJ/4e01XHNFtsWazHc3JAlfGGoHm5ThJOGGOtwN0 d22Ov10A+po3VJyMxAK8yRWFjsPxGkAUFoaHhrLU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sung Lee , Tony Cheng , Aurabindo Pillai , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 28/32] drm/amd/display: Update dram_clock_change_latency for DCN2.1 Date: Fri, 5 Feb 2021 15:07:43 +0100 Message-Id: <20210205140653.533882006@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205140652.348864025@linuxfoundation.org> References: <20210205140652.348864025@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jake Wang [ Upstream commit 901c1ec05ef277ce9d43cb806a225b28b3efe89a ] [WHY] dram clock change latencies get updated using ddr4 latency table, but does that update does not happen before validation. This value should not be the default and should be number received from df for better mode support. This may cause a PState hang on high refresh panels with short vblanks such as on 1080p 360hz or 300hz panels. [HOW] Update latency from 23.84 to 11.72. Signed-off-by: Sung Lee Reviewed-by: Tony Cheng Acked-by: Aurabindo Pillai Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c index bb7add5ea2273..a6d5beada6634 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -257,7 +257,7 @@ struct _vcs_dpi_soc_bounding_box_st dcn2_1_soc = { .num_banks = 8, .num_chans = 4, .vmm_page_size_bytes = 4096, - .dram_clock_change_latency_us = 23.84, + .dram_clock_change_latency_us = 11.72, .return_bus_width_bytes = 64, .dispclk_dppclk_vco_speed_mhz = 3600, .xfc_bus_transport_time_us = 4, -- 2.27.0