lib/idxd: add a condition to sim workaround
Developer convenience - make this based on a specific version. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I228b8aff6e8957cad5e8c1fae5615b113e16cfb5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5950 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
6edaae0fb8
commit
0e73e10da8
@ -1178,7 +1178,9 @@ _idxd_batch_prep_nop(struct spdk_idxd_io_channel *chan, struct idxd_batch *batch
|
||||
/* Command specific. */
|
||||
desc->opcode = IDXD_OPCODE_NOOP;
|
||||
/* TODO: temp workaround for simulator. Remove when fixed or w/silicon. */
|
||||
if (chan->idxd->registers.gencap.raw == 0x1833f011f) {
|
||||
desc->xfer_size = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user