diff mbox series

[meta-arago,scarthgap] ltp-ddt: Version bump to 20250930

Message ID 20260109210347.502225-1-reatmon@ti.com
State New
Headers show
Series [meta-arago,scarthgap] ltp-ddt: Version bump to 20250930 | expand

Commit Message

Ryan Eatmon Jan. 9, 2026, 9:03 p.m. UTC
ltp-ddt repo has been rebased on top of 20250930, update the recipe to
match.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 ...-__clear_cache-declaration-for-clang.patch |  32 +++
 ...001-Remove-OOM-tests-from-runtest-mm.patch |  32 +++
 ...8-Skip-semctl08-when-__USE_TIME64_RE.patch |  45 ++++
 ...6ead3d6ef504c82551b12306e751d23ddb45.patch | 193 ++++++++++++++++++
 ...tp-ddt_20250130.bb => ltp-ddt_20250930.bb} |   4 +-
 .../{ltp_20250130.inc => ltp_20250930.inc}    |  14 +-
 6 files changed, 314 insertions(+), 6 deletions(-)
 create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch
 create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch
 create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
 create mode 100644 meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch
 rename meta-arago-test/recipes-devtools/ltp-ddt/{ltp-ddt_20250130.bb => ltp-ddt_20250930.bb} (91%)
 rename meta-arago-test/recipes-devtools/ltp-ddt/{ltp_20250130.inc => ltp_20250930.inc} (92%)

Comments

PRC Automation Jan. 9, 2026, 9:21 p.m. UTC | #1
meta-arago / na / 20260109210347.502225-1-reatmon

PRC Results: PASS

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed



=========================================================
  apply-yocto-patch: PASS
=========================================================
scarthgap
=====================
Summary:
- Patch Series: [meta-arago][scarthgap][PATCH] ltp-ddt: Version bump to 20250930
- Submitter: From: Ryan Eatmon <reatmon@ti.com>
+From: Khem Raj <raj.khem@gmail.com>
+From: "Mingde (Matthew) Zeng" <matthewzmd@gmail.com>
+From: Jiaying Song <jiaying.song.cn@windriver.com>
+From: Wei Gao <wegao@suse.com>
- Date: Date: Fri, 9 Jan 2026 15:03:47 -0600
+Date: Mon, 10 Jun 2024 22:52:56 -0700
+Date: Wed, 29 Jul 2020 08:47:09 -0400
+Date: Fri, 23 May 2025 15:17:49 +0800
+Date: Sun, 14 Dec 2025 02:15:20 +0000
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: a535137e489dec2ba3833aef622d1f096cabd385

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: scarthgap-wip
- Commit Author: LCPD Automation Script <lcpdbld@list.ti.com>
- Commit Subject: CI/CD Auto-Merger: cicd.scarthgap.202512181848
- Commit SHA: 1640df60b0f75722b9e5923a5bfba3767e7d97a8

Patches
----------------------------------------
All patches applied



=========================================================
  check-yocto-repo: PASS
=========================================================
scarthgap
=====================
PASS



=========================================================
  yocto-check-layers: PASS
=========================================================
scarthgap - PASS
=====================
All checks passed
diff mbox series

Patch

diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch
new file mode 100644
index 00000000..24e8762f
--- /dev/null
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Add-__clear_cache-declaration-for-clang.patch
@@ -0,0 +1,32 @@ 
+From a2ce04cb82d545f3dbab71de7fa55eaad3df3063 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 10 Jun 2024 22:52:56 -0700
+Subject: [PATCH] Add __clear_cache declaration for clang
+
+__clear_cache was enabled on RISCV recently with 7352ba02390116f1cd6a9b583860ba28aa0a1b7a
+however it fails to compile with clang19 on RISCV
+With this error
+
+  hugemmap15.c:51:2: error: call to undeclared function '__clear_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+      51 |         __clear_cache(p, p + COPY_SIZE);
+         |         ^
+
+Upstream-Status: Submitted [https://lists.linux.it/pipermail/ltp/2024-June/038762.html]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Cc: Hui Min Mina Chou <minachou@andestech.com>
+---
+ testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
+index 1dde9e87b..6a6f5fe5e 100644
+--- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
++++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
+@@ -19,6 +19,7 @@
+ 
+ #if defined(__clang__)
+ 	#pragma clang optimize off
++	void __clear_cache(void *start, void *end);
+ #endif
+ 
+ #define _GNU_SOURCE
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch
new file mode 100644
index 00000000..860b2f12
--- /dev/null
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-Remove-OOM-tests-from-runtest-mm.patch
@@ -0,0 +1,32 @@ 
+From bb9146dd322af98a7bb96ad0d84ec376589c6cde Mon Sep 17 00:00:00 2001
+From: "Mingde (Matthew) Zeng" <matthewzmd@gmail.com>
+Date: Wed, 29 Jul 2020 08:47:09 -0400
+Subject: [PATCH] Remove OOM tests from runtest/mm
+
+Disable OOM tests, as they might cause oeqa ssh connection lost
+
+Upstream-Status: Inappropriate [oe-core specific]
+Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
+[ pvorel: rebased for 20210927 ]
+Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
+---
+ runtest/mm | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/runtest/mm b/runtest/mm
+index 41d624ad8..1e8c22638 100644
+--- a/runtest/mm
++++ b/runtest/mm
+@@ -69,12 +69,6 @@ ksm07 ksm07
+ cpuset01 cpuset01
+ cpuset02 cpuset02
+ 
+-oom01 oom01
+-oom02 oom02
+-oom03 oom03
+-oom04 oom04
+-oom05 oom05
+-
+ swapping01 swapping01 -i 5
+ 
+ thp01 thp01 -I 120
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
new file mode 100644
index 00000000..364e203e
--- /dev/null
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
@@ -0,0 +1,45 @@ 
+From 09364a758df9d89a0968894376f82f636441addb Mon Sep 17 00:00:00 2001
+From: Jiaying Song <jiaying.song.cn@windriver.com>
+Date: Fri, 23 May 2025 15:17:49 +0800
+Subject: [PATCH] syscalls/semctl08: Skip semctl08 when __USE_TIME64_REDIRECTS
+ is defined
+
+When __USE_TIME64_REDIRECTS is defined, glibc redirects struct semid_ds to a
+64-bit time-safe version that omits the sem_otime_high and sem_ctime_high
+fields. As a result, the case becomes invalid and leads to incorrect behavior.
+
+This patch adds a check to skip the test when __USE_TIME64_REDIRECTS is
+defined, ensuring the test only runs when semid_ds structurally matches
+semid64_ds and the *_high fields are accessible.
+
+Upstream-Status: Submitted [https://lists.linux.it/pipermail/ltp/2025-May/043647.html]
+
+Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
+---
+ testcases/kernel/syscalls/ipc/semctl/semctl08.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl08.c b/testcases/kernel/syscalls/ipc/semctl/semctl08.c
+index f4549adf4..28776f266 100644
+--- a/testcases/kernel/syscalls/ipc/semctl/semctl08.c
++++ b/testcases/kernel/syscalls/ipc/semctl/semctl08.c
+@@ -12,7 +12,11 @@
+ #include "tst_test.h"
+ #include "libnewipc.h"
+ 
+-#ifdef HAVE_SEMID64_DS_TIME_HIGH
++#if !defined(HAVE_SEMID64_DS_TIME_HIGH)
++TST_TEST_TCONF("test requires struct semid64_ds to have the time_high fields");
++#elif defined(__USE_TIME64_REDIRECTS)
++TST_TEST_TCONF("test requires __USE_TIME64_REDIRECTS to be undefined");
++#else
+ 
+ static void run(void)
+ {
+@@ -49,6 +53,4 @@ static struct tst_test test = {
+ 	.test_all = run,
+ 	.needs_tmpdir = 1,
+ };
+-#else
+-TST_TEST_TCONF("test requires struct semid64_ds to have the time_high fields");
+ #endif
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch
new file mode 100644
index 00000000..1c06e254
--- /dev/null
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/2d066ead3d6ef504c82551b12306e751d23ddb45.patch
@@ -0,0 +1,193 @@ 
+From 2d066ead3d6ef504c82551b12306e751d23ddb45 Mon Sep 17 00:00:00 2001
+From: Wei Gao <wegao@suse.com>
+Date: Sun, 14 Dec 2025 02:15:20 +0000
+Subject: [PATCH] listmount04.c: Update struct mnt_id_req support for kernel >= 6.18
+
+Kernel change from v6.18-rc7
+78f0e33cd6c93 ("fs/namespace: correctly handle errors returned by grab_requested_mnt_ns")
+causes the test failure with following error message:
+listmount04.c:128: TFAIL: invalid mnt_id_req.spare expected EINVAL: EBADF (9)
+
+The fix require following changes:
+
+* struct mnt_id_req got new member mnt_ns_fd in v6.18-rc7.  That is
+fixed in a fallback defintion in lapi/. If the fallback is used is now
+done via typedef (that requires also update in statmount.h).
+
+* New kernels (>= 6.18) have also different errno. This is fixed by
+runtime check.
+
+Link: https://lore.kernel.org/ltp/20251214021541.3256-1-wegao@suse.com/
+Reviewed-by: Petr Vorel <pvorel@suse.cz>
+Reviewed-by: Li Wang <liwang@redhat.com>
+Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
+Signed-off-by: Wei Gao <wegao@suse.com>
+[ pvorel: Shorten TCONF, rewrite commit message ]
+Signed-off-by: Petr Vorel <pvorel@suse.cz>
+---
+ configure.ac                                  |  2 +-
+ include/lapi/mount.h                          | 10 +++--
+ .../kernel/syscalls/listmount/listmount.h     |  2 +-
+ .../kernel/syscalls/listmount/listmount04.c   | 37 +++++++++++++++++--
+ .../kernel/syscalls/statmount/statmount.h     |  2 +-
+ 5 files changed, 44 insertions(+), 9 deletions(-)
+
+Upstream-Status: Backport
+
+Index: ltp-20250930/configure.ac
+===================================================================
+--- ltp-20250930.orig/configure.ac
++++ ltp-20250930/configure.ac
+@@ -262,7 +262,7 @@ AC_CHECK_TYPES([struct cachestat_range],
+ AC_CHECK_TYPES([struct cachestat],,,[#include <sys/mman.h>])
+ 
+ # Defined in <linux/mount.h>, but include/lapi/mount.h includes <sys/mount.h> */
+-AC_CHECK_TYPES([struct mnt_id_req],,,[#include <sys/mount.h>])
++AC_CHECK_MEMBERS([struct mnt_id_req.mnt_ns_fd],,,[#include <sys/mount.h>])
+ AC_CHECK_TYPES([struct statmount],,,[#include <sys/mount.h>])
+ AC_CHECK_MEMBERS([struct statmount.mnt_ns_id],,,[#include <unistd.h>
+ #include <linux/mount.h>])
+Index: ltp-20250930/include/lapi/mount.h
+===================================================================
+--- ltp-20250930.orig/include/lapi/mount.h
++++ ltp-20250930/include/lapi/mount.h
+@@ -45,14 +45,18 @@
+ # define MS_NOSYMFOLLOW 256
+ #endif
+ 
+-#ifndef HAVE_STRUCT_MNT_ID_REQ
+-struct mnt_id_req {
++struct mnt_id_req_fallback {
+ 	uint32_t size;
+-	uint32_t spare;
++	uint32_t mnt_ns_fd;
+ 	uint64_t mnt_id;
+ 	uint64_t param;
+ 	uint64_t mnt_ns_id;
+ };
++
++#ifndef HAVE_STRUCT_MNT_ID_REQ_MNT_NS_FD
++typedef struct mnt_id_req_fallback mnt_id_req;
++#else
++typedef struct mnt_id_req mnt_id_req;
+ #endif
+ 
+ #ifndef HAVE_STRUCT_STATMOUNT
+Index: ltp-20250930/testcases/kernel/syscalls/listmount/listmount.h
+===================================================================
+--- ltp-20250930.orig/testcases/kernel/syscalls/listmount/listmount.h
++++ ltp-20250930/testcases/kernel/syscalls/listmount/listmount.h
+@@ -15,7 +15,7 @@
+ static inline ssize_t listmount(uint64_t mnt_id, uint64_t last_mnt_id,
+ 			 uint64_t list[], size_t num, unsigned int flags)
+ {
+-	struct mnt_id_req req = {
++	mnt_id_req req = {
+ 		.size = MNT_ID_REQ_SIZE_VER0,
+ 		.mnt_id = mnt_id,
+ 		.param = last_mnt_id,
+Index: ltp-20250930/testcases/kernel/syscalls/listmount/listmount04.c
+===================================================================
+--- ltp-20250930.orig/testcases/kernel/syscalls/listmount/listmount04.c
++++ ltp-20250930/testcases/kernel/syscalls/listmount/listmount04.c
+@@ -14,14 +14,18 @@
+ 
+ #define _GNU_SOURCE
+ 
++#include "config.h"
+ #include "tst_test.h"
+ #include "lapi/mount.h"
+ #include "lapi/syscalls.h"
+ 
+ #define MNT_SIZE 32
++#define BEFORE_6_18 1
++#define AFTER_6_18 2
+ 
+-static struct mnt_id_req *request;
++static mnt_id_req *request;
+ static uint64_t mnt_ids[MNT_SIZE];
++static int kver;
+ 
+ static struct tcase {
+ 	int req_usage;
+@@ -34,6 +38,7 @@ static struct tcase {
+ 	uint64_t flags;
+ 	int exp_errno;
+ 	char *msg;
++	int kver;
+ } tcases[] = {
+ 	{
+ 		.req_usage = 0,
+@@ -79,6 +84,18 @@ static struct tcase {
+ 		.nr_mnt_ids = MNT_SIZE,
+ 		.exp_errno = EINVAL,
+ 		.msg = "invalid mnt_id_req.spare",
++		.kver = BEFORE_6_18,
++	},
++	{
++		.req_usage = 1,
++		.size = MNT_ID_REQ_SIZE_VER0,
++		.spare = -1,
++		.mnt_id = LSMT_ROOT,
++		.mnt_ids = mnt_ids,
++		.nr_mnt_ids = MNT_SIZE,
++		.exp_errno = EBADF,
++		.msg = "invalid mnt_id_req.mnt_ns_fd",
++		.kver = AFTER_6_18,
+ 	},
+ 	{
+ 		.req_usage = 1,
+@@ -113,7 +130,12 @@ static struct tcase {
+ static void run(unsigned int n)
+ {
+ 	struct tcase *tc = &tcases[n];
+-	struct mnt_id_req *req = NULL;
++	mnt_id_req *req = NULL;
++
++	if (tc->kver && tc->kver != kver) {
++		tst_res(TCONF, "Test not suitable for current kernel version");
++		return;
++	}
+ 
+ 	memset(mnt_ids, 0, sizeof(mnt_ids));
+ 
+@@ -122,7 +144,7 @@ static void run(unsigned int n)
+ 		req->mnt_id = tc->mnt_id;
+ 		req->param = tc->param;
+ 		req->size = tc->size;
+-		req->spare = tc->spare;
++		req->mnt_ns_fd = tc->spare;
+ 	}
+ 
+ 	TST_EXP_FAIL(tst_syscall(__NR_listmount, req, tc->mnt_ids,
+@@ -130,8 +152,17 @@ static void run(unsigned int n)
+ 		"%s", tc->msg);
+ }
+ 
++static void setup(void)
++{
++	if (tst_kvercmp(6, 18, 0) >= 0)
++		kver = AFTER_6_18;
++	else
++		kver = BEFORE_6_18;
++}
++
+ static struct tst_test test = {
+ 	.test = run,
++	.setup = setup,
+ 	.tcnt = ARRAY_SIZE(tcases),
+ 	.min_kver = "6.8",
+ 	.bufs = (struct tst_buffers []) {
+Index: ltp-20250930/testcases/kernel/syscalls/statmount/statmount.h
+===================================================================
+--- ltp-20250930.orig/testcases/kernel/syscalls/statmount/statmount.h
++++ ltp-20250930/testcases/kernel/syscalls/statmount/statmount.h
+@@ -16,7 +16,7 @@
+ static inline int statmount(uint64_t mnt_id, uint64_t mask, struct statmount *buf,
+ 		     size_t bufsize, unsigned int flags)
+ {
+-	struct mnt_id_req req = {
++	mnt_id_req req = {
+ 		.size = MNT_ID_REQ_SIZE_VER0,
+ 		.mnt_id = mnt_id,
+ 		.param = mask,
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb
similarity index 91%
rename from meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb
rename to meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb
index 6259d7bc..85480996 100644
--- a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250130.bb
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt_20250930.bb
@@ -1,11 +1,13 @@ 
 FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-extended/ltp/ltp:"
-FILESEXTRAPATHS:prepend := "${TITESTBASE}/recipes-extended/ltp/ltp:"
+FILESEXTRAPATHS:prepend := "${TITESTBASE}/recipes-devtools/ltp-ddt/ltp-ddt:"
 
 require ltp_${PV}.inc
 
 SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
 HOMEPAGE = "https://git.ti.com/cgit/test-automation/ltp-ddt/"
 
+S = "${WORKDIR}/git"
+
 DEPENDS += "alsa-lib"
 
 PE = "1"
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc
similarity index 92%
rename from meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc
rename to meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc
index 1a353a19..30897de7 100644
--- a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250130.inc
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20250930.inc
@@ -24,13 +24,14 @@  TUNE_CCARGS:remove:x86-64 = "-mfpmath=sse"
 
 CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__"
 CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
-SRCREV = "a7c31dff7edc089a32e990765e12952cc4d7666a"
+SRCREV = "d2550ffbbcfe163212cd7e9c132db65ae0fa06ed"
 
 SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \
            file://0001-Remove-OOM-tests-from-runtest-mm.patch \
-           "
-
-S = "${WORKDIR}/git"
+           file://0001-Add-__clear_cache-declaration-for-clang.patch \
+           file://0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch \
+           file://2d066ead3d6ef504c82551b12306e751d23ddb45.patch \
+          "
 
 inherit autotools-brokensep pkgconfig
 
@@ -119,6 +120,8 @@  FILES:${PN} += "${prefix}/* ${prefix}/runtest/* ${prefix}/scenario_groups/* ${pr
 INHIBIT_PACKAGE_STRIP_FILES = "${prefix}/testcases/bin/nm01 ${prefix}/testcases/bin/ldd01"
 INSANE_SKIP:${PN} += "already-stripped staticdev"
 
+CACHED_CONFIGUREVARS:libc-musl = "ac_cv_type_struct_mnt_id_req=no ac_cv_type_struct_statmount=no"
+
 remove_broken_musl_sources() {
 	[ "${TCLIBC}" = "musl" ] || return 0
 
@@ -132,7 +135,8 @@  remove_broken_musl_sources() {
 		testcases/kernel/syscalls/getcontext/getcontext01.c \
 		testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c \
 		testcases/kernel/syscalls/timer_create/timer_create01.c \
-		testcases/kernel/syscalls/timer_create/timer_create03.c
+		testcases/kernel/syscalls/timer_create/timer_create03.c \
+		testcases/kernel/syscalls/statmount/statmount02.c
 }
 do_patch[postfuncs] += "remove_broken_musl_sources"