From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380681; b=FDEH74PjbqPZQagFOSLw4qOOo+MmlfgAhXQVi+aNo8uWmsu+esRy5WhClSH+zay1yMzg fIEV33WFUsuonO4/zq60IXPhnKtxe4PPP6HiE+TXCPMvw1Du6KWPAmEUHQF9lq6OpiLs8 cR9RucaXNPAyuGvgj52WuQy4FnFvtixgVXhugVa+3GCyuvaIAaOR3tk3UxM6Vnxy5GIlf eBWuVjZbYOPc8EqIDKVy0XQcvtpKX3xb/3BN9JvliLumc1i7tvsD+eQBELJ1Ceo3CLrJz 9NdCnZkDoJJkmk/hkwxlrvsanWwo90zsrPqs7Xp3DyTVVatdBk17gLVQOlxhT0WocSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380681; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Se3/dU/xwYYKosoTH4gNTMBbuTzo4EwVbmsjuk/qStA=; b=NZreXwIXGolkmJ43uI9WnnuKp0ggge7SW+GMWLcEvh6OnMI8+BWa15AO2SlLz78aKYCr 7O60eeoECoxH6rsHmmtPB0jgnYbmy09q+Eb7mODh5/7iXsqsJLKFdWI2Mx6B13MbnGysu I5qYwrzbMAxFncjABv8Sr7ya3b+XxKY9qUHHLMLxLJSLR2myt2nVToa5AHe4fbYi60UQV KFjaEOJpSaisNea+J2kQ9QgfPrYF/WjG8o82juT9EiOWoGLXGQcP7zi0WWreogOCU1K4U EYGiQpDAI9ANzvQ8QrVu6L94kEOAHXp7G+6HhIrudy2K33VkgMUiM1QAuirxgeSPnPA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="QZyy/QnR"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EE11606A32D; Fri, 4 Dec 2026 10:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QZyy/QnR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EDA01F000C2; Fri, 4 Dec 2026 10:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380681; bh=Se3/dU/xwYYKosoTH4gNTMBbuTzo4EwVbmsjuk/qStA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QZyy/QnRxcZ4J6mzWyOikAfDQmVS8cIHnQADsorWJAKipBLc39DVqoedJb3fNilFt 0re/1poDw+0RW3QkiREvz8JsvLCLyWDWOGb1FtebFAYUCjUXLec3gITibThBYgNfh3 RLDp66P2jLnKKOn6OOhDpKHiTKbNwCHiz7MIPnnU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dillon Varone , Mario Limonciello , Alex Deucher , ChiaHsuan Chung , Wenjing Liu , Wayne Lin , Dan Wheeler Subject: [PATCH 7.3 378/742] drm/amd/display: Read DRAM channel width from SMU init table Date: Fri, 4 Dec 2026 19:04:02 +0900 Message-ID: <20261204100645.125920321@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wenjing Liu commit 3846f4542b4ba5a95405527d1e68864a9e9f3fcf upstream. [Why] The channel count came from the SMU init table but the channel width came from VBIOS vram info. Both values need to describe the same memory type. [How] Add DramChannelWidthBytes to MemoryConfig_t, using a reserved slot so the layout is unchanged. Populate the channel width in bw_params from the init table instead of VBIOS vram info. Cc: Dillon Varone Cc: Mario Limonciello Cc: Alex Deucher Reviewed-by: ChiaHsuan Chung Signed-off-by: Wenjing Liu Signed-off-by: Wayne Lin Tested-by: Dan Wheeler Signed-off-by: Alex Deucher (cherry picked from commit 37d64c58f610d771b7ab8cfbf7d9f5606939947b) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dalsmc.h | 3 ++- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dcn60_clk_mgr.c | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dalsmc.h +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dalsmc.h @@ -334,7 +334,8 @@ typedef struct { typedef struct { uint32_t NumUmcChannels; - uint32_t Reserved[3]; + uint32_t DramChannelWidthBytes; + uint32_t Reserved[2]; } MemoryConfig_t; /** --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dcn60_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/dcn60_clk_mgr.c @@ -670,8 +670,7 @@ static bool dcn60_fetch_dal_init_table(s dcn60_populate_dc_mode_limit(&bw_params->dc_mode_limit, init_table); bw_params->num_channels = init_table->MemoryConfig.NumUmcChannels; - bw_params->dram_channel_width_bytes = - clk_mgr->base.ctx->dc_bios->vram_info.dram_channel_width_bytes; + bw_params->dram_channel_width_bytes = init_table->MemoryConfig.DramChannelWidthBytes; dcn60_populate_utm_qos_model(clk_mgr, &bw_params->utm_qos_model, init_table);