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:
23a9d5d
)
drm/etnaviv: hold object lock while getting pages for coredump
author
Lucas Stach
<l.stach@pengutronix.de>
Fri, 22 Jan 2016 11:03:03 +0000
(12:03 +0100)
committer
Lucas Stach
<l.stach@pengutronix.de>
Mon, 25 Jan 2016 13:23:49 +0000
(14:23 +0100)
While all objects that get coredumped have an active IOVA and thus
pages already populated, etnaviv_gem_get_pages() still requires the
object lock to be held.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_dump.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/etnaviv/etnaviv_dump.c
b/drivers/gpu/drm/etnaviv/etnaviv_dump.c
index bf8fa859e8bece4f037e1ef7eae1c6caf0a0c85d..fd7d3e989e79a5dca9696c79f71262de539f239d 100644
(file)
--- a/
drivers/gpu/drm/etnaviv/etnaviv_dump.c
+++ b/
drivers/gpu/drm/etnaviv/etnaviv_dump.c
@@
-201,7
+201,9
@@
void etnaviv_core_dump(struct etnaviv_gpu *gpu)
obj = vram->object;
+ mutex_lock(&obj->lock);
pages = etnaviv_gem_get_pages(obj);
+ mutex_unlock(&obj->lock);
if (pages) {
int j;