]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: put submit prev MMU context when it exists
authorLucas Stach <l.stach@pengutronix.de>
Fri, 20 Aug 2021 20:18:24 +0000 (22:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:39 +0000 (12:26 +0200)
commitbc3c85ead2631d12e2fccb677b4c8e7ebe2177ef
treec6c6f2d22505abfcc46c16e230dd02c3d1c039e8
parent57cefb5ad6a4920629d8bc90ba4848ef453a9890
drm/etnaviv: put submit prev MMU context when it exists

commit cda7532916f7bc860b36a1806cb8352e6f63dacb upstream.

The prev context is the MMU context at the time of the job
queueing in hardware. As a job might be queued multiple times
due to recovery after a GPU hang, we need to make sure to put
the stale prev MMU context from a prior queuing, to avoid the
reference and thus the MMU context leaking.

Cc: stable@vger.kernel.org # 5.4
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Michael Walle <michael@walle.cc>
Tested-by: Marek Vasut <marex@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c