drm/i915: Protect older gen against intel_gt_init_powersave()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Aug 2016 10:15:27 +0000 (11:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Aug 2016 11:10:43 +0000 (12:10 +0100)
commit2a13ae79524ed8bec32a623e2763c649fa3e0846
treec34490592315ecda00881c77dcde74bc5b3fe48c
parent238010ed6cc8d3b5c6b146ab813838c6a6992a7b
drm/i915: Protect older gen against intel_gt_init_powersave()

In the middle of intel_gt_init_powersave() we have an if-chain that ends
with a universal else clause to read gen6+ registers. Older platforms
like Pineview that end up here do not like those registers and may even
OOPS whilst reading them!

Fixes: 3ea9a80132 ("drm/i915: Perform static RPS frequency setup ...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470132927-1821-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c