drm/amd/pm: Use metric table for pcie speed/width
authorAsad Kamal <asad.kamal@amd.com>
Mon, 11 Mar 2024 06:03:10 +0000 (14:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:38:12 +0000 (13:38 -0400)
commitf37e5d216e22b397310f1f721e61a86b1b38bad7
tree31f819addd6fb4812307f5fc69231c5011cd1e32
parent96ab4b2ebb8564093ee09b932a4e181aa7b0f258
drm/amd/pm: Use metric table for pcie speed/width

Report pcie link speed/width using metric table in case
of one vf & if pmfw support is available, else report directly from
registers in case of pf. Skip reporting it for other cases.

v2: Skip multi-vf check(Lijo)

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