drm/amd/powerplay: fix uninitialized variable
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Oct 2017 07:07:41 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 21:26:10 +0000 (17:26 -0400)
commit8b95f4f730cba02ef6febbdc4ca7e55ca045b00e
tree5628fb8b21c6292b994f3e534b486432979cd103
parent2cb3a34abd035756f9ba3cde12f44f4b3e4c234b
drm/amd/powerplay: fix uninitialized variable

refresh_rate was not initialized when program
display gap.
this patch can fix vce ring test failed
when do S3 on Polaris10.

bug: https://bugs.freedesktop.org/show_bug.cgi?id=103102
bug: https://bugzilla.kernel.org/show_bug.cgi?id=196615
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c