drm/etnaviv: add flushing logic for MMUv2
authorLucas Stach <l.stach@pengutronix.de>
Fri, 19 Aug 2016 22:01:24 +0000 (00:01 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:41 +0000 (15:29 +0200)
commit2e145a22486610100cb2c6d789f56bd0c6f27718
tree218b6719f6094822e630ba54748dd901ed66cd32
parentde08e8ef71cd7fbc4a89107b295571c4d50f0d66
drm/etnaviv: add flushing logic for MMUv2

Flushing works differently on MMUv2, in that it's only necessary
to set a single bit in the control register to flush all translation
units. A semaphore stall then makes sure that the flush has propagated
properly.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_buffer.c