dmaengine: idxd: add wq driver name support for accel-config user tool
authorDave Jiang <dave.jiang@intel.com>
Fri, 8 Sep 2023 20:10:45 +0000 (13:10 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Oct 2023 07:30:34 +0000 (13:00 +0530)
commit7af1e0aceeb321cbc90fcf6fa0bec8870290377f
tree3d1ed889e0783836af5e8b09b1d056870480b65c
parentc223bafdcbd51506df00509088efc62e08ef6c3f
dmaengine: idxd: add wq driver name support for accel-config user tool

With the possibility of multiple wq drivers that can be bound to the wq,
the user config tool accel-config needs a way to know which wq driver to
bind to the wq. Introduce per wq driver_name sysfs attribute where the user
can indicate the driver to be bound to the wq. This allows accel-config to
just bind to the driver using wq->driver_name.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20230908201045.4115614-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/ABI/stable/sysfs-driver-dma-idxd
drivers/dma/idxd/cdev.c
drivers/dma/idxd/dma.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/sysfs.c
include/uapi/linux/idxd.h