drm/i915/psr: Warn for erroneous enabling of both PSR1 and PSR2.
authorDhinakaran Pandiyan <dhinakaran.pandiyan@gmail.com>
Tue, 26 Jun 2018 09:05:22 +0000 (02:05 -0700)
committerDhinakaran Pandiyan <dhinakaran.pandiyan@gmail.com>
Tue, 26 Jun 2018 18:45:07 +0000 (11:45 -0700)
commitbcc233b2aa7878bdcfbad6505ac66383a82a73dd
treea878e3baf5e54cc87ae98b41642b88e5a7334a94
parentc12e0643a05d978657877630d4da1ace06ea3720
drm/i915/psr: Warn for erroneous enabling of both PSR1 and PSR2.

Depending whether PSR1 or PSR2 was configured, we print a warning if the
corresponding control mmio indicated PSR was erroneously enabled. As
Chris pointed out, it makes more sense to check for both the mmio's
since we expect neither PSR1 nor PSR2 to be enabled when psr_activate() is
called.

v2: Read PSR2 control register only on supported platforms (Rodrigo)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180626090522.17682-1-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_psr.c