From: Joonas Lahtinen Date: Mon, 16 Mar 2015 12:11:13 +0000 (+0200) Subject: drm/i915: Do not use ggtt_view with (aliasing) PPGTT X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~20^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec7adb6ee79c8c9fe64d63ad638a31cd62e55515;p=pandora-kernel.git drm/i915: Do not use ggtt_view with (aliasing) PPGTT GGTT views are only applicable when dealing with GGTT. Change the code to reject ggtt_view where it should not be used and require it when it should be. v2: - Dropped _ppgtt_ infixes, allow both types to be passed - Disregard other but normal views when no view is specified - More checks that valid parameters are passed - More readable error checking v3: - Prefer WARN_ONCE over BUG_ON when there is code path for failure Signed-off-by: Joonas Lahtinen Reviewed-by: Tvrtko Ursulin [danvet: Drop unecessary forward decl from earlier patch iterations.] [danvet: Remove unused variable spotted by Tvrtko.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed