This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH 0/2] Make sparcv8 work again on cas enabled hardware
- From: David Miller <davem at davemloft dot net>
- To: triegel at redhat dot com
- Cc: andreas at gaisler dot com, libc-alpha at sourceware dot org, adhemerval dot zanella at linaro dot org, carlos at redhat dot com, software at gaisler dot com
- Date: Tue, 01 Nov 2016 12:09:33 -0400 (EDT)
- Subject: Re: [RFC][PATCH 0/2] Make sparcv8 work again on cas enabled hardware
- Authentication-results: sourceware.org; auth=none
- References: <1478012867-6031-1-git-send-email-andreas@gaisler.com> <1478015984.7146.645.camel@localhost.localdomain>
From: Torvald Riegel <triegel@redhat.com>
Date: Tue, 01 Nov 2016 16:59:44 +0100
> On Tue, 2016-11-01 at 16:07 +0100, Andreas Larsson wrote:
>> Any comments are most welcome. The spin lock based sparcv8 semaphore
>> implementation is currently unchanged by this patchset, but I would say
>> that that should go as well.
>
> Agreed.
I think tossing out all of the ldstub based v8 code is not wise.
I was envisioning adding code to use ldstub on v8 when CAS is not
available in order to maintain the status quo of what worked and
was functional before the changes which introduced this problem
for v8 in the first place.
Having that in place until the kernel-side atomics could be
implemented, propagated, and supported in glibc would be a nice
intermediate state compared to what we have now.