drm/i915/psr: Preserve SRD_CTL bit 29 on PSR init
authorJim Bride <jim.bride@linux.intel.com>
Tue, 8 Aug 2017 21:51:34 +0000 (14:51 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 9 Aug 2017 17:48:36 +0000 (10:48 -0700)
commit912d64123d354dd2e4ced479e1d93e74ea4c99a8
tree883487ef594b79d7cf2dc97d14165d3879c99a3b
parentea46708f079d031f9e356b71a493940fd13fc2cf
drm/i915/psr: Preserve SRD_CTL bit 29 on PSR init

Bit 29 of SRD_CTL needs to have its value preserved according to the
B-Spec, so right before we write out the register we go ahead and read
the register and preserve the value of that bit before we write out
the configured register value.

v2: Spaces => tabs, minor name change, and commit message wording (Rodrigo)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jim Bride <jim.bride@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1502229094-13392-1-git-send-email-jim.bride@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_psr.c