From: Peter Bergner <bergner@linux.ibm.com>
To: Manjunath Matti <mmatti@linux.ibm.com>, libc-alpha@sourceware.org
Cc: fweimer@redhat.com
Subject: Re: [PATCH v2 2/2] powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.
Date: Wed, 13 Dec 2023 17:47:57 -0600 [thread overview]
Message-ID: <8c5c3b9d-30d5-47b6-8da2-3aca0d9a5d22@linux.ibm.com> (raw)
In-Reply-To: <20231205123848.2505641-2-mmatti@linux.ibm.com>
On 12/5/23 6:38 AM, Manjunath Matti wrote:
> This patch adds a new feature for powerpc. In order to get faster
> access to the HWCAP3/HWCAP4 masks, similar to HWCAP/HWCAP2 (i.e. for
> implementing __builtin_cpu_supports() in GCC) without the overhead of
> reading them from the auxiliary vector, we now reserve space for them
> in the TCB.
>
> This is an ABI change for GLIBC 2.39.
>
> Suggested-by: Peter Bergner <bergner@linux.ibm.com>
> ---
> elf/dl-diagnostics.c | 2 +
> elf/dl-support.c | 2 +
> elf/elf.h | 4 ++
> sysdeps/generic/ldsodefs.h | 2 +
> sysdeps/powerpc/dl-procinfo.c | 6 ++-
> sysdeps/powerpc/dl-procinfo.h | 52 +++++++++++++------
> sysdeps/powerpc/hwcapinfo.c | 11 ++--
> sysdeps/unix/sysv/linux/dl-parse_auxv.h | 2 +
> sysdeps/unix/sysv/linux/dl-sysdep.c | 2 +
> .../unix/sysv/linux/powerpc/cpu-features.c | 2 +
> .../unix/sysv/linux/powerpc/cpu-features.h | 2 +
> sysdeps/unix/sysv/linux/powerpc/libc-start.c | 6 +++
> 12 files changed, 74 insertions(+), 19 deletions(-)
LGTM. The only catch is that this patch is dependent on the associated
kernel patch that adds the AT_HWCAP3 and AT_HWCAP4 getting upstream so
glibc can rely on their values. I'm still working on upstreaming that.
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
Peter
next prev parent reply other threads:[~2023-12-13 23:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 12:38 [PATCH v2 1/2] powerpc: Add space for HWCAP3/HWCAP4 in the TCB for future Power Manjunath Matti
2023-12-05 12:38 ` [PATCH v2 2/2] powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture Manjunath Matti
2023-12-13 23:47 ` Peter Bergner [this message]
2024-03-19 23:50 ` Peter Bergner
2023-12-13 23:45 ` [PATCH v2 1/2] powerpc: Add space for HWCAP3/HWCAP4 in the TCB for future Power Peter Bergner
2023-12-14 23:05 ` Rajalakshmi Srinivasaraghavan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c5c3b9d-30d5-47b6-8da2-3aca0d9a5d22@linux.ibm.com \
--to=bergner@linux.ibm.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=mmatti@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).