]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amdgpu: add missing df counter disable write
authorJonathan Kim <jonathan.kim@amd.com>
Tue, 23 Feb 2021 21:17:16 +0000 (16:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Mar 2021 19:07:52 +0000 (14:07 -0500)
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>
drivers/gpu/drm/amd/amdgpu/df_v3_6.c

index 6b4b30a8dce5ead531d534840d81328c990a8c62..44109a6b8f4427060f9be5c5010f11df1083dce4 100644 (file)
@@ -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);