dmaengine: idxd: set descriptor allocation size to threshold for swq
authorDave Jiang <dave.jiang@intel.com>
Fri, 6 Aug 2021 17:38:37 +0000 (10:38 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 25 Aug 2021 11:30:24 +0000 (17:00 +0530)
commit9806eb5c79579e200f88660e043706eb490547e6
tree3035d47dbf337045b52d81c0bdcf449cb4861191
parent0b030f54f094fcd42f4a607a675c1851129a58c8
dmaengine: idxd: set descriptor allocation size to threshold for swq

Since submission is sent to limited portal, the actual wq size for shared
wq is set by the threshold rather than the wq size. When the wq type is
shared, set the allocated descriptors to the threshold.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162827151733.3459223.3829837172226042408.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c