]> git.hungrycats.org Git - linux/commit
lkdtm/powerpc: add PPC_RADIX_TLBIEL test for radix MCE validation
authorSayali Patil <sayalip@linux.ibm.com>
Mon, 18 May 2026 06:56:05 +0000 (12:26 +0530)
committerKees Cook <kees@kernel.org>
Thu, 21 May 2026 10:21:01 +0000 (03:21 -0700)
commit122b52f0bab007ebeb414c8280c1def17b9ed1f4
treed03b38b902c4def014d3dd319df3e76d96134820
parent3f21a4426e6fc87447bda557655708c2c02cbabc
lkdtm/powerpc: add PPC_RADIX_TLBIEL test for radix MCE validation

Add a new LKDTM trigger (PPC_RADIX_TLBIEL) that executes a process-scoped
radix TLBIEL instruction to exercise the radix MMU behaviour and
associated machine check exception (MCE) handling paths.

This provides a way to validate MCE handling in radix mode. Currently,
there is no dedicated LKDTM test that exercises this path or allows
triggering radix-specific machine check behaviour for validation.

The test is only enabled on ppc64 systems with radix MMU
support and If radix is not active, the trigger is skipped and reported as
XFAIL.

Co-developed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Sayali Patil <sayalip@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Michael Ellerman <mpe@kernel.org>
Link: https://patch.msgid.link/85c9b59217bcecb3c7af52e9d5b175266771d7de.1778975974.git.sayalip@linux.ibm.com
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/misc/lkdtm/Makefile
drivers/misc/lkdtm/core.c
drivers/misc/lkdtm/powerpc.c
tools/testing/selftests/lkdtm/tests.txt