drm/i915: Copy highest enabled wm level to disabled wm levels for gen >= 9
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Mon, 13 Feb 2023 16:44:53 +0000 (18:44 +0200)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Thu, 16 Feb 2023 14:38:16 +0000 (16:38 +0200)
commit9fcbae04987b9bbc6b5459bb37814be811c6e05d
tree0afbb353dbb9ea91465164224553de946d70f1e6
parent06f1b06dc5b75b1a4071c905231d40cd74587a18
drm/i915: Copy highest enabled wm level to disabled wm levels for gen >= 9

There was a specific SW workaround requested, which should prevent
some watermark issues happening, which requires copying highest
enabled wm level to those disabled wm levels(bit 31 is of course
still needs to be cleared).
This is related to different subsystems like PSR and others, which
may still consult a low power wm values ocassionally, despite those
are disabled. For that reason we need to keep sane values in
correspondent registers, even when those are disabled.

HSDES: 22016115093

v2: Remove redundant WA for ICL and extend this WA for all platforms
    starting from SKL, as it seems that we needed this anyway on
    all of those(Ville Syrjälä)

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230213164453.5782-1-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/skl_watermark.c