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 8BF6720ADF9; Wed, 19 Mar 2025 14:40:46 +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=1742395246; cv=none; b=f+b0DhmDw6TYUdSlqtQNVN4ssgNXmdPNmXcrZHob15ednsQxegShlTZxMvS8x9aFSmAOQul8gk+ScD2WWp2RRdEjrYDj0R6CE65y2H7u/rQ2N9ppCVFPv+EvmST9MycTQHDku+cMWvIeyQoVNz1yrwi/HzXRb9CNTizhIeMsBvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742395246; c=relaxed/simple; bh=WOsOO08suYLXELe69hzgQkHOxRkyx9dl2EwqMkh6BwE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ehnI4xjAqJ75SSVCRyZUyKQzRObV16y9ckMyUHgqnZ6ir6+N/dIkp60zHO+7SJbc7OfyXdqdYRxJXtd8AsQtM92q6Q/xSoaAmAiyysLK2SjEqWJdCW5CPxkPoAUW8E7xv3Kw/IuxsSG872YHRWUkYYCfffkYuH0itCID2SLPN/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rdX/3h1z; 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="rdX/3h1z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F21CDC4CEE4; Wed, 19 Mar 2025 14:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1742395246; bh=WOsOO08suYLXELe69hzgQkHOxRkyx9dl2EwqMkh6BwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rdX/3h1z5j9eIy0sQf8kouH3+zVft7ipWxj6X/4LkK0356n+fP5mZQxgaAhAU0atR K/UeSsCLz+9ITFO3luX7dll40qutbYazy1CmGawgIabnq2DjIUya1pDSYJ2vA+iC3j Wtzbwuci85O9R5D69KsRltu9AJycfVDoUAznH+NU= 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.6 125/166] drm/amd/display: Assign normalized_pix_clk when color depth = 14 Date: Wed, 19 Mar 2025 07:31:36 -0700 Message-ID: <20250319143023.399435143@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250319143019.983527953@linuxfoundation.org> References: <20250319143019.983527953@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.6-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 @@ -2567,10 +2567,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;