]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not WARN_ON with small framebuffers.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 16 Jan 2018 15:53:31 +0000 (16:53 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 17 Jan 2018 09:14:01 +0000 (10:14 +0100)
commitd15f7c1e48852dd07e63edcc7d818f0ed99dd681
treeffb72460fb76d270a63666f1685ccebfef18e848
parent2babf90dce8d7487c12eb497ca51ba20310d446d
drm/i915: Do not WARN_ON with small framebuffers.

It's perfectly legal to create a fb with stride < 512, and one of
the kms_plane_scaling subtests creates a very small fb.

Downgrade the WARN_ON to a simple check check, and because this
function is potentially called on every atomic update/pageflip,
downgrade the other WARN_ON to a WARN_ON_ONCE, and do the right
thing here.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180116155331.75175-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_fbc.c