[01/14] gpu: host1x: Do not limit DMA segment size

Submitted by Thierry Reding on Oct. 14, 2019, 12:50 p.m.

Details

Message ID 20191014125049.425101-2-thierry.reding@gmail.com
State Accepted
Headers show
Series "drm/tegra: Miscellaneous cleanups" ( rev: 2 ) in DRI devel

Not browsing as part of any series.

Commit Message

Thierry Reding Oct. 14, 2019, 12:50 p.m.
From: Thierry Reding <treding@nvidia.com>

None of the host1x clients have any limitations on the DMA segment size,
so don't pretend that they do.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 drivers/gpu/host1x/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c
index 742aa9ff21b8..2c8559ff3481 100644
--- a/drivers/gpu/host1x/bus.c
+++ b/drivers/gpu/host1x/bus.c
@@ -445,7 +445,7 @@  static int host1x_device_add(struct host1x *host1x,
 	of_dma_configure(&device->dev, host1x->dev->of_node, true);
 
 	device->dev.dma_parms = &device->dma_parms;
-	dma_set_max_seg_size(&device->dev, SZ_4M);
+	dma_set_max_seg_size(&device->dev, UINT_MAX);
 
 	err = host1x_device_parse_dt(device, driver);
 	if (err < 0) {