]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915/display/psr: Set partial frame enable when forcing full frame fetch
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 5 Apr 2022 15:53:42 +0000 (08:53 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 6 Apr 2022 15:42:58 +0000 (08:42 -0700)
commitaa94bf3089f0502e611faaab608dca29fe3cce4a
tree7569bfe77f0e232cbec3ab91006dc767dea99bd7
parentb249004491c732cf7b0af4df29fad95a47ec8aa1
drm/i915/display/psr: Set partial frame enable when forcing full frame fetch

Following up what was done in commit 804f46885317 ("drm/i915/psr: Set
"SF Partial Frame Enable" also on full update") and also setting
partial frame enable when psr_force_hw_tracking_exit() is called.

Also as PSR2_MAN_TRK_CTL is a double buffered registers do a RMW
is not a good idea so here also setting the man_trk_ctl_enable_bit()
that is required in TGL and only doing a register write.

v2:
- not doing a rmw

v3:
- removing the inline from functions that return PSR2_MAN_TRK_CTL
bits

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220405155344.47219-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c