Content-Type: multipart/mixed; boundary="===============9214913467691346977==" MIME-Version: 1.0 From: Dave Jiang Subject: [Accel-config] Re: [PATCH v1] accel-config/test: Fix bug of setting max destination size Date: Tue, 14 Jun 2022 08:15:53 -0700 Message-ID: <5685def9-c0c6-dce1-1b60-b1cf82cf6705@intel.com> In-Reply-To: 20220614071228.1931638-1-li4.zhang@intel.com To: accel-config@lists.01.org List-ID: --===============9214913467691346977== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 6/14/2022 12:12 AM, Li Zhang wrote: > It's incorrect to use a fixed size for setting the max destination size, > replace it with setting wq_max_xfer_size to the max destination size in > descriptor register. > > Signed-off-by: Li Zhang Reviewed-by: Dave Jiang > --- > test/iaa.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/test/iaa.c b/test/iaa.c > index 7cc11c7..ad6c521 100644 > --- a/test/iaa.c > +++ b/test/iaa.c > @@ -567,7 +567,7 @@ int iaa_compress_multi_task_nodes(struct acctest_cont= ext *ctx) > = > tsk_node->tsk->iaa_compr_flags =3D (IDXD_COMPRESS_FLAG_EOB_BFINAL | > IDXD_COMPRESS_FLAG_FLUSH_OUTPUT); > - tsk_node->tsk->iaa_max_dst_size =3D IAA_COMPRESS_MAX_DEST_SIZE; > + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; > = > iaa_prep_compress(tsk_node->tsk); > tsk_node =3D tsk_node->next; > @@ -625,7 +625,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_co= ntext *ctx) > = > tsk_node->tsk->iaa_compr_flags =3D (IDXD_COMPRESS_FLAG_EOB_BFINAL | > IDXD_COMPRESS_FLAG_FLUSH_OUTPUT); > - tsk_node->tsk->iaa_max_dst_size =3D IAA_DECOMPRESS_MAX_DEST_SIZE; > + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; > = > iaa_prep_compress(tsk_node->tsk); > tsk_node =3D tsk_node->next; > @@ -676,7 +676,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_co= ntext *ctx) > IDXD_DECOMPRESS_FLAG_STOP_ON_EOB | > IDXD_DECOMPRESS_FLAG_FLUSH_OUTPUT | > IDXD_DECOMPRESS_FLAG_EN_DECOMPRESS); > - tsk_node->tsk->iaa_max_dst_size =3D IAA_DECOMPRESS_MAX_DEST_SIZE; > + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; > = > iaa_prep_decompress(tsk_node->tsk); > tsk_node =3D tsk_node->next; --===============9214913467691346977==--