diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-17 05:17:16 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-17 05:56:40 -0400 |
commit | a7c2e1aad6c846f316641bbaa54cf999aeaa7ebc (patch) | |
tree | 48c2b794e044c72aa2407ca64ada3aa6f1d60350 /drivers/gpu/drm | |
parent | b06fbda328490ec471e72659a9bf69f16a1c8dc9 (diff) |
drm/i915: shut up spurious WARN in the gtt fault handler
-ENOSPC can happen if userspace is being simplistic and tries to map a
too big object. To aid further spurious WARN debugging, also print out
the error code.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56017
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index bb941f8cd556..45888d2ed534 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -1408,8 +1408,10 @@ out: | |||
1408 | return VM_FAULT_NOPAGE; | 1408 | return VM_FAULT_NOPAGE; |
1409 | case -ENOMEM: | 1409 | case -ENOMEM: |
1410 | return VM_FAULT_OOM; | 1410 | return VM_FAULT_OOM; |
1411 | case -ENOSPC: | ||
1412 | return VM_FAULT_SIGBUS; | ||
1411 | default: | 1413 | default: |
1412 | WARN_ON_ONCE(ret); | 1414 | WARN_ONCE(ret, "unhandled error in i915_gem_fault: %i\n", ret); |
1413 | return VM_FAULT_SIGBUS; | 1415 | return VM_FAULT_SIGBUS; |
1414 | } | 1416 | } |
1415 | } | 1417 | } |