]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move PIPE_CHICKEN RMW out from the vblank evade critical section
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Feb 2022 11:16:13 +0000 (13:16 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Feb 2022 15:27:31 +0000 (17:27 +0200)
commit2f9e868becd6352ee510151bb542403c7f744e77
tree5a50d3cc42e2558e03d2ec1e62649d3d84965260
parente4a494bd5c5158fbbb4b4705204a93635c3271f1
drm/i915: Move PIPE_CHICKEN RMW out from the vblank evade critical section

We don't want any RMWs in the part of the commit that happens
under vblank evasion. Eventually we want to use the DSB to
handle that and it can't read registers at all. Also reads
are just slowing us down needlessly.

Let's move the whole PIPE_CHICKEN stuff out from the critical
section since we don't have anything there that needs to be
syncrhonized with other plane/pipe registers. If we ever need
to add such things then we have to move it back, but without
doing any reads.

TODO: should look into eliminating the RMW anyway...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220202111616.1579-1-ville.syrjala@linux.intel.com
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
drivers/gpu/drm/i915/display/intel_display.c