diff options
author | Alexandre Courbot <acourbot@chromium.org> | 2019-07-29 08:33:35 +0300 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2019-08-15 02:43:46 +0300 |
commit | 070955558e820b9a89c570b91b1f21762f62b288 (patch) | |
tree | bdb2852d8ab4bd261b087cbd9fc1307a05855c6a /drivers/gpu/drm/mediatek/mtk_drm_drv.h | |
parent | 4c6f3196e6ea111c456c6086dc3f57d4706b0b2d (diff) | |
download | linux-070955558e820b9a89c570b91b1f21762f62b288.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.h b/drivers/gpu/drm/mediatek/mtk_drm_drv.h index 598ff3e70446..e03fea12ff59 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.h +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.h @@ -51,6 +51,8 @@ struct mtk_drm_private { } commit; struct drm_atomic_state *suspend_state; + + bool dma_parms_allocated; }; extern struct platform_driver mtk_ddp_driver; |