Content-Type: multipart/mixed; boundary="===============2226863063059837629==" MIME-Version: 1.0 From: Dave Jiang Subject: [Accel-config] Re: [PATCH v1 1/1] accel-config/test: Fix description timeout calculation to overflow Date: Wed, 27 Apr 2022 19:19:55 -0700 Message-ID: In-Reply-To: BN9PR11MB543377389D0870D9550587188AFD9@BN9PR11MB5433.namprd11.prod.outlook.com To: accel-config@lists.01.org List-ID: --===============2226863063059837629== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 4/27/2022 7:15 PM, Zhu, Tony wrote: > Dave, > > The code base is pending branch. It included the common code refactor= ing. > > I've tested it. msec_timeout is defined in the function. > > int acctest_wait_on_desc_timeout(struct completion_record *comp, > struct acctest_context *ctx, > unsigned int msec_timeout) > > unsigned int ms_timeout =3D 5000, should not use it in this function. Gotcha. Should the unused var be removed? Otherwise Reviewed-by: Dave = Jiang > > Tony(zhu, xinzhan) > Cube:SHZ1-3W-279 > iNet:8821-5077 > > -----Original Message----- > From: Jiang, Dave > Sent: Thursday, April 28, 2022 9:49 AM > To: Zhu, Tony ; accel-config(a)lists.01.org > Cc: Thomas, Ramesh ; Buchanan, Kenneth > Subject: Re: [PATCH v1 1/1] accel-config/test: Fix description timeout ca= lculation to overflow > > > On 4/27/2022 6:31 PM, Tony Zhu wrote: >> Dsa_test application will fail when when utilizing memory sizes larger >> than 128MiB against multiple devices. The init of timeout should use >> the input msec_timeout. >> >> Signed-off-by: Tony Zhu > Ken, you want your sign off added? > >> --- >> test/accel_test.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/test/accel_test.c b/test/accel_test.c index >> 8487099..0468a00 100644 >> --- a/test/accel_test.c >> +++ b/test/accel_test.c >> @@ -331,7 +331,7 @@ int acctest_wait_on_desc_timeout(struct completion_r= ecord *comp, >> j++; >> } >> } else { >> - unsigned long timeout =3D (ms_timeout * 1000000) * 3; >> + unsigned long timeout =3D (msec_timeout * 1000000ul) * 3; > Couple things. This looks like changed with the common code refactoring? > Has that merged by Ramesh? If not then maybe do the diff before that code= since we need to get this fix released. And then make sure the refactoring= take this change into account. > > Also, did you compile test this? I don't see the var name ms_timeout chan= ged to msec_timeout. > >> int r =3D 1; >> unsigned long t =3D 0; >> --===============2226863063059837629==--