From mboxrd@z Thu Jan 1 00:00:00 1970 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 7E4CE1DD0E1; Wed, 19 Mar 2025 14:38: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=1742395120; cv=none; b=he9SmUynd2XDq13EW98Z4xAfeWnProF881hegJCA7OlqbdfrFl86nPwIjTLGzJ0PIeTSr86gx1cGgU1Y+3PwTCQ1vgJaJLJBeTmuR7ZUfva8ewNYTqfR3VgGXFr1mOcZXyg9rxhfXt8zX3yJ8AapOm1iT2B/Tbp5IDJgNe74/oQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395120; c=relaxed/simple; bh=QGwSs/xvKbMT/qeqSPIHAaISuLAaHS6ls4jtrCPjtLs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dq5Cd+uBuqoc2QJVUc9jAD4tNmPGBxYzHjOskqz7Fy5SpS5R0Qm+auKsTAVF9F7KHPwkoNsw0VcI61rVtvP/biE3g+lScputm0JCwjQxgMoy/IHMXvM128JnP+Ft43rIv+YHxV5CmeWSw90l9Gf78iYfLO8TyRTd9yoJCXS/UB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zOrcfH1R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zOrcfH1R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A41AC4CEE4; Wed, 19 Mar 2025 14:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1742395120; bh=QGwSs/xvKbMT/qeqSPIHAaISuLAaHS6ls4jtrCPjtLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zOrcfH1RH6tkl213AcuK/0FGA+BceuU/ayKLAqzUDZtQMzoCrGZzc+ZHybIAjYziM BzcPVu6eSTEdxIinB91ahCAwgqRP/4gxkqdbLiKxowjPiw0Cy3JeV1UhosJp2Mg/de qLm/9zb2Iw/LgOhIKODKtWaw09Lfx6PCzWtekUj4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Harry Wentland , Alex Hung , Tom Chung , Daniel Wheeler , Alex Deucher Subject: [PATCH 6.12 181/231] drm/amd/display: Assign normalized_pix_clk when color depth = 14 Date: Wed, 19 Mar 2025 07:31:14 -0700 Message-ID: <20250319143031.308150280@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250319143026.865956961@linuxfoundation.org> References: <20250319143026.865956961@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Hung commit 79e31396fdd7037c503e6add15af7cb00633ea92 upstream. [WHY & HOW] A warning message "WARNING: CPU: 4 PID: 459 at ... /dc_resource.c:3397 calculate_phy_pix_clks+0xef/0x100 [amdgpu]" occurs because the display_color_depth == COLOR_DEPTH_141414 is not handled. This is observed in Radeon RX 6600 XT. It is fixed by assigning pix_clk * (14 * 3) / 24 - same as the rests. Also fixes the indentation in get_norm_pix_clk. Reviewed-by: Harry Wentland Signed-off-by: Alex Hung Signed-off-by: Tom Chung Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher (cherry picked from commit 274a87eb389f58eddcbc5659ab0b180b37e92775) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -3388,10 +3388,13 @@ static int get_norm_pix_clk(const struct break; case COLOR_DEPTH_121212: normalized_pix_clk = (pix_clk * 36) / 24; - break; + break; + case COLOR_DEPTH_141414: + normalized_pix_clk = (pix_clk * 42) / 24; + break; case COLOR_DEPTH_161616: normalized_pix_clk = (pix_clk * 48) / 24; - break; + break; default: ASSERT(0); break;