]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Deobfuscate wm linetime calculation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Sep 2025 18:08:37 +0000 (21:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 4 Oct 2025 12:16:32 +0000 (15:16 +0300)
commit09f21bee91b2d47c57e8f3ee31632c51b1799806
treed96fa76cb53572dc0c62821359274e836bf21083
parentea1a866a30153c743e4b933d2788277bec0016e0
drm/i915: Deobfuscate wm linetime calculation

intel_get_linetime_us() is a mess. Rewrite it in a straightforward
manner. Also the checks for the !active and pixel_rate==0 are
completely pointless here since we know that the plane is visible.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250919180838.10498-3-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
drivers/gpu/drm/i915/display/skl_watermark.c