drm/etnaviv: replace MMU flush marker with flush sequence
authorLucas Stach <l.stach@pengutronix.de>
Fri, 5 Jul 2019 17:17:23 +0000 (19:17 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Aug 2019 08:56:03 +0000 (10:56 +0200)
commit4900dda90af2cb13bc1d4c12ce94b98acc8fe64e
tree780a86737440fa80ac72d6daf93e4e9216a720f1
parentbffe5db81ae63ec75f5e09d1c97de42c37cb181e
drm/etnaviv: replace MMU flush marker with flush sequence

If a MMU is shared between multiple GPUs, all of them need to flush their
TLBs, so a single marker that gets reset on the first flush won't do.
Replace the flush marker with a sequence number, so that it's possible to
check if the TLB is in sync with the current page table state for each GPU.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
drivers/gpu/drm/etnaviv/etnaviv_buffer.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.h
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.h