]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: move linear window on MC1.0 parts if necessary
authorLucas Stach <l.stach@pengutronix.de>
Fri, 2 Dec 2016 11:19:16 +0000 (12:19 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 2 Dec 2016 18:30:24 +0000 (19:30 +0100)
commitec4a42552b23ecc83c127161e34d4d4d4698f98c
treeeed3a7369f53d74df7813053f305f5f1937570e4
parent33aa60d5e8276f48cf1cae83a10ae0f96a3f79e9
drm/etnaviv: move linear window on MC1.0 parts if necessary

On i.MX6SX the physical memory is placed above the 2GB mark, so the GPU
linear window has to be moved for the GPU to work at all. This doesn't
mix with the FAST_CLEAR feature, as the TS unit doesn't take the linear
window offset into account and will corrupt memory when used with a
non-zero offset.

Move the linear window if it's necessary for the GPU to work, but avoid
announcing FAST_CLEAR support to userspace in this case.

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