drm/amdgpu: fix CI bug uvd status not true in debugfs.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 25 Nov 2016 11:23:06 +0000 (19:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2016 23:08:25 +0000 (18:08 -0500)
can't get uvd's state by uvd_enabled. uvd_enabled
is used for request higher mclk.
in multi-display case, mclk has been in highest clock,
no matter uvd's state changed, uvd_enabled will not
be changed.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/ci_dpm.c

index 1027f92de32b33bdabff34df0f8366e5e93f4695..bda9e3de191e95b7bbb08926c438137a1a10510e 100644 (file)
@@ -6083,7 +6083,7 @@ ci_dpm_debugfs_print_current_performance_level(struct amdgpu_device *adev,
                activity_percent = activity_percent > 100 ? 100 : activity_percent;
        }
 
-       seq_printf(m, "uvd %sabled\n", pi->uvd_enabled ? "en" : "dis");
+       seq_printf(m, "uvd %sabled\n", pi->uvd_power_gated ? "dis" : "en");
        seq_printf(m, "vce %sabled\n", rps->vce_active ? "en" : "dis");
        seq_printf(m, "power level avg    sclk: %u mclk: %u\n",
                   sclk, mclk);