[Intel-gfx] [PATCH] drm/i915/gem: Differentiate oom failures from invalid map types

Matthew Auld matthew.auld at intel.com
Mon Nov 30 13:24:36 UTC 2020


On 27/11/2020 19:53, Chris Wilson wrote:
> After a cursory check on the parameters to i915_gem_object_pin_map(),
> where we return a precise error, if the backend rejects the mapping we
> always return PTR_ERR(-ENOMEM). Let us also return a more precise error
> here so we can differentiate between running out of memory and
> programming errors (or situations where we may be trying different paths
> and looking for an error from an unsupported map).
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list