drm/amd/powerplay: fix uninitialized variable
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Oct 2017 07:07:41 +0000 (15:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Nov 2017 08:49:14 +0000 (09:49 +0100)
commite6b5e3b6344efac00c010a7baa7dfd7052a06331
tree39b19a7024c2e33f4efdad2644126667ab7b5379
parent5a0dbfeed4fcf55c611030a63aeb8af9d501b9e4
drm/amd/powerplay: fix uninitialized variable

commit 8b95f4f730cba02ef6febbdc4ca7e55ca045b00e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c