All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [RFC i-g-t 2/6] tests/gem_pwrite: drop stolen memory related subtests
Date: Mon,  2 Oct 2017 16:00:14 -0700	[thread overview]
Message-ID: <1506985218-28880-3-git-send-email-daniele.ceraolospurio@intel.com> (raw)
In-Reply-To: <1506985218-28880-1-git-send-email-daniele.ceraolospurio@intel.com>

The feature was never merged and there has been no progress in the
last year. The subtests are currently skipping on all platforms by
checking a field in the get_aperture ioctl structure that doesn't
exist in the kernel version of the struct.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
 tests/gem_pwrite.c | 43 -------------------------------------------
 1 file changed, 43 deletions(-)

diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c
index b61b446..1c3d23d 100644
--- a/tests/gem_pwrite.c
+++ b/tests/gem_pwrite.c
@@ -206,7 +206,6 @@ static void test_big_gtt(int fd, int scale, unsigned flags)
 }
 
 uint32_t *src, dst;
-uint32_t *src_user, dst_stolen;
 int fd;
 
 int main(int argc, char **argv)
@@ -241,8 +240,6 @@ int main(int argc, char **argv)
 
 		dst = gem_create(fd, object_size);
 		src = malloc(object_size);
-		dst_stolen = gem_create_stolen(fd, object_size);
-		src_user = malloc(object_size);
 	}
 
 	igt_subtest("basic") {
@@ -279,49 +276,9 @@ int main(int argc, char **argv)
 		}
 	}
 
-	igt_subtest("stolen-normal") {
-		gem_require_stolen_support(fd);
-		for (count = 1; count <= 1<<17; count <<= 1) {
-			struct timeval start, end;
-
-			gettimeofday(&start, NULL);
-			do_gem_write(fd, dst_stolen, src_user,
-				     object_size, count);
-			gettimeofday(&end, NULL);
-			usecs = elapsed(&start, &end, count);
-			bps = bytes_per_sec(buf, object_size/usecs*1e6);
-			igt_info("Time to pwrite %d bytes x %6d:        %7.3fµs, %s\n",
-				 object_size, count, usecs, bps);
-			fflush(stdout);
-		}
-	}
-
-	for (c = cache; c->level != -1; c++) {
-		igt_subtest_f("stolen-%s", c->name) {
-			gem_require_stolen_support(fd);
-			gem_set_caching(fd, dst, c->level);
-			for (count = 1; count <= 1<<17; count <<= 1) {
-				struct timeval start, end;
-
-				gettimeofday(&start, NULL);
-				do_gem_write(fd, dst_stolen, src_user,
-					     object_size, count);
-				gettimeofday(&end, NULL);
-				bps = bytes_per_sec(buf,
-						    object_size/usecs*1e6);
-				igt_info("Time to stolen-%s pwrite %d bytes x %6d:     %7.3fµs, %s\n",
-					 c->name, object_size, count,
-					 usecs, bps);
-				fflush(stdout);
-			}
-		}
-	}
-
 	igt_fixture {
 		free(src);
 		gem_close(fd, dst);
-		free(src_user);
-		gem_close(fd, dst_stolen);
 	}
 
 	{
-- 
1.9.1

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

  parent reply	other threads:[~2017-10-02 23:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 23:00 [RFC i-g-t 0/6] Drop tests for object creation from stolen Daniele Ceraolo Spurio
2017-10-02 23:00 ` [RFC i-g-t 1/6] tests/gem_pread: drop stolen memory related subtests Daniele Ceraolo Spurio
2017-10-03 11:08   ` Chris Wilson
2017-10-03 15:36     ` Daniele Ceraolo Spurio
2017-10-03 15:49       ` Chris Wilson
2017-10-03 16:02         ` Daniele Ceraolo Spurio
2017-10-02 23:00 ` Daniele Ceraolo Spurio [this message]
2017-10-03 11:08   ` [RFC i-g-t 2/6] tests/gem_pwrite: " Chris Wilson
2017-10-02 23:00 ` [RFC i-g-t 3/6] tests/gem_create: drop stolen memory related subtest Daniele Ceraolo Spurio
2017-10-02 23:00 ` [RFC i-g-t 4/6] tests/gem_stolen: drop gem_stolen.c Daniele Ceraolo Spurio
2017-10-03  9:19   ` Petri Latvala
2017-10-02 23:00 ` [RFC i-g-t 5/6] tests/gem_concurrent_all: drop stolen memory related subtests Daniele Ceraolo Spurio
2017-10-03 11:11   ` Chris Wilson
2017-10-03 16:14     ` Daniele Ceraolo Spurio
2017-10-03 16:25       ` Chris Wilson
2017-10-02 23:00 ` [RFC i-g-t 6/6] lib/ioctl_wrappers: drop stolen memory related wrappers Daniele Ceraolo Spurio
2017-10-02 23:37 ` ✓ Fi.CI.BAT: success for Drop tests for object creation from stolen Patchwork
2017-10-03  0:30 ` ✓ Fi.CI.IGT: " Patchwork
2017-10-03  8:31 ` [RFC i-g-t 0/6] " Daniel Vetter
2017-10-03  9:30   ` Petri Latvala
2017-10-03 11:11     ` Tvrtko Ursulin
2017-10-03 11:09   ` Joonas Lahtinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1506985218-28880-3-git-send-email-daniele.ceraolospurio@intel.com \
    --to=daniele.ceraolospurio@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.