idxd: Bump batch size to 32
Increase the batch size and with it the effective queue depth per channel to 512. Change-Id: Ide665e92d47ee753c141f34dd6a8bc4d040fe8db Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11031 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com>
This commit is contained in:
parent
4b8a57eead
commit
86bb0df191
@ -61,8 +61,8 @@ static inline void movdir64b(void *dst, const void *src)
|
||||
|
||||
/* TODO: consider setting the max per batch limit via RPC. */
|
||||
|
||||
/* The following sets up a max desc count per batch of 16 */
|
||||
#define LOG2_WQ_MAX_BATCH 4 /* 2^4 = 16 */
|
||||
/* The following sets up a max desc count per batch of 32 */
|
||||
#define LOG2_WQ_MAX_BATCH 5 /* 2^5 = 32 */
|
||||
#define DESC_PER_BATCH (1 << LOG2_WQ_MAX_BATCH)
|
||||
#define MIN_USER_DESC_COUNT 2
|
||||
|
||||
|
@ -107,7 +107,7 @@ test_idxd_wq_config(void)
|
||||
struct spdk_user_idxd_device user_idxd = {};
|
||||
struct spdk_idxd_device *idxd = &user_idxd.idxd;
|
||||
union idxd_wqcfg wqcfg = {};
|
||||
uint32_t expected[8] = {0x40, 0, 0x11, 0x9e, 0, 0, 0x40000000, 0};
|
||||
uint32_t expected[8] = {0x40, 0, 0x11, 0xbe, 0, 0, 0x40000000, 0};
|
||||
uint32_t wq_size;
|
||||
int rc, i, j;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user