drm/etnaviv: lock MMU while dumping core
authorLucas Stach <l.stach@pengutronix.de>
Tue, 21 May 2019 12:53:40 +0000 (14:53 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 27 May 2019 14:08:38 +0000 (16:08 +0200)
commit1396500d673bd027683a0609ff84dca7eb6ea2e7
treefbde8e7696a9254e23b2fd589f19b10146265c1a
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
drm/etnaviv: lock MMU while dumping core

The devcoredump needs to operate on a stable state of the MMU while
it is writing the MMU state to the coredump. The missing lock
allowed both the userspace submit, as well as the GPU job finish
paths to mutate the MMU state while a coredump is under way.

Fixes: a8c21a5451d8 (drm/etnaviv: add initial etnaviv DRM driver)
Reported-by: David Jander <david@protonic.nl>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: David Jander <david@protonic.nl>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_dump.c