]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1e3bfdd9efc6cc771adf30c82fceca738dbf28f
treebdb2852d8ab4bd261b087cbd9fc1307a05855c6a
parent90aba5feef2c500872b934bbfaf8c2efa460fce9
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