dmaengine: idxd: add char driver to expose submission portal to userland
Create a char device region that will allow acquisition of user portals in order to allow applications to submit DMA operations. A char device will be created per work queue that gets exposed. The workqueue type "user" is used to mark a work queue for user char device. For example if the workqueue 0 of DSA device 0 is marked for char device, then a device node of /dev/dsa/wq0.0 will be created. Signed-off-by:Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/157965026985.73301.976523230037106742.stgit@djiang5-desk3.ch.intel.com Signed-off-by:
Vinod Koul <vkoul@kernel.org>
Showing
- drivers/dma/idxd/Makefile 1 addition, 1 deletiondrivers/dma/idxd/Makefile
- drivers/dma/idxd/cdev.c 302 additions, 0 deletionsdrivers/dma/idxd/cdev.c
- drivers/dma/idxd/device.c 1 addition, 1 deletiondrivers/dma/idxd/device.c
- drivers/dma/idxd/idxd.h 37 additions, 0 deletionsdrivers/dma/idxd/idxd.h
- drivers/dma/idxd/init.c 10 additions, 0 deletionsdrivers/dma/idxd/init.c
- drivers/dma/idxd/irq.c 18 additions, 0 deletionsdrivers/dma/idxd/irq.c
- drivers/dma/idxd/submit.c 3 additions, 1 deletiondrivers/dma/idxd/submit.c
- drivers/dma/idxd/sysfs.c 50 additions, 2 deletionsdrivers/dma/idxd/sysfs.c
Please register or sign in to comment