]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display/psr: Lock and unlock PSR around pipe updates
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 5 Apr 2022 15:53:43 +0000 (08:53 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 6 Apr 2022 15:42:58 +0000 (08:42 -0700)
commit56b50c95a23e913c9b713a728a815ec319ec09c6
tree0addd74291536d2be897dcc2f751e72ce90c7910
parent240680ee0d94c108bfee9cdd807a0bc82c5ca72f
drm/i915/display/psr: Lock and unlock PSR around pipe updates

Frontbuffer rendering and page flips can race with each other
and this can potentialy cause issues with PSR2 selective fetch.

And because pipe/crtc updates are time sentive we can't grab the
PSR lock after intel_pipe_update_start() and before
intel_pipe_update_end().

So here adding the lock and unlock functions and calls, the
proper PSR2 selective fetch handling will come in a separated patch.

v2:
- fixed new functions documentation

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-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_crtc.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_psr.h