drm/mediatek: set DMA max segment size
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 29 Jul 2019 05:33:35 +0000 (14:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:33:45 +0000 (10:33 +0100)
commitb3496367d9cb3bd32f50b4db0a64a00f22788408
treef368895ff65ae646aa3a53145ebbb3c57615a755
parentc9f595453bc3a9e9126d7f68bc0de29e2a98eda4
drm/mediatek: set DMA max segment size

[ Upstream commit 070955558e820b9a89c570b91b1f21762f62b288 ]

This driver requires imported PRIME buffers to appear contiguously in
its IO address space. Make sure this is the case by setting the maximum
DMA segment size to a more suitable value than the default 64KB.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_drm_drv.h