Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp780975pxy; Sat, 14 Aug 2021 23:57:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrSuWFaiN5XwUfORcaj2QfQHIeqvsJPLmKFt4jdNbGdI2ESk4iNL8VFIFBw5w8mGOwAiee X-Received: by 2002:a05:6402:1c03:: with SMTP id ck3mr13061802edb.312.1629010648699; Sat, 14 Aug 2021 23:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629010648; cv=none; d=google.com; s=arc-20160816; b=G6fCYpe+nsgkzfNbm5+HWVWOQq3qMpjOkJ/sWekaHqfCK15ym3XgV51OpiKld43F7p O+TyciOJHDrV0JGrIKx0hv4iq/QT99qXzgJUfQlAVNJbZ9jE3XJ9DUMhCCZM43yIdtpq dKkYz+NCts39GJlTNP4avlueURmPc92v6jd7kOSoC0ViVvl14gcAk89TXPXc/DK8vRdl yU2oIztZ0ddvsyhfQCvOUlXSe2GICgj5efGvi2e/Ek9/7/PlSbH3RLfnc+AfpZVeVgTS CO7HbIHVktTWkfgv6AFopDOCbBEb4OaAIsAVLl7emnmI1DrgCns9TeDkrhsjbUdh9b3p VCbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=uZZw8gxMqcy1F/xhuVPDZSSP73E0+ubkcALWC7VD/PY=; b=R8CbTAv7HrYulFjSVMHI9Ch0LUC9Hn5jmj/WPHVExTECl+wuQpoCVbgTWKVNDx1lA7 cMZBsAwxEX0N/OPiXzZyUJeHKqiexl8P0BvuA2kQDB6+dp2DVznbyDCiRR1YGCEyQJJX tR+q3lLl00ZjDfum1mPXHjRmAOEf9nE59FwnmoDNXRHhbYZS0X4orfxy/IfwVR1WV/ur Z4fGdMaTsW58qiSg2lyoVVJ8tm8kv/JCmCTWhR0m/moEdIO+hEteIFad59FJOovhoyUQ i0FUJbe9XgoGSE3NsZuPK87RrkcPZNePw41XlSST+4bRUO40G1ebn+WuJGOFZQP5vvnM t4GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si6562826ejd.38.2021.08.14.23.57.03; Sat, 14 Aug 2021 23:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235891AbhHOGv4 (ORCPT + 99 others); Sun, 15 Aug 2021 02:51:56 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:57920 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235870AbhHOGvy (ORCPT ); Sun, 15 Aug 2021 02:51:54 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4GnScm1Dk2z1qwGb; Sun, 15 Aug 2021 08:51:20 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4GnScl6phrz1qqkg; Sun, 15 Aug 2021 08:51:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id hHSQV9_8Ah4W; Sun, 15 Aug 2021 08:51:18 +0200 (CEST) X-Auth-Info: GWNgGf1u5wZ3SJAJGg4o0/Ef+Whqz2y6LrK66NNI+d1HWkCmWlUNECf3gZjZXuRE Received: from tiger.home (ppp-46-244-191-201.dynamic.mnet-online.de [46.244.191.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 15 Aug 2021 08:51:18 +0200 (CEST) Received: by tiger.home (Postfix, from userid 1000) id 286DA5153E; Sun, 15 Aug 2021 08:51:18 +0200 (CEST) From: Andreas Schwab To: Akira Tsukamoto Cc: Paul Walmsley , Palmer Dabbelt , Guenter Roeck , Geert Uytterhoeven , Qiu Wenbo , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] riscv: __asm_copy_to-from_user: Improve using word copy if size < 9*SZREG References: <65f08f01-d4ce-75c2-030b-f8759003e061@gmail.com> X-Yow: ..Am I in a SOAP OPERA?? Date: Sun, 15 Aug 2021 08:51:18 +0200 In-Reply-To: (Akira Tsukamoto's message of "Fri, 30 Jul 2021 22:52:44 +0900") Message-ID: <87bl5z42vt.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jul 30 2021, Akira Tsukamoto wrote: > .Lword_copy: > - /* > - * Both src and dst are aligned, unrolled word copy > + /* > + * Both src and dst are aligned > + * None unrolled word copy with every 1*SZREG iteration > + * > + * a0 - start of aligned dst > + * a1 - start of aligned src > + * t0 - end of aligned dst > + */ > + bgeu a0, t0, .Lbyte_copy_tail /* check if end of copy */ > + addi t0, t0, -(SZREG) /* not to over run */ > +1: > + REG_L a5, 0(a1) > + addi a1, a1, SZREG > + REG_S a5, 0(a0) > + addi a0, a0, SZREG > + bltu a0, t0, 1b This is missing fixups. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."