Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2906A21FF3F for ; Sun, 13 Jul 2025 23:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752450109; cv=none; b=o2aNAaUIrzSTeQdx4H+CaymeefNtnkkQ6AsiefMcrq6ZoWkxZRzVOX04gLteZPQKxIyPvx9N2b1VI1Q0tZo6Gh1Ly8+dsEJhlsWUPOjnpdYG5GI32qZXrXeVY25/ng49NMOmoBQ6Mc9OgYK5grjKOXmpFTk9IDeQYOdh+VZXIJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752450109; c=relaxed/simple; bh=w/tAjOGUg2/kCK2VAC/BvQvlM74b6qGgOvLd2g+k1vo=; h=Date:To:From:Subject:Message-Id; b=OnZ3tJL7QOzELf4EbF8hSCwo1W/xu8+TF+ByGbhKtrabbTKhc+E8p+g/aLi8eBrPfV5lyy8EcwP1qyefmkFLWJ2eU6TRkSrzr1zoVDijO9vqVdNkdu25lMQdBWYVt6V1WOmQfminE8OOuHSW9B7Rj7aSj6cJyAnUijUmYPI2qxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=f7tLrRKC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="f7tLrRKC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00FA4C4CEE3; Sun, 13 Jul 2025 23:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1752450109; bh=w/tAjOGUg2/kCK2VAC/BvQvlM74b6qGgOvLd2g+k1vo=; h=Date:To:From:Subject:From; b=f7tLrRKCFd5jnT3fU+x6KMCt8upXD5Xym8AzCu03hgSNKk8v9BwGUNLKBK228R2jq yCyA/1P5G56WIzW0LaoyNYApZrZpiEiezMeihhifelgN+Z8P8/cBNGk+rvvtdtl7l6 GpCGfXziBT/1xa5bCiGo75ebraGdaxWLvPEqKpls= Date: Sun, 13 Jul 2025 16:41:48 -0700 To: mm-commits@vger.kernel.org,urezki@gmail.com,dev.jain@arm.com,raghavendra.kt@amd.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] lib-test_vmallocc-introduce-xfail-for-failing-tests.patch removed from -mm tree Message-Id: <20250713234149.00FA4C4CEE3@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: lib/test_vmalloc.c: introduce xfail for failing tests has been removed from the -mm tree. Its filename was lib-test_vmallocc-introduce-xfail-for-failing-tests.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Raghavendra K T Subject: lib/test_vmalloc.c: introduce xfail for failing tests Date: Wed, 2 Jul 2025 06:43:19 +0000 The test align_shift_alloc_test is expected to fail. Reporting the test as fail confuses to be a genuine failure. Introduce widely used xfail sematics to address the issue. Note: a warn_alloc dump similar to below is still expected: Call Trace: dump_stack_lvl+0x64/0x80 warn_alloc+0x137/0x1b0 ? __get_vm_area_node+0x134/0x140 Snippet of dmesg after change: Summary: random_size_align_alloc_test passed: 1 failed: 0 xfailed: 0 .. Summary: align_shift_alloc_test passed: 0 failed: 0 xfailed: 1 .. Summary: pcpu_alloc_test passed: 1 failed: 0 xfailed: 0 .. Link: https://lkml.kernel.org/r/20250702064319.885-1-raghavendra.kt@amd.com Signed-off-by: Raghavendra K T Reviewed-by: "Uladzislau Rezki (Sony)" Cc: Dev Jain Signed-off-by: Andrew Morton --- lib/test_vmalloc.c | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) --- a/lib/test_vmalloc.c~lib-test_vmallocc-introduce-xfail-for-failing-tests +++ a/lib/test_vmalloc.c @@ -396,25 +396,27 @@ cleanup: struct test_case_desc { const char *test_name; int (*test_func)(void); + bool xfail; }; static struct test_case_desc test_case_array[] = { - { "fix_size_alloc_test", fix_size_alloc_test }, - { "full_fit_alloc_test", full_fit_alloc_test }, - { "long_busy_list_alloc_test", long_busy_list_alloc_test }, - { "random_size_alloc_test", random_size_alloc_test }, - { "fix_align_alloc_test", fix_align_alloc_test }, - { "random_size_align_alloc_test", random_size_align_alloc_test }, - { "align_shift_alloc_test", align_shift_alloc_test }, - { "pcpu_alloc_test", pcpu_alloc_test }, - { "kvfree_rcu_1_arg_vmalloc_test", kvfree_rcu_1_arg_vmalloc_test }, - { "kvfree_rcu_2_arg_vmalloc_test", kvfree_rcu_2_arg_vmalloc_test }, - { "vm_map_ram_test", vm_map_ram_test }, + { "fix_size_alloc_test", fix_size_alloc_test, }, + { "full_fit_alloc_test", full_fit_alloc_test, }, + { "long_busy_list_alloc_test", long_busy_list_alloc_test, }, + { "random_size_alloc_test", random_size_alloc_test, }, + { "fix_align_alloc_test", fix_align_alloc_test, }, + { "random_size_align_alloc_test", random_size_align_alloc_test, }, + { "align_shift_alloc_test", align_shift_alloc_test, true }, + { "pcpu_alloc_test", pcpu_alloc_test, }, + { "kvfree_rcu_1_arg_vmalloc_test", kvfree_rcu_1_arg_vmalloc_test, }, + { "kvfree_rcu_2_arg_vmalloc_test", kvfree_rcu_2_arg_vmalloc_test, }, + { "vm_map_ram_test", vm_map_ram_test, }, /* Add a new test case here. */ }; struct test_case_data { int test_failed; + int test_xfailed; int test_passed; u64 time; }; @@ -444,7 +446,7 @@ static int test_func(void *private) { struct test_driver *t = private; int random_array[ARRAY_SIZE(test_case_array)]; - int index, i, j; + int index, i, j, ret; ktime_t kt; u64 delta; @@ -468,11 +470,14 @@ static int test_func(void *private) */ if (!((run_test_mask & (1 << index)) >> index)) continue; - kt = ktime_get(); for (j = 0; j < test_repeat_count; j++) { - if (!test_case_array[index].test_func()) + ret = test_case_array[index].test_func(); + + if (!ret && !test_case_array[index].xfail) t->data[index].test_passed++; + else if (ret && test_case_array[index].xfail) + t->data[index].test_xfailed++; else t->data[index].test_failed++; } @@ -576,10 +581,11 @@ static void do_concurrent_test(void) continue; pr_info( - "Summary: %s passed: %d failed: %d repeat: %d loops: %d avg: %llu usec\n", + "Summary: %s passed: %d failed: %d xfailed: %d repeat: %d loops: %d avg: %llu usec\n", test_case_array[j].test_name, t->data[j].test_passed, t->data[j].test_failed, + t->data[j].test_xfailed, test_repeat_count, test_loop_count, t->data[j].time); } _ Patches currently in -mm which might be from raghavendra.kt@amd.com are