]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Enable display workaround 827 for all planes, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 11 May 2018 21:33:12 +0000 (03:03 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 11 May 2018 07:53:22 +0000 (09:53 +0200)
commit8e021151948c56eddf68affc6817965dabbcaddd
treed1d92f6f8560be413042639d1069646836dbe9b8
parent2bdd045e3a30f7ddda1604f835df9c8d14d6d048
drm/i915: Enable display workaround 827 for all planes, v2.

The workaround was applied only to the primary plane, but is required
on all planes. Iterate over all planes in the crtc atomic check to see
if the workaround is enabled, and only perform the actual toggling in
the pre/post plane update functions.

Changes since v1:
- Track active NV12 planes in a nv12_planes bitmask. (Ville)

v2: Removing BROXTON support for NV12 due to WA826

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1526074397-10457-2-git-send-email-vidya.srinivas@intel.com
drivers/gpu/drm/i915/intel_atomic_plane.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h