Commit 0e73e10d authored by paul luse's avatar paul luse Committed by Tomasz Zawadzki
Browse files

lib/idxd: add a condition to sim workaround



Developer convenience - make this based on a specific version.

Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Change-Id: I228b8aff6e8957cad5e8c1fae5615b113e16cfb5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5950


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
parent 6edaae0f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}