* [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64
@ 2026-09-11 12:50 Yeoreum Yun
2026-09-11 15:00 ` David Hildenbrand (Arm)
2026-09-11 15:04 ` Lorenzo Stoakes (ARM)
0 siblings, 2 replies; 5+ messages in thread
From: Yeoreum Yun @ 2026-09-11 12:50 UTC (permalink / raw)
To: linux-mm, linux-kselftest, linux-kernel
Cc: akpm, david, ljs, liam, vbabka, rppt, surenb, mhocko, shuah, Yeoreum Yun
Since commit 0389c305ef56 (“selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled”),
the soft-dirty test is skipped when soft-dirty is not supported.
There is therefore no reason to exclude the test from being built on
arm64. Remove the arm64-specific exclusion.
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
---
tools/testing/selftests/mm/Makefile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
index 2d5366196e30..d3e9bd67904a 100644
--- a/tools/testing/selftests/mm/Makefile
+++ b/tools/testing/selftests/mm/Makefile
@@ -104,10 +104,7 @@ TEST_GEN_FILES += guard-regions
TEST_GEN_FILES += merge
TEST_GEN_FILES += rmap
TEST_GEN_FILES += folio_split_race_test
-
-ifneq ($(ARCH),arm64)
TEST_GEN_FILES += soft-dirty
-endif
ifeq ($(ARCH),x86_64)
CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
--
LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64
2026-09-11 12:50 [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64 Yeoreum Yun
@ 2026-09-11 15:00 ` David Hildenbrand (Arm)
2026-09-11 16:24 ` Yeoreum Yun
2026-09-11 15:04 ` Lorenzo Stoakes (ARM)
1 sibling, 1 reply; 5+ messages in thread
From: David Hildenbrand (Arm) @ 2026-09-11 15:00 UTC (permalink / raw)
To: Yeoreum Yun, linux-mm, linux-kselftest, linux-kernel
Cc: akpm, ljs, liam, vbabka, rppt, surenb, mhocko, shuah
On 9/11/26 14:50, Yeoreum Yun wrote:
> Since commit 0389c305ef56 (“selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled”),
> the soft-dirty test is skipped when soft-dirty is not supported.
>
> There is therefore no reason to exclude the test from being built on
> arm64. Remove the arm64-specific exclusion.
>
> Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
> ---
> tools/testing/selftests/mm/Makefile | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
> index 2d5366196e30..d3e9bd67904a 100644
> --- a/tools/testing/selftests/mm/Makefile
> +++ b/tools/testing/selftests/mm/Makefile
> @@ -104,10 +104,7 @@ TEST_GEN_FILES += guard-regions
> TEST_GEN_FILES += merge
> TEST_GEN_FILES += rmap
> TEST_GEN_FILES += folio_split_race_test
> -
> -ifneq ($(ARCH),arm64)
> TEST_GEN_FILES += soft-dirty
> -endif
>
> ifeq ($(ARCH),x86_64)
> CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
Does that mean we can also the following?
diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
index d09f9f6a384ee..33963535616b2 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -390,10 +390,7 @@ then
CATEGORY="pkey" run_test ./protection_keys_64
fi
-if [ -x ./soft-dirty ]
-then
- CATEGORY="soft_dirty" run_test ./soft-dirty
-fi
+CATEGORY="soft_dirty" run_test ./soft-dirty
CATEGORY="pagemap" run_test ./pagemap_ioctl
--
Cheers,
David
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64
2026-09-11 15:00 ` David Hildenbrand (Arm)
@ 2026-09-11 16:24 ` Yeoreum Yun
2026-09-11 17:53 ` David Hildenbrand (Arm)
0 siblings, 1 reply; 5+ messages in thread
From: Yeoreum Yun @ 2026-09-11 16:24 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: Yeoreum Yun, linux-mm, linux-kselftest, linux-kernel, akpm, ljs,
liam, vbabka, rppt, surenb, mhocko, shuah
> On 9/11/26 14:50, Yeoreum Yun wrote:
> > Since commit 0389c305ef56 (“selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled”),
> > the soft-dirty test is skipped when soft-dirty is not supported.
> >
> > There is therefore no reason to exclude the test from being built on
> > arm64. Remove the arm64-specific exclusion.
> >
> > Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
> > Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
> > ---
> > tools/testing/selftests/mm/Makefile | 3 ---
> > 1 file changed, 3 deletions(-)
> >
> > diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
> > index 2d5366196e30..d3e9bd67904a 100644
> > --- a/tools/testing/selftests/mm/Makefile
> > +++ b/tools/testing/selftests/mm/Makefile
> > @@ -104,10 +104,7 @@ TEST_GEN_FILES += guard-regions
> > TEST_GEN_FILES += merge
> > TEST_GEN_FILES += rmap
> > TEST_GEN_FILES += folio_split_race_test
> > -
> > -ifneq ($(ARCH),arm64)
> > TEST_GEN_FILES += soft-dirty
> > -endif
> >
> > ifeq ($(ARCH),x86_64)
> > CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
>
> Does that mean we can also the following?
>
> diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
> index d09f9f6a384ee..33963535616b2 100755
> --- a/tools/testing/selftests/mm/run_vmtests.sh
> +++ b/tools/testing/selftests/mm/run_vmtests.sh
> @@ -390,10 +390,7 @@ then
> CATEGORY="pkey" run_test ./protection_keys_64
> fi
>
> -if [ -x ./soft-dirty ]
> -then
> - CATEGORY="soft_dirty" run_test ./soft-dirty
> -fi
> +CATEGORY="soft_dirty" run_test ./soft-dirty
>
> CATEGORY="pagemap" run_test ./pagemap_ioctl
Ah right. since all archs have the soft-dirty, we can remove the if
condition.
Thanks!
--
Sincerely,
Yeoreum Yun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64
2026-09-11 16:24 ` Yeoreum Yun
@ 2026-09-11 17:53 ` David Hildenbrand (Arm)
0 siblings, 0 replies; 5+ messages in thread
From: David Hildenbrand (Arm) @ 2026-09-11 17:53 UTC (permalink / raw)
To: Yeoreum Yun
Cc: linux-mm, linux-kselftest, linux-kernel, akpm, ljs, liam, vbabka,
rppt, surenb, mhocko, shuah
On 9/11/26 18:24, Yeoreum Yun wrote:
>> On 9/11/26 14:50, Yeoreum Yun wrote:
>>> Since commit 0389c305ef56 (“selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled”),
>>> the soft-dirty test is skipped when soft-dirty is not supported.
>>>
>>> There is therefore no reason to exclude the test from being built on
>>> arm64. Remove the arm64-specific exclusion.
>>>
>>> Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
>>> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
>>> ---
>>> tools/testing/selftests/mm/Makefile | 3 ---
>>> 1 file changed, 3 deletions(-)
>>>
>>> diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
>>> index 2d5366196e30..d3e9bd67904a 100644
>>> --- a/tools/testing/selftests/mm/Makefile
>>> +++ b/tools/testing/selftests/mm/Makefile
>>> @@ -104,10 +104,7 @@ TEST_GEN_FILES += guard-regions
>>> TEST_GEN_FILES += merge
>>> TEST_GEN_FILES += rmap
>>> TEST_GEN_FILES += folio_split_race_test
>>> -
>>> -ifneq ($(ARCH),arm64)
>>> TEST_GEN_FILES += soft-dirty
>>> -endif
>>>
>>> ifeq ($(ARCH),x86_64)
>>> CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
>>
>> Does that mean we can also the following?
>>
>> diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
>> index d09f9f6a384ee..33963535616b2 100755
>> --- a/tools/testing/selftests/mm/run_vmtests.sh
>> +++ b/tools/testing/selftests/mm/run_vmtests.sh
>> @@ -390,10 +390,7 @@ then
>> CATEGORY="pkey" run_test ./protection_keys_64
>> fi
>>
>> -if [ -x ./soft-dirty ]
>> -then
>> - CATEGORY="soft_dirty" run_test ./soft-dirty
>> -fi
>> +CATEGORY="soft_dirty" run_test ./soft-dirty
>>
>> CATEGORY="pagemap" run_test ./pagemap_ioctl
>
> Ah right. since all archs have the soft-dirty, we can remove the if
> condition.
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
With that, thanks!
--
Cheers,
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64
2026-09-11 12:50 [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64 Yeoreum Yun
2026-09-11 15:00 ` David Hildenbrand (Arm)
@ 2026-09-11 15:04 ` Lorenzo Stoakes (ARM)
1 sibling, 0 replies; 5+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-09-11 15:04 UTC (permalink / raw)
To: Yeoreum Yun
Cc: linux-mm, linux-kselftest, linux-kernel, akpm, david, liam,
vbabka, rppt, surenb, mhocko, shuah
On Fri, Sep 11, 2026 at 01:50:28PM +0100, Yeoreum Yun wrote:
> Since commit 0389c305ef56 (“selftests/mm: skip soft-dirty tests when CONFIG_MEM_SOFT_DIRTY is disabled”),
> the soft-dirty test is skipped when soft-dirty is not supported.
>
> There is therefore no reason to exclude the test from being built on
> arm64. Remove the arm64-specific exclusion.
>
> Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Seems reasonable with David's suggested change applied.
Acked-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> ---
> tools/testing/selftests/mm/Makefile | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
> index 2d5366196e30..d3e9bd67904a 100644
> --- a/tools/testing/selftests/mm/Makefile
> +++ b/tools/testing/selftests/mm/Makefile
> @@ -104,10 +104,7 @@ TEST_GEN_FILES += guard-regions
> TEST_GEN_FILES += merge
> TEST_GEN_FILES += rmap
> TEST_GEN_FILES += folio_split_race_test
> -
> -ifneq ($(ARCH),arm64)
> TEST_GEN_FILES += soft-dirty
> -endif
>
> ifeq ($(ARCH),x86_64)
> CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
> --
> LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}
>
--
Cheers, Lorenzo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-09-11 17:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 12:50 [PATCH] kselftest: mm: remove exclusion of building soft-dirty test in arm64 Yeoreum Yun
2026-09-11 15:00 ` David Hildenbrand (Arm)
2026-09-11 16:24 ` Yeoreum Yun
2026-09-11 17:53 ` David Hildenbrand (Arm)
2026-09-11 15:04 ` Lorenzo Stoakes (ARM)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®