drm/amdgpu/cz: store the forced dpm level
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jul 2015 16:29:00 +0000 (12:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jul 2015 16:39:42 +0000 (12:39 -0400)
So the selected forced level shows up properly in sysfs.

Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c

index 8d95547f263a9604986c3a788f62308d766f8025..cca8ee1f1570e54fd39cff586d3c920bc946dc64 100644 (file)
@@ -1717,6 +1717,8 @@ static int cz_dpm_force_dpm_level(struct amdgpu_device *adev,
                break;
        }
 
+       adev->pm.dpm.forced_level = level;
+
        return ret;
 }