From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030701AbdDSSZC (ORCPT ); Wed, 19 Apr 2017 14:25:02 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:60957 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030685AbdDSSZA (ORCPT ); Wed, 19 Apr 2017 14:25:00 -0400 From: Arnd Bergmann To: Thierry Reding Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. -- 2.9.0