Message ID | 20210806133843.3642916-4-sr@denx.de |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=bJCs/xu1; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gh65k23cTz9sPf for <incoming@patchwork.ozlabs.org>; Fri, 6 Aug 2021 23:39:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15EE583125; Fri, 6 Aug 2021 15:38:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1628257138; bh=swyhe+fQOYxmW2MZQsHaP2pyelM2sMNjgDUa2FE7JJw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bJCs/xu1WZY3oDJUkh7cukT0/TINzdY+RLZxlR3pr/afOK7h1d0emEWkrB8KTt0wq DaMSQdaHeDHKA2J5LlRBYd50ujZf119B8z6FYO+kE2TYLObyNHCsyrdfSfi26MDxrc KNPsAnOGczQGsbB1fxNhg7Per9t0k0aV3eXKwdya6dA508GkGmXFtEt5PH/sV+UcVN HWRC2BMWhJvzNXpbnIQEMW4D+7fMZvYtVLKgKREITllOj8YqPtDBeiqi9bdpLgIxjn S7YyEFpeUacTcLL+p92fcH5X8iq2FhkuyuoCm2YE8iM6bfGPkNRO/bjzTnmVvwiPmd xMhLpUfTb3jCg== Received: by phobos.denx.de (Postfix, from userid 109) id 3F21282FC0; Fri, 6 Aug 2021 15:38:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout-u-205.mailbox.org (mout-u-205.mailbox.org [IPv6:2001:67c:2050:1::465:205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3D6F582F03 for <u-boot@lists.denx.de>; Fri, 6 Aug 2021 15:38:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-205.mailbox.org (Postfix) with ESMTPS id 4Gh65404qDzQkH8; Fri, 6 Aug 2021 15:38:48 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 8Pw2ObZ1sKqI; Fri, 6 Aug 2021 15:38:45 +0200 (CEST) From: Stefan Roese <sr@denx.de> To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com Subject: [PATCH v1 3/5] arm64: cache_v8: Use memset_simple() in create_table() Date: Fri, 6 Aug 2021 15:38:41 +0200 Message-Id: <20210806133843.3642916-4-sr@denx.de> In-Reply-To: <20210806133843.3642916-1-sr@denx.de> References: <20210806133843.3642916-1-sr@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 36941184F X-Rspamd-UID: cf42cf X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
arm64: Add optimized memset/memcpy functions
|
expand
|
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c index 3de18c7675b9..04c437aebabf 100644 --- a/arch/arm/cpu/armv8/cache_v8.c +++ b/arch/arm/cpu/armv8/cache_v8.c @@ -159,7 +159,7 @@ static u64 *create_table(void) gd->arch.tlb_size); /* Mark all entries as invalid */ - memset(new_table, 0, pt_len); + memset_simple(new_table, 0, pt_len); return new_table; }
create_table() is called very early in the boot process, before the caches are enabled. Because of this, the optimized memset() version can't be used here. With this patch, the simple memset version memset_simple() is used here instead. Signed-off-by: Stefan Roese <sr@denx.de> --- arch/arm/cpu/armv8/cache_v8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)