DMA Engine development
 help / color / mirror / Atom feed
* idxd: shared workqueues and dmaengine
@ 2025-03-27  0:05 Kevin Krakauer
  2025-03-27  0:15 ` Dave Jiang
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Krakauer @ 2025-03-27  0:05 UTC (permalink / raw)
  To: fenghua.yu, dave.jiang; +Cc: dmaengine

Hey, I'm trying to use idxd inside the kernel via dmaengine. I'm
attempting to get shared work queues (SWQs) via dma_find_channel(),
which stubbornly returns NULL.

After a lot of printk-ing, I finally ran across DMA_PRIVATE. I also
found [1] and saw that DMA_PRIVATE is also set in the idxd driver since
c06e424be5f51844 ("dmaengine: idxd: set DMA channel to be private").

It seems like this forces use of dma_request_channel(). But I believe
the idea behind SWQs is that they don't have to be exclusively owned.

Is there a way to use SWQs via dma_find_channel()? dma_request_channel()
seems like overkill, as the point of SWQs is to not be exclusive. Also a
good chance I'm missing something basic here :)

Thanks!
Kevin

1 - https://lore.kernel.org/dmaengine/9714cb6c-8b37-4fc6-bb09-a1fb4a5bb1b8@intel.com/#R

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

end of thread, other threads:[~2025-03-27 20:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27  0:05 idxd: shared workqueues and dmaengine Kevin Krakauer
2025-03-27  0:15 ` Dave Jiang
2025-03-27 18:56   ` Kevin Krakauer
2025-03-27 20:22     ` Dave Jiang

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