From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C362C4338F for ; Fri, 6 Aug 2021 14:24:13 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68F8D61184 for ; Fri, 6 Aug 2021 14:24:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 68F8D61184 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2CDE82F2B; Fri, 6 Aug 2021 16:24:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="bTaGxV0b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1ED2182FC0; Fri, 6 Aug 2021 16:24:08 +0200 (CEST) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 02AB580C68 for ; Fri, 6 Aug 2021 16:24:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x729.google.com with SMTP id c130so1710693qkg.7 for ; Fri, 06 Aug 2021 07:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LqP6qcPqrrT7BwBJW046ILb4tuWdfyQD9q7RswhCIJw=; b=bTaGxV0bGMxxqBlbpi44nPE6WQ5HOt9rYiR8Do4PFR5mvsQDveSvp0yufkdAQv7+tm f+i9voSxS7Fhjz1znDv/f1/bOahRdlDuEad1IPKY380QEgk9cRNVuAWOoBvuHdBpdzAP p4TE/y6FFbDjoJiB9Yo3D6CyALPcu5rgKbuL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LqP6qcPqrrT7BwBJW046ILb4tuWdfyQD9q7RswhCIJw=; b=pOsXv2RnIvZ3dWdktnHaScWq6jz4GdMoId/sw19bw0au5PqoTvH28zCYwJBJIMemye 5a63t78y/fgTdEBvB4vJKzkdUDvlK/sSqdhTsXP7tCjMNe+cMMRnahgKrLOpZMITElU2 17/nOst7RUj1U2LAs7sRsjnVI9/l1eiKVBy3/nNWPSa4/4sPS21IjALl9ILvCuievw4o z0qVZYedHeOpCONKjekytJgZqBmTQxMo8/FBFW9rAGQ+LtFoqhP0LLra8lZbybpnhK0C L6fTV+L3NI7icspZ3NufFQL6qxL37W++mqKdg8mE654s/kQHch/H9HltO+LC/TeFy6Ru m26A== X-Gm-Message-State: AOAM533q/A2kir6nVnDVZVTaeNJobFfVSetDATJ+jsG6wLe7IKDxK2p5 ChoLOhiVhwcNJ43ReWLSuI4gNQ== X-Google-Smtp-Source: ABdhPJweJ6gGZHGbsT3bo8U5rnKWn5PzcsTekfZxPHH4FTY8vOBv3l5MwyuC3FfQibfcAsEmphOYgQ== X-Received: by 2002:a05:620a:1a93:: with SMTP id bl19mr9982290qkb.37.1628259843742; Fri, 06 Aug 2021 07:24:03 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-91f5-8795-37c3-31a0.res6.spectrum.com. [2603:6081:7b01:cbda:91f5:8795:37c3:31a0]) by smtp.gmail.com with ESMTPSA id s20sm3402839qtw.52.2021.08.06.07.24.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Aug 2021 07:24:03 -0700 (PDT) Date: Fri, 6 Aug 2021 10:24:00 -0400 From: Tom Rini To: Stefan Roese Cc: u-boot@lists.denx.de, sjg@chromium.org Subject: Re: [PATCH v1 0/5] arm64: Add optimized memset/memcpy functions Message-ID: <20210806142400.GX858@bill-the-cat> References: <20210806133843.3642916-1-sr@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="H7DA0n3a+SnB4bJ2" Content-Disposition: inline In-Reply-To: <20210806133843.3642916-1-sr@denx.de> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --H7DA0n3a+SnB4bJ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 06, 2021 at 03:38:38PM +0200, Stefan Roese wrote: >=20 > On an NXP LX2160 based platform it has been noticed, that the currently > implemented memset/memcpy functions for aarch64 are suboptimal. > Especially the memset() for clearing the NXP MC firmware memory is very > expensive (time-wise). >=20 > By using optimized functions, a speedup of ~ factor 6 has been measured. >=20 > This patchset now adds the optimized functions ported from this > repository: > https://github.com/ARM-software/optimized-routines >=20 > As these functions make use of opcodes that need the caches to be > enabled, they can't be used in the very early boot stage, before the > caches are enabled. Because of this, a simple memset() version is also > added, in this case memset_simple(), and will be used in very few > selected places. >=20 > Please note that checkpatch.pl complains about some issue with this > imported file: arch/arm/lib/asmdefs.h > Since it's imported I did explicitly not make any changes here, to make > potential future sync'ing easer. Traditionally, we grab the linux kernel's optimized functions. Are there not a set to grab there? --=20 Tom --H7DA0n3a+SnB4bJ2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmENRfYACgkQFHw5/5Y0 tyxELgv9H4vscQPV77YhdEC3W9ERm+ctehPhuLnnG7FM6EhgtKVbBB8NrOa8GJfH ea8E7LnFAww+SBZzo5MQduImxAJW/aS+80h1Zux/42eT0JKc1ZkGIIEYsqeyIf1e 3UDH2pB8QkCif630N6uxmF50FadC3D70S2HRzspaY2P5PameS1YdakzcCPMwvaO8 rRhApLY7ujBqvTchHZBv+3DLmQG+/BfAVjW1jGVVHJa84p7UaB4brl5gD25gaFEi WY0nmlzWXlmE3BGoGzPgqyLev1ZMIGOwDUzwX523kh+1wykUxO0mkdaJDpk9vrPZ CSTah/lgVK+JJVHYHmcqfQtNar0VLVqOXGQFZ6bahNjAMzsKNEeh/ja8YAYcpcLX mK14M/u6GzlsqiNDtFIBW/s9UiKBfXMuqKEaEeiO/9R4YR6irsikHW4qlzvS4Fas rPRpAadhGZGXYdO8ua/x0rEZhNCjgOqlJcX+hgf0SB7vMm82Y1eQw7jYNLSGHqiC NNDl34pW =vN2L -----END PGP SIGNATURE----- --H7DA0n3a+SnB4bJ2--