[Intel-gfx] [PATCH 06/10] drm/i915: Propagating correct error codes to the userspace

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 26 03:04:18 PST 2016


On Tue, Jan 26, 2016 at 01:13:32AM +0530, ankitprasad.r.sharma at intel.com wrote:
> From: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
> 
> Propagating correct error codes to userspace by using ERR_PTR and
> PTR_ERR macros for stolen memory based object allocation. We generally
> return -ENOMEM to the user whenever there is a failure in object
> allocation. This patch helps user to identify the correct reason for the
> failure and not just -ENOMEM each time.
> 
> v2: Moved the patch up in the series, added error propagation for
> i915_gem_alloc_object too (Chris)
> 
> v3: Removed storing of error pointer inside structs, Corrected error
> propagation in caller functions (Chris)
> 
> v4: Remove assignments inside the predicate (Chris)
> 
> v5: Removed unnecessary initializations, updated kerneldoc for
> i915_guc_client, corrected missed error pointer handling (Tvrtko)
> 
> v6: Use ERR_CAST/temporary variable to avoid storing invalid pointer
> in a common field (Chris)
> 
> v7: Resolved rebasing conflicts (Ankit)
> 
> v8: Removed redundant code (Chris)
> 
> Signed-off-by: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list