drm/etnaviv: map cmdbuf through MMU on version 2
commite68f270f210776eed956884d1fc3ce1aab0912a3
authorLucas Stach <l.stach@pengutronix.de>
Fri, 19 Aug 2016 21:49:10 +0000 (19 23:49 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 15 Sep 2016 13:29:40 +0000 (15 15:29 +0200)
tree63e179422da3b36a55c61e4a7a4f5bc1109e99a6
parent90969c9aa97700663d03c51031652e131df3bd9b
drm/etnaviv: map cmdbuf through MMU on version 2

With MMUv2 all buffers need to be mapped through the MMU once it
is enabled. Align the buffer size to 4K, as the MMU is only able to
map page aligned buffers.

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