]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/bw: Skip the bw_state->active_pipes update if no pipe is changing its active...
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Sep 2025 17:19:25 +0000 (20:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Oct 2025 23:48:47 +0000 (02:48 +0300)
commit4d0b11c2105c36f8df6663e1a729e10b8f09ca52
treed65529b05a39a6b34b045aa04c100c14ca5abc64
parent663cb3e9b4e814ad3d41ae979e3de49c4f4ba44f
drm/i915/bw: Skip the bw_state->active_pipes update if no pipe is changing its active state

Currently we may end up doing a bunch of redundant bw_state
recomputation whenever any modeset happens. Skip a bunch of
that by only considering whether any pipe actually changes
its active state.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250923171943.7319-4-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/display/intel_bw.h
drivers/gpu/drm/i915/display/intel_display.c