This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 0/4] aarch64: Allow overriding HWCAP_CPUID feature check
- From: Steve Ellcey <sellcey at cavium dot com>
- To: siddhesh at gotplt dot org
- Cc: libc-alpha at sourceware dot org, Siddhesh Poyarekar <siddhesh at sourceware dot org>, adhemerval dot zanella at linaro dot org
- Date: Tue, 30 May 2017 13:23:23 -0700
- Subject: Re: [PATCH v3 0/4] aarch64: Allow overriding HWCAP_CPUID feature check
- Authentication-results: sourceware.org; auth=none
- Authentication-results: gotplt.org; dkim=none (message not signed) header.d=none;gotplt.org; dmarc=none action=none header.from=cavium.com;
- References: <bebe9cec-5156-4bfc-9b41-6db09af69981@email.android.com> <1496163265.18342.54.camel@cavium.com> <1496172169.18342.58.camel@cavium.com>
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On Tue, 2017-05-30 at 12:22 -0700, Steve Ellcey wrote:
> Siddhesh,
>
> I think the problem may be in dl-tunables.h. I could not get either
> of
> your patches that change that file (1 of 4 and 1 of 5) to apply
> cleanly
> to this file. 1 of 4 was small, but 1 of 5 is more complex and I may
> have messed it up while trying to apply it by hand. Could you redo
> at
> least patch 1 of 5 so it applies cleanly to top-of-tree dl-
> tunables.h.
> Or maybe you could just send me a copy of dl-tunables.h so I can drop
> it in without the patch command.
>
> Steve Ellcey
> sellcey@cavium.com
OK, I made a little progress. If I don't set LD_HWCAP_MASK then it
seems to be treating it as 0, even though the default value is supposed
to be HWCAP_IMPORTANT which gets set to HWCAP_CPUID. If I explicitly
set LD_HWCAP_MASK to 0x800 then I get the correct heaviour and my
program checks for CPUID. I am not sure why the default value for
LD_HWCAP_MASK does not seem to be right.
Steve Ellcey
sellcey@cavium.com