Re: [PATCH] sparc: Align THP tests to the 8MB huge-page size

"Andreas K. Huettel" <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization Gentoo Linux
Message-ID <[email protected]>
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 <[email protected]>

> ---
>  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
[email protected]
Gentoo Linux developer 
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEE/Rnm0xsZLuTcY+rT3CsWIV7VQSoFAmpYMXsbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJENwrFiFe1UEqEj4P/0f+fEQvrPPtoqx/hzwV
uz7GPOc/gD0LLrp5Wuk3mtE5wXLCMN4b1VhNx23fJkwtUPIFXBpYjRSxtpq3XrJr
jL8SvpCykh5QfleK1zAHNImIu0JELXruJTxwxwDryISWkGTPAmYuWJCU+SFxUr+a
cf2QzbFJAfHmetUd4jkAim/tK6l5fAQbjo168LWdJxBNIL4wi0rcIpD/kQ5RIqdA
3z0R5owbeUlW/fhbSVljRKZtVylNYYboAGQB1QuzmUxjQjAReafZQj3yhROL+USA
7Ah3sUKGy8UpPqBonjuD5u+Qe4PtN8UW/C7YOErjZH2L1ZhEdko6JfYMolmHi0Ql
cxqdJYRY9+9zBaksTK6VUj0O21rPFyKwRZQF/jGGk+lzjE3eBCVvWhlP7G3ZtAOI
xObRBiRVJ+mMZSxrmc9zm+WdkWcHKyeMrLZPHi7bx37HP0Jz1zMY0v3cfQoIMWuf
hctWKwQWAXIumlivDDhzA9dJgafQy+lCDL1mFQiDhAgfFOpyMjbF+vpiWANCTX0/
K8uwrdPJhLndI+loWgxje10iR/br2Z7Jjv8VneVqKZuaffhJlfx52va6PE47ENzn
F9MY6ym43QbZZrsxV+zTPeZY74Ldo4qBGtswbQglgNouI19CQvfkAN/9qPV5yqy3
jqU/OT/iQxPFeJmCmVfW0Emr
=OTyH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.