Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id D67656E50D for ; Mon, 22 Feb 2021 13:46:14 +0000 (UTC) Date: Mon, 22 Feb 2021 14:46:03 +0100 From: Katarzyna Dec Message-ID: <20210222134603.GA29585@kdec5-desk.ger.corp.intel.com> References: <20200905113203.2021641-1-apoorva1.singh@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200905113203.2021641-1-apoorva1.singh@intel.com> Subject: Re: [igt-dev] [PATCH i-g-t] i915/gem_pread: Added test description for test case 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: apoorva1.singh@intel.com Cc: igt-dev@lists.freedesktop.org List-ID: On Sat, Sep 05, 2020 at 05:02:03PM +0530, apoorva1.singh@intel.com wrote: > From: Apoorva Singh > > Added test description to all the available subtests. > > Signed-off-by: Apoorva Singh > Cc: Melkaveri, Arjun > Cc: Priyanka Dandamudi > --- > tests/i915/gem_pread.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tests/i915/gem_pread.c b/tests/i915/gem_pread.c > index 6d12b8e9..19376aac 100644 > --- a/tests/i915/gem_pread.c > +++ b/tests/i915/gem_pread.c > @@ -39,6 +39,8 @@ > #include > #include "drm.h" > > +IGT_TEST_DESCRIPTION("Basic sanity and perfromance testing of PREAD IOCTL."); > + > #define MiB(x) ((x) * 1024 * 1024) > > typedef void *(*mmap_fn_t)(int, uint32_t, uint64_t, uint64_t, unsigned int); > @@ -154,6 +156,7 @@ igt_main_args("s:", NULL, help_str, opt_handler, NULL) > src = malloc(object_size); > } > > + igt_describe("Test the performance of reading from gem object"); > igt_subtest("bench") { > for (count = 1; count <= 1<<17; count <<= 1) { > struct timeval start, end; > @@ -169,10 +172,14 @@ igt_main_args("s:", NULL, help_str, opt_handler, NULL) > } > } > > + igt_describe("Verify reading from gem object into address space mapped " > + "(using different mapping methods) to itself works fine"); > igt_subtest("self") > pread_self(fd); > > for (c = cache; c->level != -1; c++) { > + igt_describe_f("Test the performance of reading from gem object with " > + "%s caching mode", c->name); > igt_subtest(c->name) { > gem_set_caching(fd, dst, c->level); > LGTM :) Reviewed-by: Katarzyna Dec Kasia :) > -- > 2.28.0 > > _______________________________________________ > igt-dev mailing list > igt-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/igt-dev _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev