Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: select CONFIG_DMA_SHARED_BUFFER

Linking fails when dma-buf is disabled:

ld.lld: error: undefined symbol: dma_fence_release
>>> 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>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Arnd Bergmann and committed by
Thierry Reding
6c7a388b ab3c971d

+1
+1
drivers/gpu/host1x/Kconfig
··· 2 2 config TEGRA_HOST1X 3 3 tristate "NVIDIA Tegra host1x driver" 4 4 depends on ARCH_TEGRA || (ARM && COMPILE_TEST) 5 + select DMA_SHARED_BUFFER 5 6 select IOMMU_IOVA 6 7 help 7 8 Driver for the NVIDIA Tegra host1x hardware.