From patchwork Wed Feb 3 12:42:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 61074 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp267405lbl; Wed, 3 Feb 2016 04:43:24 -0800 (PST) X-Received: by 10.98.15.19 with SMTP id x19mr1863253pfi.60.1454503400597; Wed, 03 Feb 2016 04:43:20 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id o12si9169798pfa.162.2016.02.03.04.43.20; Wed, 03 Feb 2016 04:43:20 -0800 (PST) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9C9D6E3DB; Wed, 3 Feb 2016 04:43:15 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id C32DA6E113 for ; Wed, 3 Feb 2016 04:43:14 -0800 (PST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O1Z00KF4202H590@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 03 Feb 2016 12:43:14 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-bc-56b1f5e214c0 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 50.0D.16778.2E5F1B65; Wed, 3 Feb 2016 12:43:14 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O1Z00B561ZTMTA0@eusync3.samsung.com>; Wed, 03 Feb 2016 12:43:14 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 08/10] drm/exynos: initialize DMA ops for virtual Exynos DRM device Date: Wed, 03 Feb 2016 13:42:52 +0100 Message-id: <1454503374-16382-9-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1454503374-16382-1-git-send-email-m.szyprowski@samsung.com> References: <1454503374-16382-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprELMWRmVeSWpSXmKPExsVy+t/xq7qPvm4MM+ifyGtxa905VouNM9az Wlz5+p7NYtL9CSwWL+5dZLF4/cLQYsb5fUwWa4/cZbeYMfklmwOnx/3u40wefVtWMXp83iQX wBzFZZOSmpNZllqkb5fAlfFnjn7BL7aK7fMWMjUw/mPtYuTkkBAwkfizbhE7hC0mceHeerYu Ri4OIYGljBKN/ZvYIZwmJom3d9eAdbAJGEp0ve1iA7FFBNwkmg7PZAUpYhbYwiTRvmsjE0hC WCBU4sO0/WA2i4CqxKxDB5lBbF4BD4lPK+axQayTk/j/cgVYDaeAp8Sejk6WLkYOoG0eEnNu +U9g5F3AyLCKUTS1NLmgOCk911CvODG3uDQvXS85P3cTIySkvuxgXHzM6hCjAAejEg8vw48N YUKsiWXFlbmHGCU4mJVEeI0+bwwT4k1JrKxKLcqPLyrNSS0+xCjNwaIkzjt31/sQIYH0xJLU 7NTUgtQimCwTB6dUA+NSKzUn+b1bG8vvrNvYfvLl6rdnNmn8PbNEieGttkmFwbub31362Wu1 /2Qmf9qjsNb05bYv+ce8j3sfFwtNOpWl1m7pu0Dm3sx9Bkt2by8qejj1Z8mdLjb1y94iD+0D z1ne+WfxaPL5n+sqeYRYZzrIH/5Z57NO9/OWjNXqK/SWtT/MYNa5dOq0EktxRqKhFnNRcSIA dp6r7SUCAAA= Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Andrzej Hajda , Marek Szyprowski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Virtual DRM device is used for memory allocation for GEM objects. On some architectures null dma operations are assigned for virtual devices if no explicit initialization has been made. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 68f0f36..a33ea44 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -144,6 +144,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) init_waitqueue_head(&private->wait); spin_lock_init(&private->lock); + arch_setup_dma_ops(dev->dev, 0, DMA_BIT_MASK(32), false, false); dev_set_drvdata(dev->dev, dev); dev->dev_private = (void *)private;