Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp1072768lqh; Fri, 29 Mar 2024 06:34:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPT0e9Xk9Pq//hEKo6d10aADI9BWiVyRu8N2F9CA9iKqXR9t6hPJWUENMWuzezUBl9NAHC8a0KPBIMZ52WFq229RPVRvonLn3XkL/7AQ== X-Google-Smtp-Source: AGHT+IHTjwIyjqMEuLCU2osG5TBzduSpOfoTG58AOMTBy+WYObsAx+EA5uECGtW2aGe7dzZovAlc X-Received: by 2002:a17:906:bc8d:b0:a46:f3cc:ccab with SMTP id lv13-20020a170906bc8d00b00a46f3ccccabmr1359873ejb.4.1711719262324; Fri, 29 Mar 2024 06:34:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711719262; cv=pass; d=google.com; s=arc-20160816; b=r8SrOL3DiVRfgC+blBu4YM4ZmB5FHYKfJvsc7Mr70kd45qlDXXVXnqsgZTJopxSjSS P7bgraFR17aQul57hnBuM2VV0d63GtPj6YFf8JOjk/aKj35MvWOgIGfs/hTkFXoYiChW bnRYq6xS9np76Mv53ditgVl6y1x17EBtfUoLvkIFU6DtCJRGFu0v0kw/97BeGibnmDPj aKdkiht+axsbrB58lSB+I1YNdXgqbYijvqTRWE4ghMT0yTCydlh+qCTPdt3s0BhbEx2a pMHRgkGYUPTx4ADltP8EPpyEB4wINAk/1ccMct2p0X2casY2xH0if5Ph+KGieaHAi1ct YGvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=D28HILcCRbP5Crcd3pcv3ZS4s6tAkrmI3zHdhMUzomQ=; fh=6AwEBFWiA/kPcqyYZo/Lqp5TokM7jV1in89PtfITwk8=; b=tNregVTRnntBlpm71IePHBAd626Q+USohzoTarSNaHO3sI0q4NpAVehfEs8XeHwwbY z27g1grA+5wg00djZZfgZDgN5nZ+eqXVKkTgo4bPcfaTJUuqq27meTMO2ecY6SKdiJkO AHsjyAYOvRHG2W9TTnP8SVVEHWD08DfgaMexo6fORWJCCK83sMn1WOBCzC67fxuxmNzV /QaluWwPBokuFns8WLETzRJw7EFSH0qv1XVGhUbR3P2WZa4RZIY91kLBY/wPlt38xnU9 QJCy+SeoqfAt7eQ7HlAv5HpPB6y6/59/lnq1Am2sdIz9azXZovqNjGIJSrll5sGtRe10 xDaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGFmU6ns; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qf35-20020a1709077f2300b00a4e3c2d0ed4si384910ejc.1002.2024.03.29.06.34.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGFmU6ns; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CCEEE1F26AEE for ; Fri, 29 Mar 2024 13:32:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2D0B146593; Fri, 29 Mar 2024 12:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TGFmU6ns" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07AEE14658F; Fri, 29 Mar 2024 12:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711715981; cv=none; b=cEKZ0vIPBp0PgVCVBtCrPntqxVWpXOmEixUstWwfAaz+Pwzc209sjSqXMaYOB6+9hZclafTmTtrbL5Gb0iuxBC6JSGr8qbBHVsymVpfbSvYd/UhCGseMXmG8G2QVaKWrrctRkrD2J/Qek1OS9LNBnwBwH13gAdLR8wAFiqGQcgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711715981; c=relaxed/simple; bh=o0vYGURicCJl6LD77hR9+V7iy5H2Vp0VhcIYqv++Vsg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j5cJc7Rr3nXOvN6Vv0a3X+J1NT8W78EFxYqQjTUn7YkmpRxfSQRkhvdnKv5vHFhyfV0wIKO6C4ycb3RWixnQT7rN8FIPE2iagnTrvHuk7d8sdxBhaQvw7JlOirfCpoVsiuC07woCdBBsNZjbpAbUGhB2ZEn/t0q6k3OrV6W0NVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TGFmU6ns; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 438F6C433F1; Fri, 29 Mar 2024 12:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711715980; bh=o0vYGURicCJl6LD77hR9+V7iy5H2Vp0VhcIYqv++Vsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TGFmU6nsxW+7tC9te865N80bWdQAHGcVHc/mCP0zs+TivNxPbNDPTyNXj8i2RFpCh ax6KVmAUk1hNlTJTcK9Ox/Nkv50ogs1CfyR36zZEu1ZvafoRbCrqbhWukirVuRVvR7 RxAn4bEmp8z36dYiqdQGbe/94vS9j6ixHNcrCB6aZ3o4ir0nmn8KsOfZfPTYNeqDIG 7tFnJKuGi7DRWAwdbNRk1yU/nxfdo1VzYiTFz8BNmFBLAR5x3QXoyQAHPV0C7x0Fux xYHih08USOtoPmfFxdqvfAx5loIzSrl0Ts3WMNjsCYjF6Y3mVLsb7NoPwmRIu0nOci AVaSkNScWwwCg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sohaib Nadeem , Chaitanya Dhere , Alvin Lee , Tom Chung , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, jun.lei@amd.com, wenjing.liu@amd.com, austin.zheng@amd.com, Qingqing.Zhuo@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.8 09/98] drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz Date: Fri, 29 Mar 2024 08:36:40 -0400 Message-ID: <20240329123919.3087149-9-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Sohaib Nadeem [ Upstream commit d46fb0068c54d3dc95ae8298299c4d9edb0fb7c1 ] [why] Originally, PMFW said min FCLK is 300Mhz, but min DCFCLK can be increased to 400Mhz because min FCLK is now 600Mhz so FCLK >= 1.5 * DCFCLK hardware requirement will still be satisfied. Increasing min DCFCLK addresses underflow issues (underflow occurs when phantom pipe is turned on for some Sub-Viewport configs). [how] Increasing DCFCLK by raising the min_dcfclk_mhz Reviewed-by: Chaitanya Dhere Reviewed-by: Alvin Lee Acked-by: Tom Chung Signed-off-by: Sohaib Nadeem Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c index a0a65e0991041..ba76dd4a2ce29 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c @@ -2760,7 +2760,7 @@ static int build_synthetic_soc_states(bool disable_dc_mode_overwrite, struct clk struct _vcs_dpi_voltage_scaling_st entry = {0}; struct clk_limit_table_entry max_clk_data = {0}; - unsigned int min_dcfclk_mhz = 199, min_fclk_mhz = 299; + unsigned int min_dcfclk_mhz = 399, min_fclk_mhz = 599; static const unsigned int num_dcfclk_stas = 5; unsigned int dcfclk_sta_targets[DC__VOLTAGE_STATES] = {199, 615, 906, 1324, 1564}; -- 2.43.0