public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/tidss: Set max DMA segment size
@ 2022-08-23  0:16 Andrew Davis
  2022-11-09 17:40 ` Andrew Davis
  2022-12-16  8:17 ` Tomi Valkeinen
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Davis @ 2022-08-23  0:16 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Tomi Valkeinen, Jyri Sarha,
	dri-devel, linux-kernel
  Cc: Andrew Davis

We have no segment size limitations. Set to unlimited.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
index dd3c6a606ae2..624545e4636c 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.c
+++ b/drivers/gpu/drm/tidss/tidss_dispc.c
@@ -2685,6 +2685,7 @@ int dispc_init(struct tidss_device *tidss)
 		if (r)
 			dev_warn(dev, "cannot set DMA masks to 48-bit\n");
 	}
+	dma_set_max_seg_size(dev, UINT_MAX);
 
 	dispc = devm_kzalloc(dev, sizeof(*dispc), GFP_KERNEL);
 	if (!dispc)
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/tidss: Set max DMA segment size
  2022-08-23  0:16 [PATCH] drm/tidss: Set max DMA segment size Andrew Davis
@ 2022-11-09 17:40 ` Andrew Davis
  2022-12-16  8:17 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Davis @ 2022-11-09 17:40 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Tomi Valkeinen, Jyri Sarha,
	dri-devel, linux-kernel

On 8/22/22 7:16 PM, Andrew Davis wrote:
> We have no segment size limitations. Set to unlimited.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---

Ping, still valid.

Andrew

>   drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
> index dd3c6a606ae2..624545e4636c 100644
> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
> @@ -2685,6 +2685,7 @@ int dispc_init(struct tidss_device *tidss)
>   		if (r)
>   			dev_warn(dev, "cannot set DMA masks to 48-bit\n");
>   	}
> +	dma_set_max_seg_size(dev, UINT_MAX);
>   
>   	dispc = devm_kzalloc(dev, sizeof(*dispc), GFP_KERNEL);
>   	if (!dispc)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/tidss: Set max DMA segment size
  2022-08-23  0:16 [PATCH] drm/tidss: Set max DMA segment size Andrew Davis
  2022-11-09 17:40 ` Andrew Davis
@ 2022-12-16  8:17 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2022-12-16  8:17 UTC (permalink / raw)
  To: Andrew Davis, David Airlie, Daniel Vetter, Jyri Sarha, dri-devel,
	linux-kernel

On 23/08/2022 03:16, Andrew Davis wrote:
> We have no segment size limitations. Set to unlimited.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>   drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
> index dd3c6a606ae2..624545e4636c 100644
> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
> @@ -2685,6 +2685,7 @@ int dispc_init(struct tidss_device *tidss)
>   		if (r)
>   			dev_warn(dev, "cannot set DMA masks to 48-bit\n");
>   	}
> +	dma_set_max_seg_size(dev, UINT_MAX);
>   
>   	dispc = devm_kzalloc(dev, sizeof(*dispc), GFP_KERNEL);
>   	if (!dispc)

Thanks, I'll apply to drm-misc.

  Tomi


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-16  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-23  0:16 [PATCH] drm/tidss: Set max DMA segment size Andrew Davis
2022-11-09 17:40 ` Andrew Davis
2022-12-16  8:17 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox