We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f940e5 commit f5aa168Copy full SHA for f5aa168
drivers/gpu/drm/sun4i/sun4i_drv.c
@@ -7,6 +7,7 @@
7
*/
8
9
#include <linux/component.h>
10
+#include <linux/dma-mapping.h>
11
#include <linux/kfifo.h>
12
#include <linux/module.h>
13
#include <linux/of_graph.h>
@@ -369,6 +370,13 @@ static int sun4i_drv_probe(struct platform_device *pdev)
369
370
371
INIT_KFIFO(list.fifo);
372
373
+ /*
374
+ * DE2 and DE3 cores actually supports 40-bit addresses, but
375
+ * driver does not.
376
+ */
377
+ dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
378
+ dma_set_max_seg_size(&pdev->dev, UINT_MAX);
379
+
380
for (i = 0;; i++) {
381
struct device_node *pipeline = of_parse_phandle(np,
382
"allwinner,pipelines",
0 commit comments