dmaengine: idxd: add configuration for concurrent batch descriptor processing
authorDave Jiang <dave.jiang@intel.com>
Sat, 17 Sep 2022 16:12:22 +0000 (09:12 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Sep 2022 17:16:08 +0000 (22:46 +0530)
commit7ca68fa3c8ab83dfa539f16c5b4b1aec2e33320d
treed2297934d9f37825cbe31c848cad90b86a91a9e8
parent1f2737521af2b7d018971f1d873856fff02d2b33
dmaengine: idxd: add configuration for concurrent batch descriptor processing

Add sysfs knob to allow control of the number of batch descriptors that can
be concurrently processed by an engine in the group as a fraction of the
Maximum Work Descriptors in Progress value specfied in ENGCAP register.
This control knob is part of toggle for QoS control.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20220917161222.2835172-6-fenghua.yu@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/registers.h
drivers/dma/idxd/sysfs.c