public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] intel-gpu-tools: skip gem_mmap_offset_exhaustion on Android
@ 2014-07-25  9:00 tim.gore
  2014-07-25  9:06 ` Daniel Vetter
  0 siblings, 1 reply; 7+ messages in thread
From: tim.gore @ 2014-07-25  9:00 UTC (permalink / raw)
  To: intel-gfx; +Cc: daniel.vetter

From: Tim Gore <tim.gore@intel.com>

gem_mmap_offset_exhaustion relies on purgeable memory
allocations getting swapped out, freeing up physical
memory for further allocations. On Android we have no
swap partition so this cannot happen and the test gets
killed by the low memory killer before mmap offset
exhaustion can happen, thus defeating the tests purpose.

Signed-off-by: Tim Gore <tim.gore@intel.com>
---
 tests/gem_mmap_offset_exhaustion.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/gem_mmap_offset_exhaustion.c b/tests/gem_mmap_offset_exhaustion.c
index 914fe6e..016143d 100644
--- a/tests/gem_mmap_offset_exhaustion.c
+++ b/tests/gem_mmap_offset_exhaustion.c
@@ -77,6 +77,10 @@ igt_simple_main
 {
 	int fd, i;
 
+#ifdef ANDROID
+	igt_skip("Test not valid on Android\n");
+#endif
+
 	igt_skip_on_simulation();
 
 	fd = drm_open_any();
-- 
1.9.2

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

end of thread, other threads:[~2014-07-25  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25  9:00 [PATCH] intel-gpu-tools: skip gem_mmap_offset_exhaustion on Android tim.gore
2014-07-25  9:06 ` Daniel Vetter
2014-07-25  9:14   ` Gore, Tim
2014-07-25  9:39     ` Daniel Vetter
2014-07-25  9:17   ` Chris Wilson
2014-07-25  9:37     ` Daniel Vetter
2014-07-25  9:56       ` Tvrtko Ursulin

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