drm/i915/bdw: Set initial rps freq to RP1
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 1 Apr 2014 00:16:41 +0000 (17:16 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Apr 2014 20:58:26 +0000 (22:58 +0200)
commitf9bdc58557b7fb91d17f4d9800dfda67f92fafee
tree752903625b9275b573429d7f0ec6c4683efc74d1
parent49277c3171c4a59ea0a2004a848304cec65bcb7b
drm/i915/bdw: Set initial rps freq to RP1

Programming it outside of the rp0-rp1 range is considered a programming
error. Since we do not know that the previous value would actually be in
the range, program something we've read from the hardware, and therefore
know will work.

This is potentially an issue for platforms whose ranges are outside the
norms given in the programming guide (ie. early silicon)

v2: Use RP1 instead of RPn

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c