]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Track active_pipes in bw_state
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Thu, 30 Apr 2020 19:56:34 +0000 (22:56 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 4 May 2020 15:44:52 +0000 (18:44 +0300)
commitecab0f3d055d333640bbe2aa5a5141574a65c534
tree5654e7b5993dd39383e84e9527e348fa3019e5dd
parent9728889f42b9ba078f86cd11535a89df29e93b33
drm/i915: Track active_pipes in bw_state

We need to calculate SAGV mask also in a non-modeset
commit, however currently active_pipes are only calculated
for modesets in global atomic state, thus now we will be
tracking those also in bw_state in order to be able to
properly access global data.

v2: - Removed pre/post plane SAGV updates from modeset(Ville)
    - Now tracking active pipes in intel_can_enable_sagv(Ville)

v3: - lock global state if active_pipes change as well(Ville)

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