Received: by 10.223.164.202 with SMTP id h10csp432281wrb; Sun, 26 Nov 2017 04:52:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMZZpzoPpCAZ/TaNLxt02Zt9B05EyEW7cDpDHxwBHG+s+XjEujWDBAfRIbOVYhjgT4qjhWHE X-Received: by 10.98.156.204 with SMTP id u73mr24201325pfk.8.1511700750870; Sun, 26 Nov 2017 04:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511700750; cv=none; d=google.com; s=arc-20160816; b=0f4zQNlyUzEXXZSGykphVuqNjcWZvTn3kjZ/II2BQ4vGJV9pWHjMl1YAZPsz6NCtsW ylew1vsUqO0oEJSq/C7twoIh/lOY3FxvZ7AG0ztQSOOehbsxg5eERDrGRzxr+zATBEFL laCCwK7QC9O9fnD6YE2awImBiC5QHmSweQ1RXR7AsQmaNnriJoRgnUb73YK6cZ8bC219 ys3bLJwhtTjaTm4NWsDu4RjbcLlk0p0QDnDXwG0T3qKUNfjkAxbhbItN+kVYQYUyfWxA 2Ei+PuVrq0xlsw6iHIWjefAvAKc1j64poYnngK2jZKRXpYvldUyql98Oq1/veby+5MFf AaJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=86rp+SG5aQ2IBpp9EiH6xlQklYqKFH/e7IoEtK6kgTs=; b=UxJq6OI8/kCJhxvtXykZPApxmevQnkbiDPv37ZlIkmDF3W37w8suFVOOjUdgXReCEV wrdnXRujcJgSPRlkq9+qvus27Qj8CHlNo6QaC+zThsOWTelLCE/cvNxsaGsu02Inx36e XVrG4lXNrNasHF5dJ0qbpfRDA6XFIpOjMonRYK6BL1K9y9no1BOfDPO7SDlogfcFYwzF VsUdMCjABAtBk9qdCSur91kVQJZUaCYhMS0fQ48YMjcy41y/wD3zpZkm0cUxFIVPU0gK ++z9RKyJDQ0/KlFx7LBkqWG8s0CQ6SVtqutGlMa0+uCOGqBTD3GT8aLihvJrVEyhfKJk gK/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cv+RSWu2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si21749104plx.365.2017.11.26.04.52.18; Sun, 26 Nov 2017 04:52:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cv+RSWu2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752221AbdKZMvj (ORCPT + 79 others); Sun, 26 Nov 2017 07:51:39 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:35212 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178AbdKZMvi (ORCPT ); Sun, 26 Nov 2017 07:51:38 -0500 Received: by mail-it0-f46.google.com with SMTP id x28so2641147ita.0 for ; Sun, 26 Nov 2017 04:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=86rp+SG5aQ2IBpp9EiH6xlQklYqKFH/e7IoEtK6kgTs=; b=Cv+RSWu2Zu4E9vcHjYMOyra5GfFmLDJCu0vEooh5Ox8AVJuUr7icpvpKbYutXFJt6m b4gR2O/kc+De9UU9bvliHj7OSlQoz9b6UT1Ek5VCBKoY/hovvNXPKNyS3mC4MgGcSnKJ rXFk+9h/v/7RsWT452Taqf4BWYwTDUUd7LF7ya7heOoI6T1YrstvPwJsmZ0dR79CeOgW 7uG7pexu7jL57CepIU1SYrgsO+GI0AifQWLdB52+P9XqYzqAYY8z+BbHmfFxRgyXhBoZ 8JouQ+ubrkjvzjOxiLCy5ZCo9edNExDMSUoEqLJxGQ5i8+NCwENADs6GhGTHvFgPedOb j9gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=86rp+SG5aQ2IBpp9EiH6xlQklYqKFH/e7IoEtK6kgTs=; b=D20RqeCpnUhGy0o91bGnLeAQjB7upv6ducqPJlyqNErwW8LAq9JE922LKz1QbmijeN Xksb1QefdnN7Ty5aJg3cCdoMVmbzBxCwEuSmbQGSMRujJjmgkm+s4+gN16t7eOJZQSC2 Ne9yMT9otnqKtgU3Njas0J/omTfFfR92NaI0uB8G7/pYlhshOPBSmQU2HxSs6oZGhIER a9iCjZ8jHftUkgCe7c252J7Zx/0U4DGJpAQ4TkzJwNWFdxYfuLDhbcPKvKWhxkcNRUN0 wmr78lyeifKqz5MvUq7pdypYM25fYLQz66e6LQ/KbYgh5Nmy2JUTAihooyG+89en2kDe aIcw== X-Gm-Message-State: AJaThX4xBJnBoOHThGvn49Upc/oUouSXUniPhep/A3Wsd/yPCUo7JlVA GTsj8HocYWtLNnkGR48sYl44gmRPGNKzt5QqiL0= X-Received: by 10.36.164.75 with SMTP id v11mr25661857iti.33.1511700697324; Sun, 26 Nov 2017 04:51:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.169.20 with HTTP; Sun, 26 Nov 2017 04:51:36 -0800 (PST) In-Reply-To: <20171125204005.odaov56qeb7ritg2@mwanda> References: <20171004165605.17123-1-prasannatsmkumar@gmail.com> <20171125204005.odaov56qeb7ritg2@mwanda> From: PrasannaKumar Muralidharan Date: Sun, 26 Nov 2017 18:21:36 +0530 Message-ID: Subject: Re: [PATCH] lib: memmove: Use optimised memcpy if possible To: Dan Carpenter Cc: open list , mchehab@kernel.org, Paul Burton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On 26 November 2017 at 02:10, Dan Carpenter wrote: > Paul's original patch should have been separated into two patches to > begin with. The patch does two different things and one part goes > through the MIPS tree and one part goes through Andrew, probably. Okay. I will split his patch into two and send with my modifications. > On Sat, Nov 25, 2017 at 10:52:04PM +0530, PrasannaKumar Muralidharan wrote: >> Hi, >> >> On 4 October 2017 at 22:26, PrasannaKumar Muralidharan >> wrote: >> > When there is no overlap between src and dst use optimised memcpy if it >> > is available. >> > >> > Signed-off-by: Paul Burton >> > Signed-off-by: PrasannaKumar Muralidharan >> > --- >> > This change is a small part of a patch [1] from Paul Burton. I have >> > added his Signed-off by. I do not know whether it is correct. Please let >> > me know if it has to be changed, I will send a v2. > > > Sign-off is like signing a legal document. Read > Documentation/process/submitting-patches.rst the section about > "11) Sign your work - the Developer's Certificate of Origin" for an > explanation. > > So, yeah, Paul provided his s-o-b and it needs to be here as well. But > also he maybe should get authorship credit. Just put the first line in > the email as: > > From: Paul Burton > > But that's sort of a trickier thing, so maybe put some explanation that > you chopped out a bit from Pauls patch in the changelog: > > This is part of a patch that Paul Burton wrote > https://patchwork.linux-mips.org/patch/14517/ > > I know you put that here, but since it's under the --- cut off it won't > be saved in the final git log. Sure. Will do. >> > >> > This patch is boot tested with qemu for MIPS architecture by removing >> > mips's memmove routine. This patch does not contain MIPS changes. I >> > will try to find out why [1] was not taken already and figure out what >> > to do. >> > > > Instead of boot testing, it would be better if we had a benchmark to > show it helped speed things up. I will try to come up with some reasonable benchmark and post its results. >> > 1. https://patchwork.linux-mips.org/patch/14517/ >> > >> > lib/string.c | 11 +++++++++++ >> > 1 file changed, 11 insertions(+) >> > >> > diff --git a/lib/string.c b/lib/string.c >> > index 9921dc2..462ab7b 100644 >> > --- a/lib/string.c >> > +++ b/lib/string.c >> > @@ -825,6 +825,17 @@ void *memmove(void *dest, const void *src, size_t count) >> > char *tmp; >> > const char *s; >> > >> > +#ifdef __HAVE_ARCH_MEMCPY >> > + /* Use optimised memcpy when there is no overlap */ >> > + const char *s_end = src + count; >> > + const char *d = dest; >> > + char *d_end = dest + count; >> > + >> > + s = src; >> > + if ((d_end <= s) || (s_end <= d)) >> > + return memcpy(dest, src, count); >> > +#endif /* __HAVE_ARCH_MEMCPY */ >> > + >> > if (dest <= src) { >> > tmp = dest; >> > s = src; >> > -- >> > 2.10.0 >> > >> >> Is there anything more that I have to do for this patch? >> > > Probably a patch like this needs to go through Andrew. Send it again > and CC Andrew Morton . It would be nice if > we could CC a better list than LKML but I don't know which one... Few > people read LKML. I will add Andrew. Get maintainer script gave me a small list of email id for this. I don't know if there is a better way than using get_maintainer.pl. > regards, > dan carpenter Thanks a lot for your time Dan. Thanks, PrasannaKumar From 1585072028845077980@xxx Sat Nov 25 20:41:23 +0000 2017 X-GM-THRID: 1580346948986428938 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread