[PATCH] sparc: Align THP tests to the 8MB huge-page size
Andreas K. Huettel
dilfridge@gentoo.org
Thu Jul 16 01:18:51 GMT 2026
Am Mittwoch, 15. Juli 2026, 22:10:40 Japanische Normalzeit schrieb Adhemerval Zanella:
> The sparc64 uses an 8KB base page and 8MB PMD transparent huge page.
> It fixes the following regression on sparc:
>
> FAIL: elf/tst-thp-1
> FAIL: elf/tst-thp-1-no-s-code
> FAIL: elf/tst-thp-1-no-s-code-pde
> FAIL: elf/tst-thp-1-no-s-code-static
> FAIL: elf/tst-thp-1-pde
> FAIL: elf/tst-thp-1-static
> FAIL: elf/tst-thp-align
>
> Checked with the elf tests on qemu sparc64.
Tested-by: Andreas K. Hüttel <dilfridge@gentoo.org>
> ---
> sysdeps/unix/sysv/linux/sparc/Makefile | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/sysdeps/unix/sysv/linux/sparc/Makefile b/sysdeps/unix/sysv/linux/sparc/Makefile
> index e0056c9413f..57e73d0a14d 100644
> --- a/sysdeps/unix/sysv/linux/sparc/Makefile
> +++ b/sysdeps/unix/sysv/linux/sparc/Makefile
> @@ -14,3 +14,8 @@ endif
> ifeq ($(subdir),signal)
> sysdep_routines += sigreturn_stub
> endif
> +
> +ifeq ($(subdir),elf)
> +# The sparc64 uses an 8KB base page and 8MB PMD transparent huge page
> +THP-PAGE-SIZE = 0x800000
> +endif
>
--
PD Dr. Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260716/2d0ca518/attachment.sig>
More information about the Libc-alpha
mailing list