]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: Drop invalid WARN() during data rate calculation
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 17 Jun 2016 20:42:20 +0000 (13:42 -0700)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 18 Aug 2016 12:26:54 +0000 (14:26 +0200)
commit9e0af7c3460934078c77d003d5903730baca967e
tree2e53e8b9eb5c6e01e102c9185f096847a444546b
parent0d62b110bb638d2c97d5f4764302111179522ed0
drm/i915/gen9: Drop invalid WARN() during data rate calculation

It's possible to have a non-zero plane mask and still wind up with a
total data rate of zero.  There are two cases where this can happen:

 * planes are active (from the KMS point of view), but are
   all fully clipped (positioned offscreen)
 * the only active plane on a CRTC is the cursor (which is handled
   independently and not counted into the general data rate computations

These are both valid display setups (although unusual), so we need to
drop the WARN().

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Testcase: kms_universal_planes.cursor-only-pipe-*
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466196140-16336-4-git-send-email-matthew.d.roper@intel.com
Cc: stable@vger.kernel.org #v4.7+
drivers/gpu/drm/i915/intel_pm.c