]> 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)
commit3d8ea7ab12ed97350d56224b810273935d619472
treebdb2852d8ab4bd261b087cbd9fc1307a05855c6a
parent43f6cbfd095a8c727c76d12935c84e3b12f5fd1c
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