projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06bc7e
)
drm/i915: Handle ENOSPC after failing to insert a mappable node
author
Chris Wilson
<
[email protected]
>
Sat, 16 Jul 2016 17:42:36 +0000
(18:42 +0100)
committer
Jani Nikula
<
[email protected]
>
Wed, 10 Aug 2016 21:49:02 +0000
(
00:49
+0300)
Even after adding individual page support for GTT mmaping, we can still
fail to find any space within the mappable region, and
drm_mm_insert_node() will then report ENOSPC. We have to then handle
this error by using the shmem access to the pages.
Fixes: b50a53715f09 ("drm/i915: Support for pread/pwrite ... objects")
Testcase: igt/gem_concurrent_blit
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Ankitprasad Sharma <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
(cherry picked from commit
d1054ee492a89b134fb0ac527b0714c277ae9c0f
)
Signed-off-by: Jani Nikula <
[email protected]
>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 27ef10e4923e2a5c76ca0f50f5ee5bf03e36e064..aceaad0c2f18adf7f64619e1dc60c4c52203fcce 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-1306,7
+1306,7
@@
i915_gem_pwrite_ioctl(struct drm_device *dev, void *data,
* textures). Fallback to the shmem path in that case. */
}
- if (ret == -EFAULT) {
+ if (ret == -EFAULT
|| ret == -ENOSPC
) {
if (obj->phys_handle)
ret = i915_gem_phys_pwrite(obj, args, file);
else if (i915_gem_object_has_struct_page(obj))