drm/amdgpu: fix xgmi perfmon a-b-a problem
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 18 Jun 2020 14:40:14 +0000 (10:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Oct 2020 18:44:16 +0000 (14:44 -0400)
commit576e0ec26b68ff4cd58d1222a5988a4d29711e2a
treea5ab146e40e316a89feb2eeaafcd7dd3df1867d4
parent4b74ed75ae1303022c7a1da07e941302da31db46
drm/amdgpu: fix xgmi perfmon a-b-a problem

Mapping hw counters per event config will cause ABA problems so map per
event instead.

v2: Discontinue starting perf counters if add fails.  Make it clear what's
happening with pmc_start.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c
drivers/gpu/drm/amd/amdgpu/df_v3_6.c