public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER
@ 2026-02-16 12:12 Arnd Bergmann
  2026-02-17 13:18 ` Leon Romanovsky
  2026-02-23 19:49 ` Leon Romanovsky
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2026-02-16 12:12 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky, Edward Srouji, Yishai Hadas
  Cc: Arnd Bergmann, Allen Hubbe, Dennis Dalessandro, Usman Ansari,
	Siva Reddy Kallam, Abhijit Gangurde, linux-rdma, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The addition of dmabuf support in uverbs means that it is no
longer possible to build infiniband support if that is disabled:

arm-linux-gnueabi-ld: drivers/infiniband/core/ib_core_uverbs.o: in function `rdma_user_mmap_entry_remove.part.0':
ib_core_uverbs.c:(.text+0x508): undefined reference to `dma_buf_move_notify'
(dma_buf_move_notify): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o
ib_core_uverbs.c:(.text+0x518): undefined reference to `dma_resv_wait_timeout'
(dma_resv_wait_timeout): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o

Select this from Kconfig, as we do for the other users.

Fixes: 0ac6f4056c4a ("RDMA/uverbs: Add DMABUF object type and operations")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/infiniband/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
index 794b9778816b..78ac2ff5befd 100644
--- a/drivers/infiniband/Kconfig
+++ b/drivers/infiniband/Kconfig
@@ -6,6 +6,7 @@ menuconfig INFINIBAND
 	depends on INET
 	depends on m || IPV6 != m
 	depends on !ALPHA
+	select DMA_SHARED_BUFFER
 	select IRQ_POLL
 	select DIMLIB
 	help
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER
  2026-02-16 12:12 [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER Arnd Bergmann
@ 2026-02-17 13:18 ` Leon Romanovsky
  2026-02-23 19:49 ` Leon Romanovsky
  1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2026-02-17 13:18 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jason Gunthorpe, Edward Srouji, Yishai Hadas, Arnd Bergmann,
	Allen Hubbe, Dennis Dalessandro, Usman Ansari, Siva Reddy Kallam,
	Abhijit Gangurde, linux-rdma, linux-kernel

On Mon, Feb 16, 2026 at 01:12:00PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The addition of dmabuf support in uverbs means that it is no
> longer possible to build infiniband support if that is disabled:
> 
> arm-linux-gnueabi-ld: drivers/infiniband/core/ib_core_uverbs.o: in function `rdma_user_mmap_entry_remove.part.0':
> ib_core_uverbs.c:(.text+0x508): undefined reference to `dma_buf_move_notify'
> (dma_buf_move_notify): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o
> ib_core_uverbs.c:(.text+0x518): undefined reference to `dma_resv_wait_timeout'
> (dma_resv_wait_timeout): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o
> 
> Select this from Kconfig, as we do for the other users.
> 
> Fixes: 0ac6f4056c4a ("RDMA/uverbs: Add DMABUF object type and operations")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/infiniband/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 

It looks reasonable to me. dma-buf is becoming a first‑class citizen in the
RDMA world.

Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER
  2026-02-16 12:12 [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER Arnd Bergmann
  2026-02-17 13:18 ` Leon Romanovsky
@ 2026-02-23 19:49 ` Leon Romanovsky
  1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2026-02-23 19:49 UTC (permalink / raw)
  To: Jason Gunthorpe, Edward Srouji, Yishai Hadas, Arnd Bergmann
  Cc: Arnd Bergmann, Allen Hubbe, Dennis Dalessandro, Usman Ansari,
	Siva Reddy Kallam, Abhijit Gangurde, linux-rdma, linux-kernel


On Mon, 16 Feb 2026 13:12:00 +0100, Arnd Bergmann wrote:
> The addition of dmabuf support in uverbs means that it is no
> longer possible to build infiniband support if that is disabled:
> 
> arm-linux-gnueabi-ld: drivers/infiniband/core/ib_core_uverbs.o: in function `rdma_user_mmap_entry_remove.part.0':
> ib_core_uverbs.c:(.text+0x508): undefined reference to `dma_buf_move_notify'
> (dma_buf_move_notify): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o
> ib_core_uverbs.c:(.text+0x518): undefined reference to `dma_resv_wait_timeout'
> (dma_resv_wait_timeout): Unknown destination type (ARM/Thumb) in drivers/infiniband/core/ib_core_uverbs.o
> 
> [...]

Applied, thanks!

[1/1] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER
      https://git.kernel.org/rdma/rdma/c/16cb1a64dce567

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-23 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-16 12:12 [PATCH] RDMA/uverbs: select CONFIG_DMA_SHARED_BUFFER Arnd Bergmann
2026-02-17 13:18 ` Leon Romanovsky
2026-02-23 19:49 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox