[PATCH] gpu: host1x: select CONFIG_DMA_SHARED_BUFFER

Subsystems: drm drivers, drm drivers for nvidia tegra, the rest

STALE1801d

3 messages, 3 authors, 2021-10-07 · open the first message on its own page

[PATCH] gpu: host1x: select CONFIG_DMA_SHARED_BUFFER

From: Arnd Bergmann <arnd@kernel.org>
Date: 2021-09-27 09:37:14

From: Arnd Bergmann <arnd@arndb.de>

Linking fails when dma-buf is disabled:

ld.lld: error: undefined symbol: dma_fence_release
quoted
quoted
referenced by fence.c
              gpu/host1x/fence.o:(host1x_syncpt_fence_enable_signaling) in archive drivers/built-in.a
referenced by fence.c
              gpu/host1x/fence.o:(host1x_fence_signal) in archive drivers/built-in.a
referenced by fence.c
              gpu/host1x/fence.o:(do_fence_timeout) in archive drivers/built-in.a
Fixes: 687db2207b1b ("gpu: host1x: Add DMA fence implementation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/host1x/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
index 6dab94adf25e..6815b4db17c1 100644
--- a/drivers/gpu/host1x/Kconfig
+++ b/drivers/gpu/host1x/Kconfig
@@ -2,6 +2,7 @@
 config TEGRA_HOST1X
 	tristate "NVIDIA Tegra host1x driver"
 	depends on ARCH_TEGRA || (ARM && COMPILE_TEST)
+	select DMA_SHARED_BUFFER
 	select IOMMU_IOVA
 	help
 	  Driver for the NVIDIA Tegra host1x hardware.
-- 
2.29.2

Re: [PATCH] gpu: host1x: select CONFIG_DMA_SHARED_BUFFER

From: Mikko Perttunen <hidden>
Date: 2021-09-27 11:05:05

On 9/27/21 12:36 PM, Arnd Bergmann wrote:
quoted hunk
From: Arnd Bergmann <arnd@arndb.de>

Linking fails when dma-buf is disabled:

ld.lld: error: undefined symbol: dma_fence_release
quoted
quoted
quoted
referenced by fence.c
               gpu/host1x/fence.o:(host1x_syncpt_fence_enable_signaling) in archive drivers/built-in.a
referenced by fence.c
               gpu/host1x/fence.o:(host1x_fence_signal) in archive drivers/built-in.a
referenced by fence.c
               gpu/host1x/fence.o:(do_fence_timeout) in archive drivers/built-in.a
Fixes: 687db2207b1b ("gpu: host1x: Add DMA fence implementation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
  drivers/gpu/host1x/Kconfig | 1 +
  1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
index 6dab94adf25e..6815b4db17c1 100644
--- a/drivers/gpu/host1x/Kconfig
+++ b/drivers/gpu/host1x/Kconfig
@@ -2,6 +2,7 @@
  config TEGRA_HOST1X
  	tristate "NVIDIA Tegra host1x driver"
  	depends on ARCH_TEGRA || (ARM && COMPILE_TEST)
+	select DMA_SHARED_BUFFER
  	select IOMMU_IOVA
  	help
  	  Driver for the NVIDIA Tegra host1x hardware.
Thanks!

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>

Re: [PATCH] gpu: host1x: select CONFIG_DMA_SHARED_BUFFER

From: Thierry Reding <hidden>
Date: 2021-10-07 18:04:00

On Mon, Sep 27, 2021 at 11:36:59AM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

Linking fails when dma-buf is disabled:

ld.lld: error: undefined symbol: dma_fence_release
quoted
quoted
quoted
referenced by fence.c
              gpu/host1x/fence.o:(host1x_syncpt_fence_enable_signaling) in archive drivers/built-in.a
referenced by fence.c
              gpu/host1x/fence.o:(host1x_fence_signal) in archive drivers/built-in.a
referenced by fence.c
              gpu/host1x/fence.o:(do_fence_timeout) in archive drivers/built-in.a
Fixes: 687db2207b1b ("gpu: host1x: Add DMA fence implementation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/host1x/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Applied, thanks.

Thierry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help