From: Alex Deucher Date: Tue, 14 Jul 2015 16:29:00 +0000 (-0400) Subject: drm/amdgpu/cz: store the forced dpm level X-Git-Tag: v4.9.8~3895^2~7^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58829aa67da95d03bcca7605d2556361a1785a08;p=platform%2Fkernel%2Flinux-rpi3.git drm/amdgpu/cz: store the forced dpm level So the selected forced level shows up properly in sysfs. Reviewed-by: Jammy Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c index 8d95547..cca8ee1 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c @@ -1717,6 +1717,8 @@ static int cz_dpm_force_dpm_level(struct amdgpu_device *adev, break; } + adev->pm.dpm.forced_level = level; + return ret; }