public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests
@ 2017-09-14 18:09 Vinay Belgaumkar
  2017-09-14 19:15 ` ✓ Fi.CI.BAT: success for tests/gem_flink_basic: Add documentation for subtests (rev3) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Vinay Belgaumkar @ 2017-09-14 18:09 UTC (permalink / raw)
  To: intel-gfx; +Cc: Daniel Vetter

Added the missing IGT_TEST_DESCRIPTION and some subtest
descriptions.

v2: Removed duplication, addressed comments, cc'd test author

v3: Only comment abstract code, change some igt_info to igt_debug.
    Changed description to reflect this is a patch, not an RFC.

Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
---
 tests/gem_flink_basic.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/gem_flink_basic.c b/tests/gem_flink_basic.c
index 26ae7d6..48b0b8b 100644
--- a/tests/gem_flink_basic.c
+++ b/tests/gem_flink_basic.c
@@ -36,6 +36,8 @@
 #include <sys/ioctl.h>
 #include "drm.h"
 
+IGT_TEST_DESCRIPTION("Tests for flink - a way to export a gem object by name");
+
 static void
 test_flink(int fd)
 {
@@ -44,7 +46,7 @@ test_flink(int fd)
 	struct drm_gem_open open_struct;
 	int ret;
 
-	igt_info("Testing flink and open.\n");
+	igt_debug("Testing flink and open.\n");
 
 	memset(&create, 0, sizeof(create));
 	create.size = 16 * 1024;
@@ -69,7 +71,7 @@ test_double_flink(int fd)
 	struct drm_gem_flink flink2;
 	int ret;
 
-	igt_info("Testing repeated flink.\n");
+	igt_debug("Testing repeated flink.\n");
 
 	memset(&create, 0, sizeof(create));
 	create.size = 16 * 1024;
@@ -83,6 +85,8 @@ test_double_flink(int fd)
 	flink2.handle = create.handle;
 	ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink2);
 	igt_assert_eq(ret, 0);
+
+	/* flinks for same gem object share the same name */
 	igt_assert(flink2.name == flink.name);
 }
 
@@ -92,7 +96,7 @@ test_bad_flink(int fd)
 	struct drm_gem_flink flink;
 	int ret;
 
-	igt_info("Testing error return on bad flink ioctl.\n");
+	igt_debug("Testing error return on bad flink ioctl.\n");
 
 	flink.handle = 0x10101010;
 	ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink);
@@ -105,7 +109,7 @@ test_bad_open(int fd)
 	struct drm_gem_open open_struct;
 	int ret;
 
-	igt_info("Testing error return on bad open ioctl.\n");
+	igt_debug("Testing error return on bad open ioctl.\n");
 
 	open_struct.name = 0x10101010;
 	ret = ioctl(fd, DRM_IOCTL_GEM_OPEN, &open_struct);
@@ -121,7 +125,7 @@ test_flink_lifetime(int fd)
 	struct drm_gem_open open_struct;
 	int ret, fd2;
 
-	igt_info("Testing flink lifetime.\n");
+	igt_debug("Testing flink lifetime.\n");
 
 	fd2 = drm_open_driver(DRIVER_INTEL);
 
@@ -134,6 +138,7 @@ test_flink_lifetime(int fd)
 	ret = ioctl(fd2, DRM_IOCTL_GEM_FLINK, &flink);
 	igt_assert_eq(ret, 0);
 
+	/* Open a second reference to the gem object with different fd */
 	open_struct.name = flink.name;
 	ret = ioctl(fd, DRM_IOCTL_GEM_OPEN, &open_struct);
 	igt_assert_eq(ret, 0);
@@ -142,6 +147,7 @@ test_flink_lifetime(int fd)
 	close(fd2);
 	fd2 = drm_open_driver(DRIVER_INTEL);
 
+	/* Flink name remains valid due to the second reference */
 	open_struct.name = flink.name;
 	ret = ioctl(fd2, DRM_IOCTL_GEM_OPEN, &open_struct);
 	igt_assert_eq(ret, 0);
@@ -163,6 +169,8 @@ igt_main
 		test_bad_flink(fd);
 	igt_subtest("bad-open")
 		test_bad_open(fd);
+
+	/* Flink lifetime is limited to that of the gem object it points to */
 	igt_subtest("flink-lifetime")
 		test_flink_lifetime(fd);
 }
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* ✓ Fi.CI.BAT: success for tests/gem_flink_basic: Add documentation for subtests (rev3)
  2017-09-14 18:09 [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Vinay Belgaumkar
@ 2017-09-14 19:15 ` Patchwork
  2017-09-15  3:15 ` ✗ Fi.CI.IGT: failure " Patchwork
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2017-09-14 19:15 UTC (permalink / raw)
  To: Vinay Belgaumkar; +Cc: intel-gfx

== Series Details ==

Series: tests/gem_flink_basic: Add documentation for subtests (rev3)
URL   : https://patchwork.freedesktop.org/series/29499/
State : success

== Summary ==

IGT patchset tested on top of latest successful build
c718ba805208e55d675defe9b2a66852e2ae038c lib/igt_kmod: Allow specifying libkmod config via environment variables

with latest DRM-Tip kernel build CI_DRM_3090
46e05d756fe3 drm-tip: 2017y-09m-14d-14h-46m-01s UTC integration manifest

Test kms_cursor_legacy:
        Subgroup basic-busy-flip-before-cursor-atomic:
                pass       -> FAIL       (fi-snb-2600) fdo#100215 +1
Test kms_flip:
        Subgroup basic-flip-vs-wf_vblank:
                skip       -> PASS       (fi-skl-x1585l)
Test pm_rpm:
        Subgroup basic-rte:
                pass       -> DMESG-WARN (fi-cfl-s) fdo#102294

fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fdo#102294 https://bugs.freedesktop.org/show_bug.cgi?id=102294

fi-bdw-5557u     total:289  pass:268  dwarn:0   dfail:0   fail:0   skip:21  time:449s
fi-blb-e6850     total:289  pass:224  dwarn:1   dfail:0   fail:0   skip:64  time:381s
fi-bsw-n3050     total:289  pass:243  dwarn:0   dfail:0   fail:0   skip:46  time:546s
fi-bwr-2160      total:289  pass:184  dwarn:0   dfail:0   fail:0   skip:105 time:268s
fi-bxt-j4205     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:515s
fi-byt-j1900     total:289  pass:254  dwarn:1   dfail:0   fail:0   skip:34  time:509s
fi-byt-n2820     total:289  pass:250  dwarn:1   dfail:0   fail:0   skip:38  time:503s
fi-cfl-s         total:289  pass:222  dwarn:35  dfail:0   fail:0   skip:32  time:546s
fi-elk-e7500     total:289  pass:230  dwarn:0   dfail:0   fail:0   skip:59  time:454s
fi-glk-2a        total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:602s
fi-hsw-4770      total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:430s
fi-hsw-4770r     total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:410s
fi-ilk-650       total:289  pass:229  dwarn:0   dfail:0   fail:0   skip:60  time:440s
fi-ivb-3520m     total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:483s
fi-ivb-3770      total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:474s
fi-kbl-7500u     total:289  pass:264  dwarn:1   dfail:0   fail:0   skip:24  time:491s
fi-kbl-7560u     total:289  pass:270  dwarn:0   dfail:0   fail:0   skip:19  time:582s
fi-kbl-r         total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:592s
fi-pnv-d510      total:289  pass:223  dwarn:1   dfail:0   fail:0   skip:65  time:556s
fi-skl-6260u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:451s
fi-skl-6700k     total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:524s
fi-skl-6770hq    total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:503s
fi-skl-gvtdvm    total:289  pass:266  dwarn:0   dfail:0   fail:0   skip:23  time:462s
fi-skl-x1585l    total:289  pass:268  dwarn:0   dfail:0   fail:0   skip:21  time:487s
fi-snb-2520m     total:289  pass:251  dwarn:0   dfail:0   fail:0   skip:38  time:574s
fi-snb-2600      total:289  pass:248  dwarn:0   dfail:0   fail:2   skip:39  time:424s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_188/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* ✗ Fi.CI.IGT: failure for tests/gem_flink_basic: Add documentation for subtests (rev3)
  2017-09-14 18:09 [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Vinay Belgaumkar
  2017-09-14 19:15 ` ✓ Fi.CI.BAT: success for tests/gem_flink_basic: Add documentation for subtests (rev3) Patchwork
@ 2017-09-15  3:15 ` Patchwork
  2017-09-15  7:34 ` [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Szwichtenberg, Radoslaw
  2017-09-22 10:33 ` Arkadiusz Hiler
  3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2017-09-15  3:15 UTC (permalink / raw)
  To: Vinay Belgaumkar; +Cc: intel-gfx

== Series Details ==

Series: tests/gem_flink_basic: Add documentation for subtests (rev3)
URL   : https://patchwork.freedesktop.org/series/29499/
State : failure

== Summary ==

Test perf:
        Subgroup blocking:
                pass       -> FAIL       (shard-hsw) fdo#102252 +1
Test kms_busy:
        Subgroup extended-modeset-hang-oldfb-with-reset-render-B:
                pass       -> DMESG-WARN (shard-hsw) fdo#102249
Test kms_setmode:
        Subgroup basic:
                fail       -> PASS       (shard-hsw) fdo#99912
Test kms_plane:
        Subgroup plane-panning-bottom-right-suspend-pipe-C-planes:
                skip       -> PASS       (shard-hsw)
Test kms_cursor_crc:
        Subgroup cursor-256x256-dpms:
                skip       -> PASS       (shard-hsw)
Test kms_flip:
        Subgroup plain-flip-ts-check-interruptible:
                pass       -> FAIL       (shard-hsw)
Test kms_universal_plane:
        Subgroup universal-plane-pipe-B-functional:
                skip       -> PASS       (shard-hsw)
Test kms_rmfb:
        Subgroup close-fd:
                skip       -> PASS       (shard-hsw)

fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102249 https://bugs.freedesktop.org/show_bug.cgi?id=102249
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912

shard-hsw        total:2267 pass:1217 dwarn:1   dfail:0   fail:14  skip:1035 time:9300s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_188/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests
  2017-09-14 18:09 [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Vinay Belgaumkar
  2017-09-14 19:15 ` ✓ Fi.CI.BAT: success for tests/gem_flink_basic: Add documentation for subtests (rev3) Patchwork
  2017-09-15  3:15 ` ✗ Fi.CI.IGT: failure " Patchwork
@ 2017-09-15  7:34 ` Szwichtenberg, Radoslaw
  2017-09-15  7:36   ` Szwichtenberg, Radoslaw
  2017-09-22 10:33 ` Arkadiusz Hiler
  3 siblings, 1 reply; 6+ messages in thread
From: Szwichtenberg, Radoslaw @ 2017-09-15  7:34 UTC (permalink / raw)
  To: intel-gfx@lists.freedesktop.org, Belgaumkar, Vinay; +Cc: Vetter, Daniel

On Thu, 2017-09-14 at 11:09 -0700, Vinay Belgaumkar wrote:
> Added the missing IGT_TEST_DESCRIPTION and some subtest
> descriptions.
> 
> v2: Removed duplication, addressed comments, cc'd test author
> 
> v3: Only comment abstract code, change some igt_info to igt_debug.
>     Changed description to reflect this is a patch, not an RFC.
> 
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Eric Anholt <eric@anholt.net>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> 
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>

LGTM
Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests
  2017-09-15  7:34 ` [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Szwichtenberg, Radoslaw
@ 2017-09-15  7:36   ` Szwichtenberg, Radoslaw
  0 siblings, 0 replies; 6+ messages in thread
From: Szwichtenberg, Radoslaw @ 2017-09-15  7:36 UTC (permalink / raw)
  To: intel-gfx@lists.freedesktop.org, Belgaumkar, Vinay; +Cc: Vetter, Daniel

On Fri, 2017-09-15 at 07:34 +0000, Szwichtenberg, Radoslaw wrote:
> On Thu, 2017-09-14 at 11:09 -0700, Vinay Belgaumkar wrote:
> > Added the missing IGT_TEST_DESCRIPTION and some subtest
> > descriptions.
> > 
> > v2: Removed duplication, addressed comments, cc'd test author
> > 
> > v3: Only comment abstract code, change some igt_info to igt_debug.
> >     Changed description to reflect this is a patch, not an RFC.
> > 
> > Cc: Michał Winiarski <michal.winiarski@intel.com>
> > Cc: Eric Anholt <eric@anholt.net>
> > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > Cc: Daniel Vetter <daniel.vetter@intel.com>
> > 
> > Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> 
> LGTM
> Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
> 
Maybe just one minor with the comment style - it would be good to make it
consistent across whole file. Let's start comment with a capital letter and
finish it with a dot.

Still - my r-b is yours :)
-Radek
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests
  2017-09-14 18:09 [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Vinay Belgaumkar
                   ` (2 preceding siblings ...)
  2017-09-15  7:34 ` [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Szwichtenberg, Radoslaw
@ 2017-09-22 10:33 ` Arkadiusz Hiler
  3 siblings, 0 replies; 6+ messages in thread
From: Arkadiusz Hiler @ 2017-09-22 10:33 UTC (permalink / raw)
  To: Vinay Belgaumkar; +Cc: intel-gfx, Daniel Vetter

On Thu, Sep 14, 2017 at 11:09:58AM -0700, Vinay Belgaumkar wrote:
> Added the missing IGT_TEST_DESCRIPTION and some subtest
> descriptions.
> 
> v2: Removed duplication, addressed comments, cc'd test author
> 
> v3: Only comment abstract code, change some igt_info to igt_debug.
>     Changed description to reflect this is a patch, not an RFC.
> 
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Eric Anholt <eric@anholt.net>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> 
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>

Thanks for the patch and the review.
Merged.

-- 
Cheers,
Arek
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-22 10:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-14 18:09 [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Vinay Belgaumkar
2017-09-14 19:15 ` ✓ Fi.CI.BAT: success for tests/gem_flink_basic: Add documentation for subtests (rev3) Patchwork
2017-09-15  3:15 ` ✗ Fi.CI.IGT: failure " Patchwork
2017-09-15  7:34 ` [PATCH i-g-t v3] tests/gem_flink_basic: Add documentation for subtests Szwichtenberg, Radoslaw
2017-09-15  7:36   ` Szwichtenberg, Radoslaw
2017-09-22 10:33 ` Arkadiusz Hiler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox