]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5dd0df9c4e71a65a7d587237c22827de237d4d97
treefbde8e7696a9254e23b2fd589f19b10146265c1a
parentb48e0d7fe5b5eb1732dfe0b8057a6c721c42f2d4
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: 368b312d2157 (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