From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75D796E235 for ; Fri, 27 Mar 2020 04:50:13 +0000 (UTC) Date: Thu, 26 Mar 2020 21:50:12 -0700 Message-ID: <87wo76s8or.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20200327044250.64274-1-ashutosh.dixit@intel.com> References: <20200327044250.64274-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [igt-dev] [PATCH i-g-t] tests/perf: add a test for OA data polling reads using "small" buffers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: On Thu, 26 Mar 2020 21:42:50 -0700, Ashutosh Dixit wrote: > diff --git a/tests/perf.c b/tests/perf.c > index 724f6f809..3dc757c3b 100644 > --- a/tests/perf.c > +++ b/tests/perf.c > +static void test_polling_small_buf(void) > +{ /snip/ > + > + igt_assert(abs(n_expect_read_bytes - n_bytes_read) < (0.10 * n_expect_read_bytes)); > +} > + I'd be wary of a 90% match on slow platforms like Atom? Maybe 80% is safer? _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev