]> 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)
commit826303d90cb389e49cf73186d676a5318a2f25c1
treeabffec513a82642983992fb8eaec6291932b7e3a
parent59e7f43543f5ba0d943e8796ed4bf243f4ebbc85
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