From patchwork Wed Apr 19 18:24:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9688611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B9C9602DC for ; Wed, 19 Apr 2017 18:24:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02A4328387 for ; Wed, 19 Apr 2017 18:24:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB5A62843B; Wed, 19 Apr 2017 18:24:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 97F4B28387 for ; Wed, 19 Apr 2017 18:24:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB0816E2C3; Wed, 19 Apr 2017 18:24:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA6316E2D1 for ; Wed, 19 Apr 2017 18:24:46 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LlrG8-1cRZWu2hSS-00ZNS4; Wed, 19 Apr 2017 20:24:44 +0200 From: Arnd Bergmann To: Thierry Reding Subject: [PATCH] gpu: host1x: select IOMMU_IOVA Date: Wed, 19 Apr 2017 20:24:41 +0200 Message-Id: <20170419182449.885312-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:1uJaQKHZbuhUaDMtOTGsN2SDR15xgpsy2gwawWMsYkr6NJQGkoP 6F2j0ZpTvQXJJLEVLnZkOM6F7Vep1BhXlIF1rhRGBPpNz+c43uyB0ZfnZ6nCMAl2pgCbtA1 ek+hJvNy2lEon5+CWM998C40wZDyA3SAc1lBPG7vHzWJaipmmRGx5QoKAY90zUyba7Mnh8u 6D9PDpIsy5go8Kbq+mzxQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:wvftpOQY4VY=:xgbly/zr/eFi/NgdflbA+K aEIZNOsCBh+nPGdYnP40hKVwOZiYlaEniPLK5nsf2Jhs6IKpytnBvhbd3bELaytJyfXgGdq5o iwk7l4jqE/q27Tk9C8khX7H3P57CF4ocAw3l/OFlLFUK7YdqnJNFUw389HMXnTXxc5hHZ/4iD nOvTBxfUNb/WsRZrHOYTwQr23ijJrFIAJAf7Q4hJ9WqZqNcokMPu6IqTle+ppnwyRYFnPOvss D7qyQ/ETPvAGSi9oX8euO+hVJDMmm02K1wNNebmZH23i6tdFXl2nlgZ+LXNfqIzN8J5vM31C5 LwNKOWlfuISIKXlfopVUkEzeL1KJRqC89Yw7oZ2jd0yucQgZMEjcUu/SBx4i/k4KukObYct50 bUw2cxlfxXyzrGWcoE7pZcdbRojueE3PbtpzKSEzHON1hdd8XZtzhUv9xM1axVEZGYwupx2Pu 1nXNsiy2xHXcWa2onZTBZNkZEWpHWFhVEY9IXhUVhXU7X+SdyCxA9voiqWfVXSyYhF+Kr5wMe tObQEo21GylmqUFyP7jO96cnZlaTHrqqqBO2DJRSS45WNRV427islvLxtmBMF/yy3FSo5qX/R jQkEPaR4LYzAnUwKf3aWgKGNKZoroSNDEHfkLIfruvsqY4txyGCsf5ruG9ds+YpbELex8iM7v ftAbMPE2Opzht9QfQ0T9WFsoSvfKnro5SurzkikaBah407ONBw1bTJfR7rN9F8ONrzp4= Cc: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.org 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" X-Virus-Scanned: ClamAV using ClamSMTP When IOMMU_IOVA is not built-in but host1x is, we get a link error: drivers/gpu/host1x/dev.o: In function `host1x_remove': dev.c:(.text.host1x_remove+0x50): undefined reference to `put_iova_domain' drivers/gpu/host1x/dev.o: In function `host1x_probe': dev.c:(.text.host1x_probe+0x31c): undefined reference to `init_iova_domain' dev.c:(.text.host1x_probe+0x38c): undefined reference to `put_iova_domain' drivers/gpu/host1x/cdma.o: In function `host1x_cdma_init': cdma.c:(.text.host1x_cdma_init+0x238): undefined reference to `alloc_iova' cdma.c:(.text.host1x_cdma_init+0x2c0): undefined reference to `__free_iova' drivers/gpu/host1x/cdma.o: In function `host1x_cdma_deinit': cdma.c:(.text.host1x_cdma_deinit+0xb0): undefined reference to `free_iova' This adds the same select statement that we have for drm_tegra. Fixes: 404bfb78daf3 ("gpu: host1x: Add IOMMU support") Signed-off-by: Arnd Bergmann Reviewed-by: Mikko Perttunen --- drivers/gpu/host1x/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig index b2fd029d67b3..91916326957f 100644 --- a/drivers/gpu/host1x/Kconfig +++ b/drivers/gpu/host1x/Kconfig @@ -1,6 +1,7 @@ config TEGRA_HOST1X tristate "NVIDIA Tegra host1x driver" depends on ARCH_TEGRA || (ARM && COMPILE_TEST) + select IOMMU_IOVA if IOMMU_SUPPORT help Driver for the NVIDIA Tegra host1x hardware.