drm/i915: Extract skl_wm_latency()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 1 Mar 2023 16:24:48 +0000 (18:24 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Mar 2023 18:01:46 +0000 (20:01 +0200)
commit6b931346ed0f7ec3238700d17742d092f164ddc0
tree7e3fed0b616038b59dd989eda6936702c8d68b71
parent673515ba0249e47a0e69c56a16af24399c824d60
drm/i915: Extract skl_wm_latency()

Extract the skl+ wm latency determination into a small helper
so that everyone has the same idea what the latency should be.

This introduces a slight functional change in that
skl_cursor_allocation() will now start to account for the
extra 4 usec that the kbk/cfl/cml IPC w/a adds.

v2: Rebase

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230301162449.26672-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/skl_watermark.c