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>
This commit is contained in:
parent
004e822a6f
commit
d98914ebc2
@ -445,7 +445,7 @@ static int host1x_device_add(struct host1x *host1x,
|
|||||||
of_dma_configure(&device->dev, host1x->dev->of_node, true);
|
of_dma_configure(&device->dev, host1x->dev->of_node, true);
|
||||||
|
|
||||||
device->dev.dma_parms = &device->dma_parms;
|
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);
|
err = host1x_device_parse_dt(device, driver);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
@ -237,6 +237,9 @@ static int host1x_probe(struct platform_device *pdev)
|
|||||||
return PTR_ERR(host->hv_regs);
|
return PTR_ERR(host->hv_regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
host->dev->dma_parms = &host->dma_parms;
|
||||||
|
dma_set_max_seg_size(host->dev, UINT_MAX);
|
||||||
|
|
||||||
dma_set_mask_and_coherent(host->dev, host->info->dma_mask);
|
dma_set_mask_and_coherent(host->dev, host->info->dma_mask);
|
||||||
|
|
||||||
if (host->info->init) {
|
if (host->info->init) {
|
||||||
|
@ -140,6 +140,8 @@ struct host1x {
|
|||||||
struct list_head devices;
|
struct list_head devices;
|
||||||
|
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
|
|
||||||
|
struct device_dma_parameters dma_parms;
|
||||||
};
|
};
|
||||||
|
|
||||||
void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v);
|
void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v);
|
||||||
|
Loading…
Reference in New Issue
Block a user