]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: move GPU linear window to end of DMA window
authorLucas Stach <l.stach@pengutronix.de>
Mon, 25 Jan 2016 16:03:09 +0000 (17:03 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 7 Mar 2016 14:36:51 +0000 (15:36 +0100)
commit465522117f68e8a2bdc50b260e1cd3c80dc289c9
tree59f0a9ba74855d300760979639668d3d26fe0a86
parent241fe36cbda22471dbb27783a6f97fb316f08a0c
drm/etnaviv: move GPU linear window to end of DMA window

If the end of the system DMA window is farther away from the start of
physical RAM than the size of the GPU linear window, move the linear
window so that it ends at the same address than the system DMA window.

This allows to map command buffer from CMA, which is likely to reside
at the end of the system DMA window, while also overlapping as much
RAM as possible, in order to optimize regular buffer mappings through
the linear window.

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