public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/2] mtest06: tweak DISTANT_MMAP_SIZE
@ 2019-06-14 20:54 Jan Stancek
  2019-06-14 20:54 ` [LTP] [PATCH 2/2] mtest06: fix timestamp in output Jan Stancek
  2019-06-19 14:43 ` [LTP] [PATCH 1/2] mtest06: tweak DISTANT_MMAP_SIZE Cyril Hrubis
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Stancek @ 2019-06-14 20:54 UTC (permalink / raw)
  To: ltp

Allocating further away works as a better reproducer for:
  7a30df49f63a ("mm: mmu_gather: remove __tlb_reset_range() for force flush")

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/mem/mtest06/mmap1.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/mem/mtest06/mmap1.c b/testcases/kernel/mem/mtest06/mmap1.c
index b7b742653114..50d2dafbd952 100644
--- a/testcases/kernel/mem/mtest06/mmap1.c
+++ b/testcases/kernel/mem/mtest06/mmap1.c
@@ -12,8 +12,11 @@
  * between mmap/munmap worked, then its value must match expected
  * value.
  *
- * Can trigger panics/stalls since at least 4.14 on some arches. See:
+ * Can trigger panics/stalls since at least 4.14 on some arches:
  *   fc8efd2ddfed ("mm/memory.c: do_fault: avoid usage of stale vm_area_struct")
+ * Can trigger user-space stalls on aarch64:
+ *   7a30df49f63a ("mm: mmu_gather: remove __tlb_reset_range() for force flush")
+ *   https://lore.kernel.org/linux-mm/1817839533.20996552.1557065445233.JavaMail.zimbra@redhat.com
  */
 #include <errno.h>
 #include <float.h>
@@ -25,7 +28,11 @@
 #include "tst_test.h"
 #include "tst_safe_pthread.h"
 
-#define DISTANT_MMAP_SIZE (64*1024*1024)
+#ifdef TST_ABI32
+#  define DISTANT_MMAP_SIZE (256*1024*1024)
+#else
+#  define DISTANT_MMAP_SIZE (2L*1024*1024*1024)
+#endif
 #define TEST_FILENAME "ashfile"
 
 /* seconds remaining before reaching timeout */
-- 
1.8.3.1


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

end of thread, other threads:[~2019-06-20  7:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 20:54 [LTP] [PATCH 1/2] mtest06: tweak DISTANT_MMAP_SIZE Jan Stancek
2019-06-14 20:54 ` [LTP] [PATCH 2/2] mtest06: fix timestamp in output Jan Stancek
2019-06-19 14:46   ` Cyril Hrubis
2019-06-19 14:43 ` [LTP] [PATCH 1/2] mtest06: tweak DISTANT_MMAP_SIZE Cyril Hrubis
2019-06-20  7:39   ` Jan Stancek

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