Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: Do not limit DMA segment size

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

Signed-off-by: Thierry Reding <treding@nvidia.com>

+6 -1
+1 -1
drivers/gpu/host1x/bus.c
··· 445 445 of_dma_configure(&device->dev, host1x->dev->of_node, true); 446 446 447 447 device->dev.dma_parms = &device->dma_parms; 448 - dma_set_max_seg_size(&device->dev, SZ_4M); 448 + dma_set_max_seg_size(&device->dev, UINT_MAX); 449 449 450 450 err = host1x_device_parse_dt(device, driver); 451 451 if (err < 0) {
+3
drivers/gpu/host1x/dev.c
··· 237 237 return PTR_ERR(host->hv_regs); 238 238 } 239 239 240 + host->dev->dma_parms = &host->dma_parms; 241 + dma_set_max_seg_size(host->dev, UINT_MAX); 242 + 240 243 dma_set_mask_and_coherent(host->dev, host->info->dma_mask); 241 244 242 245 if (host->info->init) {
+2
drivers/gpu/host1x/dev.h
··· 140 140 struct list_head devices; 141 141 142 142 struct list_head list; 143 + 144 + struct device_dma_parameters dma_parms; 143 145 }; 144 146 145 147 void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v);