From: Chris Wilson Date: Tue, 25 Jun 2013 16:26:45 +0000 (+0100) Subject: drm/i915: Detect invalid scanout pitches X-Git-Tag: v3.11-rc1~65^2~16^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35cdaa0e13e24f3fccc518bfef1516aa8a8a665;p=pandora-kernel.git drm/i915: Detect invalid scanout pitches Report back the user error of attempting to setup a CRTC with an invalid framebuffer pitch. This is trickier than it should be as on gen4, there is a restriction that tiled surfaces must have a stride less than 16k - which is less than the largest supported CRTC size. v2: Fix the limits for gen3 v3: Move check into intel_framebuffer_init() and fix VLV limits. (vsyrjala) v4: Use idiomatic '>=' for generation checks References: https://bugs.freedesktop.org/show_bug.cgi?id=65099 Signed-off-by: Chris Wilson Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed