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:
be4f235
)
drm/omap: EBUSY status handling in omap_gem_fault()
author
Rob Clark
<
[email protected]
>
Sun, 20 Oct 2013 16:07:42 +0000
(12:07 -0400)
committer
Tomi Valkeinen
<
[email protected]
>
Thu, 3 Mar 2016 15:36:43 +0000
(17:36 +0200)
Subsequent threads returning EBUSY from vm_insert_pfn() was not
handled correctly. As a result concurrent access from new threads
to mmapped data caused SIGBUS.
See
e79e0fe380847493266fba557217e2773c61bd1b
("drm/i915: EBUSY status
handling added to i915_gem_fault()").
Signed-off-by: Rob Clark <
[email protected]
>
Signed-off-by: Tomi Valkeinen <
[email protected]
>
Acked-by: Laurent Pinchart <
[email protected]
>
drivers/gpu/drm/omapdrm/omap_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/omap_gem.c
b/drivers/gpu/drm/omapdrm/omap_gem.c
index baa714c8ec70d3dfaddd9c80315d1e3c312bd3f0..9ac30560e9b103bec909b16e061fa420a8171648 100644
(file)
--- a/
drivers/gpu/drm/omapdrm/omap_gem.c
+++ b/
drivers/gpu/drm/omapdrm/omap_gem.c
@@
-578,6
+578,11
@@
fail:
case 0:
case -ERESTARTSYS:
case -EINTR:
+ case -EBUSY:
+ /*
+ * EBUSY is ok: this just means that another thread
+ * already did the job.
+ */
return VM_FAULT_NOPAGE;
case -ENOMEM:
return VM_FAULT_OOM;