public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Evan Green <evan@rivosinc.com>
Cc: Palmer Dabbelt <palmer@rivosinc.com>,
	adhemerval.zanella@linaro.org, libc-alpha@sourceware.org,
	slewis@rivosinc.com, Vineet Gupta <vineetg@rivosinc.com>
Subject: Re: [PATCH v2 0/3] RISC-V: ifunced memcpy using new kernel hwprobe interface
Date: Thu, 30 Mar 2023 23:09:13 -0600	[thread overview]
Message-ID: <aa11bf02-3a65-fc48-bd4b-35e49ace3815@gmail.com> (raw)
In-Reply-To: <CALs-HsuMThyu+71eqJf-15ejrqP9MOHrXpVNOGEgoUtwJh7Upg@mail.gmail.com>



On 3/30/23 12:43, Evan Green wrote:
> On Wed, Mar 29, 2023 at 11:20 PM Jeff Law <jeffreyalaw@gmail.com> wrote:
>>
>>
>>
>> On 3/29/23 13:45, Palmer Dabbelt wrote:
>>
>>> It's not in for-next yet, but various patch sets / proposals have been
>>> on the lists for a few months and it seems like discussion on the kernel
>>> side has pretty much died down.  That's why I was pinging the glibc side
>>> of things, if anyone here has comments on the interface then it's time
>>> to chime in.  If there's no comments then we're likely to end up with
>>> this in the next release (so queue into for-next soon, Linus' master in
>>> a month or so).
>> Right.  And I've suggested that we at least try to settle on the various
>> mem* and str* implementations independently of the kernel->glibc
>> interface question.
> 
> This works for me. As we talked about off-list, this series cleaves
> pretty cleanly. One option would be to take this series now(ish,
> whenever the kernel series lands), then cleave off my memcpy and
> replace it with Vrull's when it's ready. The hope being that two
> incremental improvements go faster than waiting to try and land
> everything perfectly all at once.
No idea at this point if VRULL's is better or worse ;-)  Right now I'm 
focused on their cboz implementation of memset.  Assuming no uarch 
quirks it should be a slam dunk.  But of course there's a quirk in our 
uarch, so testing testing testing.

I did just spend a fair amount of time in the hottest path of their 
strcmp.  It seems quite reasonable.

Jeff

  reply	other threads:[~2023-03-31  5:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 19:15 Evan Green
2023-02-21 19:15 ` [PATCH v2 1/3] riscv: Add Linux hwprobe syscall support Evan Green
2023-03-29 18:38   ` Adhemerval Zanella Netto
2023-02-21 19:15 ` [PATCH v2 2/3] riscv: Add hwprobe vdso call support Evan Green
2023-03-29 18:39   ` Adhemerval Zanella Netto
2023-02-21 19:15 ` [PATCH v2 3/3] riscv: Add and use alignment-ignorant memcpy Evan Green
2023-03-28 22:54 ` [PATCH v2 0/3] RISC-V: ifunced memcpy using new kernel hwprobe interface Palmer Dabbelt
2023-03-28 23:41   ` Adhemerval Zanella Netto
2023-03-29  0:01     ` Palmer Dabbelt
2023-03-29 19:16       ` Adhemerval Zanella Netto
2023-03-29 19:45         ` Palmer Dabbelt
2023-03-29 20:13           ` Adhemerval Zanella Netto
2023-03-30 18:31             ` Evan Green
2023-03-30 19:43               ` Adhemerval Zanella Netto
2023-03-30  6:20           ` Jeff Law
2023-03-30 18:43             ` Evan Green
2023-03-31  5:09               ` Jeff Law [this message]
2023-03-30 19:38             ` Adhemerval Zanella Netto
2023-03-31 18:07               ` Jeff Law
2023-03-31 18:34                 ` Palmer Dabbelt
2023-03-31 19:32                   ` Adhemerval Zanella Netto
2023-03-31 20:19                     ` Jeff Law
2023-03-31 21:03                       ` Palmer Dabbelt
2023-03-31 21:35                         ` Jeff Law
2023-03-31 21:38                           ` Palmer Dabbelt
2023-03-31 22:10                             ` Jeff Law
2023-04-07 15:36                               ` Palmer Dabbelt

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa11bf02-3a65-fc48-bd4b-35e49ace3815@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=evan@rivosinc.com \
    --cc=libc-alpha@sourceware.org \
    --cc=palmer@rivosinc.com \
    --cc=slewis@rivosinc.com \
    --cc=vineetg@rivosinc.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).