drm/i915: Bail out early if WA batch is not available for given Gen
authorArun Siluvery <arun.siluvery@linux.intel.com>
Tue, 23 Jun 2015 14:50:44 +0000 (15:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 15:26:16 +0000 (17:26 +0200)
commit5e60d790714bbda0402ddd715aee5e61b48682f4
tree31fe8663ae1277ad609871ef3720bfd564d7bd93
parent4d78c8dcf9f856587fb7bf664021d9fb699012d9
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 <tvrtko.ursulin@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c
This page took 0.025829 seconds and 5 git commands to generate.