Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1340326

[PATCH 1/2] drm/tegra: Set DMA ops

From Alexandre Courbot <acourbot@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] drm/tegra: Set DMA ops
Date 2016-02-23 07:30 +0100
Message-ID <r5eDU-1jC-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The current settings leaves the DRM device's dma_ops field NULL, which
makes it use the dummy DMA ops on arm64 and return an error whenever we
try to import a buffer. Call of_dma_configure() with a NULL node (since
the device is not spawn from the device tree) so that
arch_setup_dma_ops() is called and sets the default ioswtlb DMA ops.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 drivers/gpu/drm/tegra/drm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index d347188bf8f4..bc0555adecaf 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -9,6 +9,7 @@
 
 #include <linux/host1x.h>
 #include <linux/iommu.h>
+#include <linux/of_device.h>
 
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
@@ -990,6 +991,7 @@ static int host1x_drm_probe(struct host1x_device *dev)
 		return -ENOMEM;
 
 	dev_set_drvdata(&dev->dev, drm);
+	of_dma_configure(drm->dev, NULL);
 
 	err = drm_dev_register(drm, 0);
 	if (err < 0)
-- 
2.7.1

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] drm/tegra: Set DMA ops Alexandre Courbot <acourbot@nvidia.com> - 2016-02-23 07:30 +0100
  Re: [PATCH 1/2] drm/tegra: Set DMA ops Thierry Reding <thierry.reding@gmail.com> - 2016-02-23 16:30 +0100
    Re: [PATCH 1/2] drm/tegra: Set DMA ops Alexandre Courbot <acourbot@nvidia.com> - 2016-02-24 09:40 +0100

csiph-web