Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3816703pxj; Tue, 15 Jun 2021 09:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPoqWSjcWJ/zS1li/LtifMRIQHkQphz6Z233EeIQJfVNWTTOryMsDBZePs941VTSXCl9qX X-Received: by 2002:a17:907:6f6:: with SMTP id yh22mr287400ejb.257.1623773661067; Tue, 15 Jun 2021 09:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623773661; cv=none; d=google.com; s=arc-20160816; b=wHXaAkc67XNXn8oohXYNx6lThmwqoupq2i9KPz3o8ubxDh4YxyXScPsRHcKk29RYQj q6WWcKkucmh++9b7p27rGtEGdkKr0joLv3D9PRuAftYnrUjIf/jXRWnLQ2AT3r2JP6uY BUQAMlQB0pBcadB78GXWlHvSEHmh90Q7zsHDPcj9wsNP4aZeNGV8jQSb7u+gtgOM0m2x Gd89E6DA94uDVJNmPLNzwcQp4t9HEt5G0q1tb0cqcsmBZusVK/KKLaAOdvo0PU20iEqv /+nn2u0fftdixSZ0idPzhsU5EIoTtEXnXeWT13j/Qrnoi8hyoxQR5PQUTifR72h6Tuk3 xL2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/Wv7CHWzkockHzF8pGG/3fcdtGeJKMuare4U3i4RVgA=; b=r3u0APXMjkHJp4FSyOD0uQbExD4EU2j8nV2gfmV347a/oPfhSpwo3W0isV1wkIR1io ojxGj9Osm08R2Oc14O2Tr0bzoOkwmL5u56a5KilwoJB1fRpNLlHynuop+QXxI2Fqvrl5 8MkfR2azUb/NrXt6f2zQNf4bf6hYyKJeTmyC4W3tUXfm7nZ2qsvb2S9yIhFZ7A/XP7hp IMMWr2KZbksw5NeTBugejzSRGGX8MYH8C42u2V48NjeJv/Oo1CtjEWEUYGkCsvqkkGfT VI7yADdrBMp1FPaMZVngMoR6Pkk8DjilM0xxb/xSVqCE6OTyWkclLsFJV/P8DZV2G63m m8sA== 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 t26si14990590edq.83.2021.06.15.09.13.56; Tue, 15 Jun 2021 09:14:21 -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 S230186AbhFOQOs (ORCPT + 99 others); Tue, 15 Jun 2021 12:14:48 -0400 Received: from mail-yb1-f178.google.com ([209.85.219.178]:37863 "EHLO mail-yb1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhFOQOr (ORCPT ); Tue, 15 Jun 2021 12:14:47 -0400 Received: by mail-yb1-f178.google.com with SMTP id b13so21314600ybk.4; Tue, 15 Jun 2021 09:12:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/Wv7CHWzkockHzF8pGG/3fcdtGeJKMuare4U3i4RVgA=; b=UCGRMHje62eyMwKro/B+MJhQjmxxSp5Rm821t9QFKYUhWbT59WOvtDVarRAatvjTXk 1icJkJmsz9XvlX3b3KYN//zZe1N/i9eDq2rYTpiAiVxcn9ebv2Z3cb2lYUgHpXPvxxMU Gw+98wBkXd75EW0ZXXoUypN8rWtKWZVse+jwyRGden7n1dveo1He/FMSsfwy+LQCOZrL jWw3BgXAEAXMv5ZCiOk+rw50ZeRChid4u6sRh4t7Azl43Vx0psK+7b2mvrbO7ECGAB5p H2mMJs2LwEsJoY8ID9kXQVUuI3NWrzPwp2k50lbPJP/GD1Yakogr9AZQPWMZVdmQuomh BptQ== X-Gm-Message-State: AOAM530oei9rFdjuELizIlJ6B9kYnkxHDM8UT5xWcU1DOjpztr6YfWPb BXU1jt/f/VyZT/xHNZNihuK265q29Kmo/wCWSyw= X-Received: by 2002:a5b:d11:: with SMTP id y17mr33994254ybp.18.1623773562254; Tue, 15 Jun 2021 09:12:42 -0700 (PDT) MIME-Version: 1.0 References: <20210615023812.50885-1-mcroce@linux.microsoft.com> <20210615023812.50885-2-mcroce@linux.microsoft.com> <6cff2a895db94e6fadd4ddffb8906a73@AcuMS.aculab.com> <1632006872b04c64be828fa0c4e4eae0@AcuMS.aculab.com> In-Reply-To: From: Emil Renner Berthing Date: Tue, 15 Jun 2021 18:12:31 +0200 Message-ID: Subject: Re: [PATCH 1/3] riscv: optimized memcpy To: Bin Meng Cc: David Laight , Gary Guo , Matteo Croce , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Akira Tsukamoto , Drew Fustini Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jun 2021 at 15:29, Bin Meng wrote: > ... > Yes, Gary Guo sent one patch long time ago against the broken assembly > version, but that patch was still not applied as of today. > https://patchwork.kernel.org/project/linux-riscv/patch/20210216225555.4976-1-gary@garyguo.net/ > > I suggest Matteo re-test using Gary's version. That's a good idea, but if you read the replies to Gary's original patch https://lore.kernel.org/linux-riscv/20210216225555.4976-1-gary@garyguo.net/ .. both Gary, Palmer and David would rather like a C-based version. This is one attempt at providing that. > > I'm surprised IP_NET_ALIGN isn't set to 2 to try to > > avoid all these misaligned copies in the network stack. > > Although avoiding 8n+4 aligned data is rather harder. > > > > Misaligned copies are just best avoided - really even on x86. > > The 'real fun' is when the access crosses TLB boundaries. > > Regards, > Bin