]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: reference MMU context when setting up hardware state
authorLucas Stach <l.stach@pengutronix.de>
Fri, 20 Aug 2021 20:18:29 +0000 (22:18 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 16 Sep 2021 08:35:33 +0000 (10:35 +0200)
commitd6408538f091fb22d47f792d4efa58143d56c3fb
treeabffec513a82642983992fb8eaec6291932b7e3a
parentf978a5302f5566480c58ffae64a16d34456801bd
drm/etnaviv: reference MMU context when setting up hardware state

Move the refcount manipulation of the MMU context to the point where the
hardware state is programmed. At that point it is also known if a previous
MMU state is still there, or the state needs to be reprogrammed with a
potentially different context.

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>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_iommu.c
drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c