]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/pm/powerplay/smumgr: Fix PCIeBootLinkLevel value on Iceland
authorJohn Smith <itistotalbotnet@gmail.com>
Tue, 21 Oct 2025 09:09:09 +0000 (11:09 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 15:02:19 +0000 (11:02 -0400)
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: 18aafc59b106 ("drm/amd/powerplay: implement fw related smu interface for iceland.")
Signed-off-by: John Smith <itistotalbotnet@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 92b0a6ae6672857ddeabf892223943d2f0e06c97)

drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c

index 1f50f1e74c4870ff50104fb7d650bd448dc20ebb..aa3ae9b115c4243f2a24c95ac7050345f71f5789 100644 (file)
@@ -2028,7 +2028,7 @@ static int iceland_init_smc_table(struct pp_hwmgr *hwmgr)
        table->VoltageResponseTime  = 0;
        table->PhaseResponseTime  = 0;
        table->MemoryThermThrottleEnable  = 1;
-       table->PCIeBootLinkLevel = 0;
+       table->PCIeBootLinkLevel = (uint8_t) (data->dpm_table.pcie_speed_table.count);
        table->PCIeGenInterval = 1;
 
        result = iceland_populate_smc_svi2_config(hwmgr, table);