[igt-dev] [PATCH 1/2] i915/gem_mmap_gtt: added description for test case
Kamil Konieczny
kamil.konieczny at linux.intel.com
Thu Jun 23 13:50:38 UTC 2022
Hi Priyanka,
small nits, see below.
On 2022-06-17 at 17:38:21 +0530, priyanka.dandamudi at intel.com wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
>
> Added global description and subtest description.
------------------------------------- ^ --------- ^
Please use plurals here: subtests descriptions.
Small nits, see below.
>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> ---
> tests/i915/gem_mmap_gtt.c | 52 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 52 insertions(+)
>
> diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
> index 6db82229..dab06ef0 100644
> --- a/tests/i915/gem_mmap_gtt.c
> +++ b/tests/i915/gem_mmap_gtt.c
> @@ -54,6 +54,8 @@
>
> #define abs(x) ((x) >= 0 ? (x) : -(x))
>
> +IGT_TEST_DESCRIPTION("Ensure that all operations around MMAP_GTT IOCTL works.");
> +
I would prefer s/IOCTL/ioctl/
> static int OBJECT_SIZE = 16*1024*1024;
>
> static void
> @@ -1272,6 +1274,7 @@ igt_main
> gem_require_mappable_ggtt(fd);
> }
>
> + igt_describe("Verify mapping to invalid gem objects.");
Add "fails" at end, s/objects./objects fails./
> igt_subtest("bad-object") {
> uint32_t real_handle = gem_create(fd, 4096);
> uint32_t handles[20];
> @@ -1293,77 +1296,126 @@ igt_main
> gem_close(fd, real_handle);
> }
>
> + igt_describe("Test basic working of GEM_MMAP_GTT ioctl.");
--------------------- ^
imho better start with "Basic checks of ",
s/Test basic working/Basic checks/
> igt_subtest("basic")
> test_access(fd);
> + igt_describe("Test mmaping less than the full object.");
> igt_subtest("basic-short")
> test_short(fd);
> + igt_describe("Test copying between 2 GTT mmappings.");
Spell this "2", s/2/two/
also s/copying/copy/
> igt_subtest("basic-copy")
> test_copy(fd);
> + igt_describe("Test to read content from GTT mmapped.");
s/GTT mmapped./mmapped GTT object./
> igt_subtest("basic-read")
> test_read(fd);
> + igt_describe("Test to write content to GTT mmapped.");
Same here.
> igt_subtest("basic-write")
> test_write(fd);
> + igt_describe("Test creates a prefault object into GTT and "
> + "writes into it from another GTT mmapped.");
> igt_subtest("basic-write-gtt")
> test_write_gtt(fd);
> + igt_describe("Inspect a GTT mmap using ptrace().");
> igt_subtest("ptrace")
> test_ptrace(fd);
> + igt_describe("Check whether a write through the GTT is immediately visible to the CPU.");
> igt_subtest("coherency")
> test_coherency(fd);
> + igt_describe("Check the userspace clflushing of the GTT mmap.");
> igt_subtest("clflush")
> test_clflush(fd);
> + igt_describe("Check read/writes across a GPU reset.");
> igt_subtest("hang")
> test_hang(fd);
> + igt_describe("Exercise the GTT mmap revocation for a reset on a busy object.");
> igt_subtest("hang-busy")
> test_hang_busy(fd);
> + igt_describe("Mix a busy hang with GTT and userptr.");
> igt_subtest("hang-user")
> test_hang_user(fd);
> + igt_describe("Check basic read->write orderof a GTT mmapped buffer object.");
s/orderof/order of/
> igt_subtest("basic-read-write")
> test_read_write(fd, READ_BEFORE_WRITE);
> + igt_describe("Check basic write->read order of a GTT mmapped buffer object.");
Here you can use short version so s/buffer object./bo./
and then use it also below. It is up to you, both are good.
> igt_subtest("basic-write-read")
> test_read_write(fd, READ_AFTER_WRITE);
> + igt_describe("Check distinct read->write order of a GTT mmapped buffer object.");
> igt_subtest("basic-read-write-distinct")
> test_read_write2(fd, READ_BEFORE_WRITE);
> + igt_describe("Check distinct write->read order of a GTT mmapped buffer object.");
> igt_subtest("basic-write-read-distinct")
> test_read_write2(fd, READ_AFTER_WRITE);
> + igt_describe("Excercise concurrent pagefaulting of a gtt mmaped object.");
------------------------------------------------------------ ^ - ^ ---- ^
s/gtt/GTT/
s/mmaped/mmapped/
Do you mean buffer object ?
> igt_subtest("fault-concurrent")
> test_fault_concurrent(fd, I915_TILING_NONE);
> + igt_describe("Excercise concurrent pagefaulting of a X-tiled gtt mmaped object.");
s/gtt/GTT/
> igt_subtest("fault-concurrent-X")
> test_fault_concurrent(fd, I915_TILING_X);
> + igt_describe("Excercise concurrent pagefaulting of a Y-tiled gtt mmaped object.");
s/gtt/GTT/
> igt_subtest("fault-concurrent-Y")
> test_fault_concurrent(fd, I915_TILING_Y);
> + igt_describe("Check coherency between GTT and CPU mmappings with LLC.");
> igt_subtest("basic-write-cpu-read-gtt")
> test_write_cpu_read_gtt(fd);
> + igt_describe("Check the performance of WC writes with WC reads of GTT "
> + "and WC writes of GTT with WB writes of CPU.");
> igt_subtest("basic-wc")
> test_wc(fd);
> + igt_describe("Test mmap_offset lifetime, closing the object on"
> + " another file should not affect the local mmap_offset.");
> igt_subtest("isolation")
> test_isolation(fd);
> + igt_describe("Test mmap_gtt extension validity.");
s/mmap_gtt/MMAP_GTT/
> igt_subtest("zero-extend")
> test_zero_extend(fd);
> + igt_describe("Test to check that a few threads opening and closing handles"
> + " cause explosion in other threads in the process of mmaping that handle.");
> igt_subtest("close-race")
> test_close_race(fd);
> + igt_describe("Test to check that a few threads opening and closing flink handles"
> + " cause explosion in other threads in the process of mmaping that handle.");
> igt_subtest("flink-race")
> test_flink_race(fd);
> + igt_describe("Check that the initial pagefault is non-blocking.");
> igt_subtest("pf-nonblock")
> test_pf_nonblock(fd);
>
> + igt_describe("Check mmap access to a small buffer object by CPU directly"
> + " and through GTT in sequence.");
> igt_subtest("basic-small-bo")
> test_huge_bo(fd, -1, I915_TILING_NONE);
> + igt_describe("Check mmap access to a small X-tiled buffer object by CPU "
> + "directly and through GTT in sequence.");
> igt_subtest("basic-small-bo-tiledX")
> test_huge_bo(fd, -1, I915_TILING_X);
> + igt_describe("Check mmap access to a small Y-tiled buffer object by CPU "
> + "directly and through GTT in sequence.");
> igt_subtest("basic-small-bo-tiledY")
> test_huge_bo(fd, -1, I915_TILING_Y);
>
> + igt_describe("Check mmap access to a big buffer object by CPU directly "
> + "and through GTT in sequence.");
> igt_subtest("big-bo")
> test_huge_bo(fd, 0, I915_TILING_NONE);
> + igt_describe("Check mmap access to a big X-tiled buffer object by CPU "
> + "directly and through GTT in sequence.");
> igt_subtest("big-bo-tiledX")
> test_huge_bo(fd, 0, I915_TILING_X);
> + igt_describe("Check mmap access to a big Y-tiled buffer object by CPU "
> + "directly and through GTT in sequence.");
> igt_subtest("big-bo-tiledY")
> test_huge_bo(fd, 0, I915_TILING_Y);
>
> + igt_describe("Check mmap access to a huge buffer object by CPU directly "
> + "and through GTT in sequence.");
> igt_subtest("huge-bo")
> test_huge_bo(fd, 1, I915_TILING_NONE);
> + igt_describe("Check mmap access to a huge X-tiled buffer object by CPU "
> + "directly and through GTT in sequence.");
> igt_subtest("huge-bo-tiledX")
> test_huge_bo(fd, 1, I915_TILING_X);
> + igt_describe("Check mmap access to a big Y-tiled buffer object by CPU "
s/big/huge/
Regards,
Kamil
> + "directly and through GTT in sequence.");
> igt_subtest("huge-bo-tiledY")
> test_huge_bo(fd, 1, I915_TILING_Y);
>
> --
> 2.25.1
>
More information about the igt-dev
mailing list