Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1540856pxb; Tue, 8 Feb 2022 21:38:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYz7UdYeuP331PgYraH2Pa/xxMNxj5gFfrzQ0Z18DTHFJBBzWXcuZh8jITi+UHBx4/DGQL X-Received: by 2002:a17:902:e552:: with SMTP id n18mr860007plf.152.1644385105330; Tue, 08 Feb 2022 21:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644385105; cv=none; d=google.com; s=arc-20160816; b=w0ryyRN6iUB83nJYNNsmTm81p9em53+YJ2Y490dy55//MLNnBG4mR7GzJxapj3v+Dq 4b5DF5F3+EuAjufCOIilNMkiJ8y76I3Jdw1UhpLhETejU7tB0kw7p4ypfIHbPfolZ/S8 tki5HEeZi5Frt6VGSVpKMM+0DUJtDK43LVQOoYYbJ1wL957Ug1vUfRB0BQoc4h4ZSrKz cxJRaonAFtmwqHf3X88nZSHkEH0l2uX0kuilbPaqb/B+7yGpKQU5UEA78GfQg+XTWPG6 wz+RLFFFrxIjERDyTkYWhpdk185uC/saaE2n8GfjqYgiIhPwly0Mfbrp24y438D8B7Yg etoA== 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=79TEobUNv/znadmXgTSRm7XdEC+4f/dy5hZiM6O+EJA=; b=rcFnc9ren2CX/+rcsuDM6BKPholg7h+YRA5dE95wn891WNFojNaa2rMK4wbPuCnkqG 7xfqFVTMDtKynhEOGHxDobCDi+nUO1Qq5bZErlEcEGs4X4BjPhsdQXWi3duta+45/Yqr g1utH5ZZCoWA0+FN95RS6aRL0pyfsXE0d4RZWxO7Y4a3cEs1kJao6ErXC8oEzCJ4rgk+ OOfTga8AdADL0silQo9rXlXKInmKfEYE68yrgDd43PwIbVLOKomfrlFtGrG18z5JraVr wg1metXpuuTu/u2i19ev/ChPBvcdyhEe+2ozgKDC/MFstux52dvv9jYwRUe9Tcl6eJkR iasQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ni7sS6sN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k10si14450855plt.595.2022.02.08.21.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 21:38:25 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ni7sS6sN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42B32DF28A34; Tue, 8 Feb 2022 21:34:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244563AbiBGLom (ORCPT + 99 others); Mon, 7 Feb 2022 06:44:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385967AbiBGLdM (ORCPT ); Mon, 7 Feb 2022 06:33:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2710AC043181; Mon, 7 Feb 2022 03:33:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B1FE8B8111C; Mon, 7 Feb 2022 11:33:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C26FEC004E1; Mon, 7 Feb 2022 11:33:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233589; bh=45tOOHDrjTYStgkC+9Zc7z5T7IhQblOXUrM1/Oiv+8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ni7sS6sNoeweGTWwLpr2YI0+Zb3VRj+d+Mgxezjih31L9++P6XrrWPLh+uK6EjY+d 3vkIZ46fRmBTDGDwxXQ48xE6VuMb80oGCRftB0fdxgCB4V6JC6ftARpX8Y0bq9R2Pa ztBeRzJ7qSP0TfrrVz+z2LNH/+JJp7jcMm9zbYt8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Wheeler , Aric Cyr , Stylon Wang , Paul Hsieh , Alex Deucher Subject: [PATCH 5.16 027/126] drm/amd/display: watermark latencies is not enough on DCN31 Date: Mon, 7 Feb 2022 12:05:58 +0100 Message-Id: <20220207103805.085322616@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103804.053675072@linuxfoundation.org> References: <20220207103804.053675072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Hsieh commit f5fa54f45ab41cbb1f99b1208f49554132ffb207 upstream. [Why] The original latencies were causing underflow in some modes. Resolution: 2880x1620@60p when HDR enable [How] 1. Replace with the up-to-date watermark values based on new measurments 2. Correct the ddr_wm_table name to DDR5 on DCN31 Tested-by: Daniel Wheeler Reviewed-by: Aric Cyr Acked-by: Stylon Wang Signed-off-by: Paul Hsieh Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c | 20 +++++------ 1 file changed, 10 insertions(+), 10 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c @@ -329,38 +329,38 @@ static struct clk_bw_params dcn31_bw_par }; -static struct wm_table ddr4_wm_table = { +static struct wm_table ddr5_wm_table = { .entries = { { .wm_inst = WM_A, .wm_type = WM_TYPE_PSTATE_CHG, .pstate_latency_us = 11.72, - .sr_exit_time_us = 6.09, - .sr_enter_plus_exit_time_us = 7.14, + .sr_exit_time_us = 9, + .sr_enter_plus_exit_time_us = 11, .valid = true, }, { .wm_inst = WM_B, .wm_type = WM_TYPE_PSTATE_CHG, .pstate_latency_us = 11.72, - .sr_exit_time_us = 10.12, - .sr_enter_plus_exit_time_us = 11.48, + .sr_exit_time_us = 9, + .sr_enter_plus_exit_time_us = 11, .valid = true, }, { .wm_inst = WM_C, .wm_type = WM_TYPE_PSTATE_CHG, .pstate_latency_us = 11.72, - .sr_exit_time_us = 10.12, - .sr_enter_plus_exit_time_us = 11.48, + .sr_exit_time_us = 9, + .sr_enter_plus_exit_time_us = 11, .valid = true, }, { .wm_inst = WM_D, .wm_type = WM_TYPE_PSTATE_CHG, .pstate_latency_us = 11.72, - .sr_exit_time_us = 10.12, - .sr_enter_plus_exit_time_us = 11.48, + .sr_exit_time_us = 9, + .sr_enter_plus_exit_time_us = 11, .valid = true, }, } @@ -688,7 +688,7 @@ void dcn31_clk_mgr_construct( if (ctx->dc_bios->integrated_info->memory_type == LpDdr5MemType) { dcn31_bw_params.wm_table = lpddr5_wm_table; } else { - dcn31_bw_params.wm_table = ddr4_wm_table; + dcn31_bw_params.wm_table = ddr5_wm_table; } /* Saved clocks configured at boot for debug purposes */ dcn31_dump_clk_registers(&clk_mgr->base.base.boot_snapshot, &clk_mgr->base.base, &log_info);