aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
diff options
context:
space:
mode:
authorJonathan Kim <jonathan.kim@amd.com>2021-02-23 16:17:16 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-03-02 14:07:52 -0500
commit640a28b50c4ad502b931750f13a5f743449e5755 (patch)
tree90a6cae1f76d16cc2a51b88afa90315c86654c35 /drivers/gpu/drm/amd/amdgpu/df_v3_6.c
parentdrm/amd/display: Fix HSplit causing increase in DSC Slice Count (diff)
downloadlinux-dev-640a28b50c4ad502b931750f13a5f743449e5755.tar.xz
linux-dev-640a28b50c4ad502b931750f13a5f743449e5755.zip
drm/amdgpu: add missing df counter disable write
Request to stop DF performance counters is missing the actual write to the controller register. Reported-by: Chris Freehill <chris.freehill@amd.com> Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/df_v3_6.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/df_v3_6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
index 6b4b30a8dce5..44109a6b8f44 100644
--- a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
+++ b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
@@ -568,6 +568,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
if (ret)
return ret;
+ df_v3_6_perfmon_wreg(adev, lo_base_addr, lo_val,
+ hi_base_addr, hi_val);
if (is_remove) {
df_v3_6_reset_perfmon_cntr(adev, config, counter_idx);