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 41B8734D4CB; Fri, 21 Nov 2025 13:36:44 +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=1763732204; cv=none; b=TzOPgJWiqElmC0VwO9QIUOwhDlYkiRZYoiy5keWcWjATID1twbwXbMrGj11L05hYp/24nLdKoY83lLJqWFswnYmqMm99LFuxFIbh8imd4xM+2gLtuHWT7QI0P5ssXfBvQEnxR0sPOTBb6urR5T7b23b4Rwysucs+4QzTg85yxtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763732204; c=relaxed/simple; bh=YPDs9eK+S/V+QjkcHk9QXucmbkRs6l+zgZbTIywqRMU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NrfAj8K37WhIOii2tMjVvbsMZsVfuBoND5Xj/Po475WgzqcdDWO94AXoNgDU/FJZfjX6Ca7COa6RIg7YG8QswRv/YMCjoIPHkCvJ4EO/GWSnX2Q/ObSG7TBOFarfxJGGZk9k+UoHIDF7OhN+ANDA08y0ncD7oi6x/XyPdCQdjj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2UEV1wgW; 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="2UEV1wgW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9B2DC4CEF1; Fri, 21 Nov 2025 13:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763732204; bh=YPDs9eK+S/V+QjkcHk9QXucmbkRs6l+zgZbTIywqRMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2UEV1wgWss6dn8zPCzAVZ7tzVbCbRokNQTDCwlYZVRXsvJtfoPDAuoQ1nCrJQbefQ 2ubapC26Lk1jF94vFgJweT27HPfZJtC6oh34AvsScs0N0hyQhRPFH94K6pVGQlGslc 7OpVtYDPf8ZEs5+HKllldQlmEyPgE9cHfN5ZXMKQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, John Smith , Alex Deucher , Sasha Levin Subject: [PATCH 6.6 040/529] drm/amd/pm/powerplay/smumgr: Fix PCIeBootLinkLevel value on Fiji Date: Fri, 21 Nov 2025 14:05:39 +0100 Message-ID: <20251121130232.427323472@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130230.985163914@linuxfoundation.org> References: <20251121130230.985163914@linuxfoundation.org> User-Agent: quilt/0.69 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: John Smith [ Upstream commit 07a13f913c291d6ec72ee4fc848d13ecfdc0e705 ] Previously this was initialized with zero which represented PCIe Gen 1.0 instead of using the maximum value from the speed table which is the behaviour of all other smumgr implementations. Fixes: 18edef19ea44 ("drm/amd/powerplay: implement fw image related smu interface for Fiji.") Signed-off-by: John Smith Signed-off-by: Alex Deucher (cherry picked from commit c52238c9fb414555c68340cd80e487d982c1921c) Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c index 5e43ad2b29564..e7e497b166b3e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c @@ -2024,7 +2024,7 @@ static int fiji_init_smc_table(struct pp_hwmgr *hwmgr) table->VoltageResponseTime = 0; table->PhaseResponseTime = 0; table->MemoryThermThrottleEnable = 1; - table->PCIeBootLinkLevel = 0; /* 0:Gen1 1:Gen2 2:Gen3*/ + table->PCIeBootLinkLevel = (uint8_t) (data->dpm_table.pcie_speed_table.count); table->PCIeGenInterval = 1; table->VRConfig = 0; -- 2.51.0