]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f0d67542d26ac60cf6c9c3ab352943ca37cf744
treea5ab146e40e316a89feb2eeaafcd7dd3df1867d4
parent55d771f09b5257d3b4fdbca6c49e9a24778e4086
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