From patchwork Tue Jul 21 20:01:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 139660 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D4D94BA2E17 for ; Tue, 21 Jul 2026 20:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D4D94BA2E17 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=xry111.site header.i=@xry111.site header.a=rsa-sha256 header.s=default header.b=gB1GkLaN X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 95CD64BA2E05 for ; Tue, 21 Jul 2026 20:02:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 95CD64BA2E05 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 95CD64BA2E05 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784664162; cv=none; b=D9rJSPCbqrBOHVQzXIg1hvQvSY43+XIKKK0dpbjk+Gsrm3AYHzDieCrGLlGexoqWqC1YJMfbhGdYDpL+gG9BuVTIdUsGxqsGFvg4i+6MJKMSVovnN2aaUFrWZDV0VZ+6Fg+mY15EkoiWDCA5SifQ2DYRA83rKz8Bvwfrt2SXu1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784664162; c=relaxed/simple; bh=+bb25MqxBn60LkDuRod+MnptOM0UJSvDE4+KMKFZ+yY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GcgM5MadPUcfEQA2JpUC8D1IvR1n6ElxozVfGETPk81qLj9ivSjlYGSrkiddvpVt8wWrqDidrrqUPsemO2So1UegKEKimGgCFyJr0KYYCH4uxqdsCKXb96MH3p+iqzdairlpS8ME7CxnzPviLBAAx1SnF4Sf7nFsErtJOFMVtMQ= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=xry111.site header.i=@xry111.site header.a=rsa-sha256 header.s=default header.b=gB1GkLaN DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95CD64BA2E05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xry111.site; s=default; t=1784664131; bh=mV4g74R1V9V1+248kiFo9Ez/w/4cj7EI8KOWfCbSN0A=; h=From:To:Cc:Subject:Date:From; b=gB1GkLaNiuth6evQqMfQ30fmOYqpviQ1vAYMScxbHvI4bz+B7dWBVFnAx6XJF1FrF MIetoXdipx30tljBLVDbH77Ec95VdBq23Iul2jCaZv0lNQqIktXCQnIUq7t9rUxBcC JNrhKpy15ZRW02gSum7oIhV7/HzWkO8fZpy+f6uY= Received: from stargazer (unknown [IPv6:2408:824e:301:3f71:c427:8c70:2426:b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 1AED665987; Tue, 21 Jul 2026 16:02:09 -0400 (EDT) From: Xi Ruoyao To: libc-alpha@sourceware.org Cc: Adhemerval Zanella , "Andreas K . Huettel" , WANG Rui , Henry Chen , Mingcong Bai , Xi Ruoyao Subject: [PATCH] tests: Align THP tests to the 32MB huge-page size Date: Wed, 22 Jul 2026 04:01:38 +0800 Message-ID: <20260721200148.1706264-1-xry111@xry111.site> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org On MIPS64 and AArch64 systems with 16-KiB pages, the PMD size is 32MB. As we already have multiple platforms requiring such a large size, it seems easier to raise the default instead of adding more special cases. Link: https://sourceware.org/glibc/wiki/Testing/Tests/elf/tst-thp-1 Signed-off-by: Xi Ruoyao --- Tested on x86_64-linux and mips64-linux. sysdeps/unix/sysv/linux/Makefile | 4 ++-- sysdeps/unix/sysv/linux/loongarch/Makefile | 3 --- sysdeps/unix/sysv/linux/sparc/Makefile | 5 ----- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 14a56d5cc3..9d3608c352 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -733,8 +733,8 @@ endif ifndef THP-PAGE-SIZE # Align PT_LOAD segments in THP tests to THP page size so that kernel will # map PIE to the address aligned to THP page size. Default THP page size -# to 2MB which can be overridden in Makefile in subdirectories. -THP-PAGE-SIZE = 0x200000 +# to 32MB which can be overridden in Makefile in subdirectories. +THP-PAGE-SIZE = 0x2000000 endif THP-PAGE-SIZE-CFLAGS = -DTHP_PAGE_SIZE=$(THP-PAGE-SIZE) diff --git a/sysdeps/unix/sysv/linux/loongarch/Makefile b/sysdeps/unix/sysv/linux/loongarch/Makefile index d5beb62440..0d5f087862 100644 --- a/sysdeps/unix/sysv/linux/loongarch/Makefile +++ b/sysdeps/unix/sysv/linux/loongarch/Makefile @@ -12,6 +12,3 @@ abi-ilp32s-condition := __WORDSIZE == 32 && defined __loongarch_soft_float abi-ilp32d-condition := __WORDSIZE == 32 && defined __loongarch_double_float abi-lp64s-condition := __WORDSIZE == 64 && defined __loongarch_soft_float abi-lp64d-condition := __WORDSIZE == 64 && defined __loongarch_double_float - -# Align THP tests to 32MB. -THP-PAGE-SIZE = 0x2000000 diff --git a/sysdeps/unix/sysv/linux/sparc/Makefile b/sysdeps/unix/sysv/linux/sparc/Makefile index 57e73d0a14..e0056c9413 100644 --- a/sysdeps/unix/sysv/linux/sparc/Makefile +++ b/sysdeps/unix/sysv/linux/sparc/Makefile @@ -14,8 +14,3 @@ 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