drm/amdgpu/cgs: always set reference clock in mode_info
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2017 13:58:34 +0000 (09:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2017 15:28:35 +0000 (11:28 -0400)
commit73cc90798ff765341a1d9c2cfe18153ab231c9bb
treeea6f85b5c4a3d2448922635e26f23cbfe3e7ccd1
parentbeb3777682d5c296cc15a2a424f5a7a98476def0
drm/amdgpu/cgs: always set reference clock in mode_info

It's relevent regardless of whether there are displays
enabled.  Fixes garbage values for ref clock in powerplay
leading to incorrect fan speed reporting when displays
are disabled.

bug: https://bugs.freedesktop.org/show_bug.cgi?id=101653
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c