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:32:14 +0000 (10:32 +0100)
commit91910cc0016578a0d9c181d2bb6f7806a07dbf73
tree255e17d5d9ce16e527a8ffeed3c0ee592e1dadb1
parent5655a71f8252f7681445df58701b9a93b3860269
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