drm/mediatek: set DMA max segment size
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 29 Jul 2019 05:33:35 +0000 (14:33 +0900)
committerCK Hu <ck.hu@mediatek.com>
Wed, 14 Aug 2019 23:43:46 +0000 (07:43 +0800)
commit070955558e820b9a89c570b91b1f21762f62b288
treebdb2852d8ab4bd261b087cbd9fc1307a05855c6a
parent4c6f3196e6ea111c456c6086dc3f57d4706b0b2d
drm/mediatek: set DMA max segment size

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>
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_drm_drv.h