drm/i915/vlv: Workaround a punit issue in DDR data rate for 1333.
authorChon Ming Lee <chon.ming.lee@intel.com>
Thu, 7 Nov 2013 07:23:26 +0000 (15:23 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Nov 2013 14:19:23 +0000 (15:19 +0100)
commit2325991e021fb0da21d8d08009d1eea78133745a
treea0f94e297b835714d6e8141da96a6630077b1008
parent8245be31391974dc756a21cf2f2e25c7f53637c5
drm/i915/vlv: Workaround a punit issue in DDR data rate for 1333.

For DDR data rate reporting by Punit in PUNIT_GPU_FREQ_STS, the actual
data encoding is 00b=800, 01b=1066, 10b=1333, 11b=1333.

Some premium VLV sku will get the DDR_DATA_RATE set as 11.  As a result,
the turbo frequency reporting will be incorrect without this workaround.

Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c