diff options
author | Robin Murphy <robin.murphy@arm.com> | 2020-09-03 15:59:23 +0200 |
---|---|---|
committer | Steven Price <steven.price@arm.com> | 2020-09-10 15:11:57 +0200 |
commit | ac5037afefd33fea9a9c1a4a5ac46ece396e7465 (patch) | |
tree | 201ede3c8183f28672fa547ae5d549c484344ea7 /drivers/gpu/drm/panfrost | |
parent | drm/vc4: hdmi: Fix NULL vs IS_ERR() checks in vc5_hdmi_init_resources() (diff) | |
download | linux-ac5037afefd33fea9a9c1a4a5ac46ece396e7465.tar.xz linux-ac5037afefd33fea9a9c1a4a5ac46ece396e7465.zip |
drm/panfrost: Set DMA max segment size
Since all we do with scatterlists is map them in the MMU, we don't have
any hardware constraints on how they're laid out. Let the DMA layer know
so it won't warn when DMA API debugging is enabled.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/04371bc36512076b7feee07f854e56b80675d953.1599141563.git.robin.murphy@arm.com
Diffstat (limited to 'drivers/gpu/drm/panfrost')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_gpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index e0f190e43813..eea049c640a6 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c @@ -344,6 +344,7 @@ int panfrost_gpu_init(struct panfrost_device *pfdev) dma_set_mask_and_coherent(pfdev->dev, DMA_BIT_MASK(FIELD_GET(0xff00, pfdev->features.mmu_features))); + dma_set_max_seg_size(pfdev->dev, UINT_MAX); irq = platform_get_irq_byname(to_platform_device(pfdev->dev), "gpu"); if (irq <= 0) |