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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 C6283C4338F for ; Fri, 6 Aug 2021 13:39:20 +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 CB2DE6113C for ; Fri, 6 Aug 2021 13:39:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CB2DE6113C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 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) 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 ; 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 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 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 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 --- arch/arm/cpu/armv8/cache_v8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.32.0