diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-10-26 14:45:34 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-12-17 21:39:28 +0530 |
commit | 92452a72ebdf1225aa37690d3648f2af6d0b4fca (patch) | |
tree | 44987787e463f20302dbe36253d17248683676eb /drivers/dma/idxd/idxd.h | |
parent | 0f93f2047d56d6ab93ba1ffeb30d318d0c5f52d7 (diff) | |
download | lwn-92452a72ebdf1225aa37690d3648f2af6d0b4fca.tar.gz lwn-92452a72ebdf1225aa37690d3648f2af6d0b4fca.zip |
dmaengine: idxd: set defaults for wq configs
Add default values for wq size, max_xfer_size and max_batch_size. These
values should provide a general guidance for the wq configuration when
the user does not specify any specific values.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163528473483.3926048.7950067926287180976.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/idxd.h')
-rw-r--r-- | drivers/dma/idxd/idxd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index 51e79201636c..89e98d69115b 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -150,6 +150,10 @@ struct idxd_cdev { #define WQ_NAME_SIZE 1024 #define WQ_TYPE_SIZE 10 +#define WQ_DEFAULT_QUEUE_DEPTH 16 +#define WQ_DEFAULT_MAX_XFER SZ_2M +#define WQ_DEFAULT_MAX_BATCH 32 + enum idxd_op_type { IDXD_OP_BLOCK = 0, IDXD_OP_NONBLOCK = 1, |