]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gpu: host1x: select CONFIG_DMA_SHARED_BUFFER
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Sep 2021 09:36:59 +0000 (11:36 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:06 +0000 (14:07 +0100)
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>
drivers/gpu/host1x/Kconfig

index 6dab94adf25e5325e4b3c9987cc960dae8170c35..6815b4db17c1b02c2a3addb5f44eb527c61ccbe7 100644 (file)
@@ -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.