[Intel-gfx] [PATCH 4/8] drm/i915/gem: Tidy up error handling for eb_parse()
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Wed Dec 11 09:51:13 UTC 2019
Quoting Chris Wilson (2019-12-07 19:01:06)
> As the caller no longer uses the i915_vma result, stop returning it and
> just return the error code instead.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
<SNIP>
> @@ -2002,8 +2007,6 @@ static struct i915_vma *eb_parse(struct i915_execbuffer *eb)
> eb->batch_len,
> vma);
> if (err) {
> - i915_vma_unpin(vma);
> -
> /*
> * Unsafe GGTT-backed buffers can still be submitted safely
> * as non-secure.
> @@ -2012,10 +2015,8 @@ static struct i915_vma *eb_parse(struct i915_execbuffer *eb)
> */
> if (i915_vma_is_ggtt(vma) && err == -EACCES)
> /* Execute original buffer non-secure */
This second comment is bit of a repetition, especially after the code
flow is simplified.
Either way;
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
More information about the Intel-gfx
mailing list