diff options
author | Ville Syrjälä <[email protected]> | 2023-03-20 11:54:34 +0200 |
---|---|---|
committer | Ville Syrjälä <[email protected]> | 2023-03-21 18:02:50 +0200 |
commit | 80a892a4c2428b65366721599fc5fe50eaed35fd (patch) | |
tree | ba2b47ab0c781abf67d5b928a8a9370e1b503e3c /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | f161eb01f50ab31f2084975b43bce54b7b671e17 (diff) |
drm/i915: Move CSC load back into .color_commit_arm() when PSR is enabled on skl/glk
SKL/GLK CSC unit suffers from a nasty issue where a CSC
coeff/offset register read or write between DC5 exit and
PSR exit will undo the CSC arming performed by DMC, and
then during PSR exit the hardware will latch zeroes into
the active CSC registers. This causes any plane going
through the CSC to output all black.
We can sidestep the issue by making sure the PSR exit has
already actually happened before we touch the CSC coeff/offset
registers. Easiest way to guarantee that is to just move the
CSC programming back into the .color_commir_arm() as we force
a PSR exit (and crucially wait for it to actually happen)
prior to touching the arming registers.
When PSR (and thus also DC states) are disabled we don't
have anything to worry about, so we can keep using the
more optional _noarm() hook for writing the CSC registers.
Cc: <[email protected]> #v5.19+
Cc: Manasi Navare <[email protected]>
Cc: Drew Davenport <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Jouni Högander <[email protected]>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8283
Fixes: d13dde449580 ("drm/i915: Split pipe+output CSC programming to noarm+arm pair")
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Imre Deak <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions