drm/amd/pm: Update pci link speed for smu v13.0.6
authorAsad Kamal <asad.kamal@amd.com>
Thu, 10 Aug 2023 14:08:40 +0000 (22:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Aug 2023 15:34:37 +0000 (11:34 -0400)
commitf1d1abd616ba008ca679af0e793217ec11c55113
tree1441a891f4d3c4db0729a3cefd0c34f252010644
parente49311c44a6e5066c117715aadd48d06badfd144
drm/amd/pm: Update pci link speed for smu v13.0.6

Update pcie link speed registers for smu v13.0.6 &
populate gpu metric table with pcie link speed rather than
gen for smu v13_0_0, smu v13_0_6 & smu v13_0_7

v2:
Update ESM register address
Used macro to convert pcie gen to speed

v3:
Chaged macro to inline function for pcie gen to speed

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/inc/smu_v11_0.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h