[Intel-gfx] [PATCH] drm/i915/gem: Retry faulthandlers on ENOSPC

Matthew Auld matthew.william.auld at gmail.com
Fri May 15 21:49:06 UTC 2020


On Fri, 15 May 2020 at 21:01, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>
> As we no longer use the shmemfs allocation directly, we do not expect to
> receive -ENOSPC from a backing store allocation. The potential sources
> for -ENOSPC are then our own internal eviction code, so the choice is
> either to kill the potential application with SIGBUS or to retry the
> faulthandler.
>
> In this patch we retry the fault handler, but since this is a should
> never happen condition, it is arguable that we gather up copious debug
> and kill the application.
>
> 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