OSDN Git Service

dmaengine: idxd: add support for configurable max wq batch size
authorDave Jiang <dave.jiang@intel.com>
Fri, 28 Aug 2020 22:12:50 +0000 (15:12 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Sep 2020 07:10:12 +0000 (12:40 +0530)
commite7184b159dd37f4be8ff3d070c7c11f76b5bc3fe
tree9c7891e6deddb6a3de55f5a91839deea4d63ad37
parentd7aad5550eca50370e3a1471b46281d03af0699e
dmaengine: idxd: add support for configurable max wq batch size

Add sysfs attribute max_batch_size to wq in order to allow the max batch
size configured on a per wq basis. Add support code to configure
the valid user input on wq enable. This is a performance tuning
parameter.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/159865273617.29141.4383066301730821749.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/ABI/stable/sysfs-driver-dma-idxd
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/sysfs.c