[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190729053335.251379-1-acourbot@chromium.org>
Date: Mon, 29 Jul 2019 14:33:33 +0900
From: Alexandre Courbot <acourbot@...omium.org>
To: CK Hu <ck.hu@...iatek.com>, Philipp Zabel <p.zabel@...gutronix.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Matthias Brugger <matthias.bgg@...il.com>,
Tomasz Figa <tfiga@...omium.org>
Cc: dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
Alexandre Courbot <acourbot@...omium.org>
Subject: [PATCH v2 0/2] drm/mediatek: make imported PRIME buffers contiguous
The default DMA segment size was used when importing PRIME buffers,
which resulted in a chance of them not being contiguous in the virtual
IO space of the device and mtk_gem_prime_import_sg_table() complaining
that the SG table was not contiguous as it expects.
This series fixes this issue by
1) Using the correct DMA device when importing PRIME buffers,
2) Setting a more suitable DMA segment size on the DMA device than the
default 64KB.
Changes since v1:
- Split into two patches,
- Fixed an error path that would have returned 0.
Alexandre Courbot (2):
drm/mediatek: use correct device to import PRIME buffers
drm/mediatek: set DMA max segment size
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 49 ++++++++++++++++++++++++--
drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 ++
2 files changed, 48 insertions(+), 3 deletions(-)
--
2.22.0.709.g102302147b-goog
Powered by blists - more mailing lists