]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Skip P2S load for SMU v13.0.12
authorAsad Kamal <asad.kamal@amd.com>
Thu, 19 Dec 2024 11:16:37 +0000 (19:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:01 +0000 (21:03 -0500)
Skip P2S table load for SMU v13.0.12

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index cf313da886073fda1a0f71f987bf9881004c673c..dc839f9a2295c1792186bb656614744da9dc8233 100644 (file)
@@ -464,8 +464,9 @@ static int smu_v13_0_6_init_microcode(struct smu_context *smu)
        int var = (adev->pdev->device & 0xF);
        char ucode_prefix[15];
 
-       /* No need to load P2S tables in IOV mode */
-       if (amdgpu_sriov_vf(adev))
+       /* No need to load P2S tables in IOV mode or for smu v13.0.12 */
+       if (amdgpu_sriov_vf(adev) ||
+           (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 12)))
                return 0;
 
        if (!(adev->flags & AMD_IS_APU)) {