From: Arun Siluvery Date: Tue, 23 Jun 2015 14:50:44 +0000 (+0100) Subject: drm/i915: Bail out early if WA batch is not available for given Gen X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~36^2~178 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e60d790714bbda0402ddd715aee5e61b48682f4;p=pandora-kernel.git drm/i915: Bail out early if WA batch is not available for given Gen To initialize WA batch, at the moment we first allocate batch and then check whether we have any WA to be initialized for the given Gen; if we don't have any WA then we WARN the user, destroy the batch and return but this is causing another WARN in cleanup code complaining about sleeping in atomic context. Till we understand this better and to keep things simpler, bail out early if we don't have WA. Cc: Tvrtko Ursulin Cc: Chris Wilson Signed-off-by: Arun Siluvery Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed