Skip to contentSkip to conversation

drm/tidss: Set max DMA segment size

PATCH In review Andrew Davis 2 participants 3 messages Aug 23, 2022 – Dec 16, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/tidss: Set max DMA segment size

We have no segment size limitations. Set to unlimited.

---
 drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tidss/tidss_dispc.c +1 -0
index dd3c6a606ae2..624545e4636c 100644
@@ -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)
Signature · 1 line
2.36.1
#1 lore raw
Quoted 4 lines · Andrew Davis

We have no segment size limitations. Set to unlimited.

---

Ping, still valid.

Andrew

Quoted 15 lines
  drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/tidss/tidss_dispc.c +1 -0
index dd3c6a606ae2..624545e4636c 100644
@@ -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)
maintainer
#2 lore raw
In reply to Andrew Davis
Quoted 12 lines · Andrew Davis

We have no segment size limitations. Set to unlimited.

---
  drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/tidss/tidss_dispc.c +0 -0
index dd3c6a606ae2..624545e4636c 100644

drivers/gpu/drm/tidss/tidss_dispc.c int dispc_init(struct tidss_device *tidss) · line 2691

Quoted 7 lines
drivers/gpu/drm/tidss/tidss_dispc.c +1 -0
@@ -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