drm/amdgpu: Fix pcie_bw on Vega20
authorKent Russell <kent.russell@amd.com>
Wed, 31 Jul 2019 13:24:32 +0000 (09:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:18:58 +0000 (10:18 -0500)
commit612e4ed99bdd7d4aae207a69dea16e609d304e3b
treeb85f5ea36984f9695d873b0ca376189f7bdb556b
parent57d352f7699efedeebcf809df5e01e6fd51e2191
drm/amdgpu: Fix pcie_bw on Vega20

The registers used for VG20 are different in that certain performance
counters were split off to TXCLK3/4. Vega10/12 doesn't have this, so add
a new vg20_get_pcie_usage to reflect this change.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c