Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Call trace info was found in dmesg when loading amdgpu

In the case of SRIOV, the register smnMp1_PMI_3_FIFO will get an invalid
value which will cause the "shift out of bound". In Ubuntu22.04, this
issue will be checked an related call trace will be reported in dmesg.

Signed-off-by: lin cao <lin.cao@amd.com>
Reviewed-by: Jingwen Chen <Jingwen.Chen2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

lin cao and committed by
Alex Deucher
748262eb 604d3a3f

+3 -1
+3 -1
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
··· 886 886 887 887 static int sienna_cichlid_init_smc_tables(struct smu_context *smu) 888 888 { 889 + struct amdgpu_device *adev = smu->adev; 889 890 int ret = 0; 890 891 891 892 ret = sienna_cichlid_tables_init(smu); ··· 897 896 if (ret) 898 897 return ret; 899 898 900 - sienna_cichlid_stb_init(smu); 899 + if (!amdgpu_sriov_vf(adev)) 900 + sienna_cichlid_stb_init(smu); 901 901 902 902 return smu_v11_0_init_smc_tables(smu); 903 903 }