[Intel-gfx] [PATCH 1/2] drm/i915/gem: Extend mmap support for lmem
Chris Wilson
chris at chris-wilson.co.uk
Fri Jan 3 12:17:57 UTC 2020
Quoting Chris Wilson (2020-01-03 12:15:04)
> From: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
>
> Local memory objects are similar to our usual scatterlist, but instead
> of using the struct page stored therein, we need to use the
> sg->dma_address.
>
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
> ---
> drivers/gpu/drm/i915/gem/i915_gem_mman.c | 21 ++++++++++-----
> drivers/gpu/drm/i915/i915_drv.h | 6 ++---
> drivers/gpu/drm/i915/i915_mm.c | 34 +++++++++++++++---------
> 3 files changed, 39 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_mman.c b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
> index ed0d9a2f0e7b..37efd95c086d 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_mman.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
> @@ -217,6 +217,7 @@ static vm_fault_t i915_error_to_vmf_fault(int err)
>
> case -ENOSPC: /* shmemfs allocation failure */
> case -ENOMEM: /* our allocation failure */
> + case -ENXIO:
Why not SIGBUS?
-Chris
More information about the Intel-gfx
mailing list