]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: exec and MMU state is lost when resetting the GPU
authorLucas Stach <l.stach@pengutronix.de>
Fri, 20 Aug 2021 20:18:27 +0000 (22:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:40 +0000 (12:26 +0200)
commite5e023b5d83276bb5f7fabdc8b6aa8c18ee176d4
treeb7512952dd6932e9f0ca7b93611d36135e58e7b4
parenta76c4daf67cccf5da31bfe830858bfe7461df375
drm/etnaviv: exec and MMU state is lost when resetting the GPU

commit 725cbc7884c37f3b4f1777bc1aea6432cded8ca5 upstream.

When the GPU is reset both the current exec state, as well as all MMU
state is lost. Move the driver side state tracking into the reset function
to keep hardware and software state from diverging.

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