[Accel-config] Re: [PATCH v1] accel-config/test: Fix bug of setting max destination size
Dave Jiang <dave.jiang at intel.com> Tue, 14 Jun 2022 08:15:53 -0700
| Newsgroups | dev.linux.lists.accel-config |
|---|---|
| Message-ID | <[email protected]> |
--===============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 <li4.zhang(a)intel.com> Reviewed-by: Dave Jiang <dave.jiang(a)intel.com> > --- > 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==--