Message ID | cf5e65ba1eb9652008a9ca21a5502bf7907af6c3.1727624528.git.fweimer@redhat.com |
---|---|
State | Under Review |
Delegated to: | Adhemerval Zanella Netto |
Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AFF0385E45B for <patchwork@sourceware.org>; Sun, 29 Sep 2024 15:59:37 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 1EB79385841E for <libc-alpha@sourceware.org>; Sun, 29 Sep 2024 15:59:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EB79385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1EB79385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727625559; cv=none; b=HOxKmMVjPbx0hWjTH/u/tWX8VTbxDB4jTgRdizUs+VfG2Xl/TK2dUGGWRyNXiwJrVJVLdMFHPOt+IpDr6yzH383bQbfqDZ0zTnQ/ATNUKKmQ6tjHIMGqsE6cY7LUzf4iKuKdq/163jjjGipEa6jyKW8X7HNEnJJMvkIHrNW3S0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727625559; c=relaxed/simple; bh=Z/2gEf+g4r3sBuMLVr3bb7h0Yc9NUSCS7p0sHYeFafg=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=r0QCUWDW4IOlEbG/De0UbSezGfoJCLOGH3M7YBYoHFIJGJS/lVY/J8KV93mgNwwuwZiIZeOdFW9K0ZeiNN54ouLDep1BRNCfONINauz453+LE1KBN5/GKAI4oCZGBwS3w7bSwOtJJsAGNZZP+nf9bSRGagLYH1QZR33yqS2nfHE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727625556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+ID1Y0YWtU/Dxe+MwRDsY34pLfJkx2ww3OIyD4/ful4=; b=gEMpserVw/nC53vJrrpdTf1Oj438JFUcAfOOu2xZ9O20fcGR8mwYLyS+J8uUFKNUDteURF UebrveoJ7cAArQIPN5FzyD/KF1zTsrnRvf901cBRKN3ZVuG8NaSwGwKkoWxuJi2BawnS3M Hk1qXAm6edXwxdPtvDbqmXAzAuoTEzw= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-251-F3uo74wLMtyay-9ZP7Zqhg-1; Sun, 29 Sep 2024 11:59:15 -0400 X-MC-Unique: F3uo74wLMtyay-9ZP7Zqhg-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2E522195FE1E; Sun, 29 Sep 2024 15:59:14 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.151]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4394C3003E40; Sun, 29 Sep 2024 15:59:11 +0000 (UTC) From: Florian Weimer <fweimer@redhat.com> To: libc-alpha@sourceware.org Cc: Pavel Kozlov <Pavel.Kozlov@synopsys.com>, Vineet Gupta <vineet.gupta@linux.dev>, Alexey Brodkin <Alexey.Brodkin@synopsys.com>, Luis Manuel Silva <Luis.Silva1@synopsys.com> Subject: [PATCH v3 05/29] arc: Add <bits/pagesize.h> In-Reply-To: <cover.1727624528.git.fweimer@redhat.com> Message-ID: <cf5e65ba1eb9652008a9ca21a5502bf7907af6c3.1727624528.git.fweimer@redhat.com> References: <cover.1727624528.git.fweimer@redhat.com> X-From-Line: cf5e65ba1eb9652008a9ca21a5502bf7907af6c3 Mon Sep 17 00:00:00 2001 Date: Sun, 29 Sep 2024 17:59:09 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Teach glibc about possible page sizes and handle gaps in ld.so
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 | success | Test passed |
linaro-tcwg-bot/tcwg_glibc_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_glibc_check--master-arm | success | Test passed |
Commit Message
Florian Weimer
Sept. 29, 2024, 3:59 p.m. UTC
According to arch/arc/Kconfig in the Linux kernel sources, arc supports pagge sizes 4 KiB, 8 KiB, 16 KiB. However, the toolchain defaults are not compatible with 16 KiB pages, so xfail the future elf/tst-load-alignment test. (Note: Alternatively, we could fix the maximum page size at 8 KiB, if that's closer to reality.) --- sysdeps/arc/bits/pagesize.h | 2 ++ sysdeps/unix/sysv/linux/arc/Makefile | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 sysdeps/arc/bits/pagesize.h
Comments
On 9/29/24 08:59, Florian Weimer wrote: > According to arch/arc/Kconfig in the Linux kernel sources, arc > supports pagge sizes 4 KiB, 8 KiB, 16 KiB. However, > the toolchain defaults are not compatible with 16 KiB pages, so > xfail the future elf/tst-load-alignment test. > > (Note: Alternatively, we could fix the maximum page size at 8 KiB, > if that's closer to reality.) Indeed 16K size was more esoteric and dates back to older ARC700 cpus (not supported in glibc anyways) And 8K is indeed the default for ARCompact and ARCv2 ISA cores. -Vineet > --- > sysdeps/arc/bits/pagesize.h | 2 ++ > sysdeps/unix/sysv/linux/arc/Makefile | 5 +++++ > 2 files changed, 7 insertions(+) > create mode 100644 sysdeps/arc/bits/pagesize.h > > diff --git a/sysdeps/arc/bits/pagesize.h b/sysdeps/arc/bits/pagesize.h > new file mode 100644 > index 0000000000..16a4d49136 > --- /dev/null > +++ b/sysdeps/arc/bits/pagesize.h > @@ -0,0 +1,2 @@ > +#define __GLIBC_PAGE_SHIFT_MIN 12 > +#define __GLIBC_PAGE_SHIFT_MAX 14 > diff --git a/sysdeps/unix/sysv/linux/arc/Makefile b/sysdeps/unix/sysv/linux/arc/Makefile > index dd3da52c39..cfade7a347 100644 > --- a/sysdeps/unix/sysv/linux/arc/Makefile > +++ b/sysdeps/unix/sysv/linux/arc/Makefile > @@ -1,3 +1,8 @@ > +ifeq ($(subdir),elf) > +# The toolchain defaults to 8K pages even though Linux supports 16K pages. > +test-xfail-tst-load-alignment = yes > +endif > + > ifeq ($(subdir),stdlib) > gen-as-const-headers += ucontext_i.sym > endif
* Vineet Gupta: > On 9/29/24 08:59, Florian Weimer wrote: >> According to arch/arc/Kconfig in the Linux kernel sources, arc >> supports pagge sizes 4 KiB, 8 KiB, 16 KiB. However, >> the toolchain defaults are not compatible with 16 KiB pages, so >> xfail the future elf/tst-load-alignment test. >> >> (Note: Alternatively, we could fix the maximum page size at 8 KiB, >> if that's closer to reality.) > > Indeed 16K size was more esoteric and dates back to older ARC700 cpus > (not supported in glibc anyways) And 8K is indeed the default for > ARCompact and ARCv2 ISA cores. >> +#define __GLIBC_PAGE_SHIFT_MIN 12 >> +#define __GLIBC_PAGE_SHIFT_MAX 14 Do you suggest to change the maximum shift to 13? Sorry, it's not clear based on your comment. Thanks, Florian
diff --git a/sysdeps/arc/bits/pagesize.h b/sysdeps/arc/bits/pagesize.h new file mode 100644 index 0000000000..16a4d49136 --- /dev/null +++ b/sysdeps/arc/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 12 +#define __GLIBC_PAGE_SHIFT_MAX 14 diff --git a/sysdeps/unix/sysv/linux/arc/Makefile b/sysdeps/unix/sysv/linux/arc/Makefile index dd3da52c39..cfade7a347 100644 --- a/sysdeps/unix/sysv/linux/arc/Makefile +++ b/sysdeps/unix/sysv/linux/arc/Makefile @@ -1,3 +1,8 @@ +ifeq ($(subdir),elf) +# The toolchain defaults to 8K pages even though Linux supports 16K pages. +test-xfail-tst-load-alignment = yes +endif + ifeq ($(subdir),stdlib) gen-as-const-headers += ucontext_i.sym endif