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 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 9F803C432BE for ; Thu, 2 Sep 2021 14:37:56 +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 816D961054 for ; Thu, 2 Sep 2021 14:37:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 816D961054 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 E241E832F4; Thu, 2 Sep 2021 16:37:52 +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=1630593473; bh=20PQn2IUdajGx6vP9OaFeG1FXGlQEbKkAj1ouZTq6v8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=oET+mrPnAu901r94YX8xFjVvBXU4sAxCibovC5RRb/hqHmWNd/zjhlmr7qM51Jbg4 aEmLFJst/Ka7oyKulJm7Gi5eDX59wONDzr8MKlr2Dkzy6uuFo6U14ZkDTUmlCN18IR 06eQm/c3u7a+a94cVLMLpzFKFYzRqzk9cT37t/3x9k4M6rxEYcEzGkOx/S+1xFM2h4 RZmtPuNkPCuZUSvSa2gFrLyV68fIZ6peTeZr5ELV3oBL97skXG2Z7YtW6NEseZoI64 GZ4phW4xIvamBrQtUb//loYINNjiCVnysVW7JamczViYf0Cpn0ILtzgBlvYHPaqh3E f5Uohqn/jycPw== Received: by phobos.denx.de (Postfix, from userid 109) id 5BA7A832DD; Thu, 2 Sep 2021 16:37:51 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (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 4A0DB83301 for ; Thu, 2 Sep 2021 16:37:47 +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 smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (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-204.mailbox.org (Postfix) with ESMTPS id 4H0k6f72wWzQkHX; Thu, 2 Sep 2021 16:37:46 +0200 (CEST) Subject: Re: [PATCH v5 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove To: Tom Rini Cc: u-boot@lists.denx.de, Rasmus Villemoes , sjg@chromium.org, Wolfgang Denk References: <20210817084827.692859-1-sr@denx.de> <20210817084827.692859-4-sr@denx.de> <20210902141722.GA15430@bill-the-cat> From: Stefan Roese Message-ID: <160f27bb-e94d-329f-0cea-5444071a09a1@denx.de> Date: Thu, 2 Sep 2021 16:37:41 +0200 MIME-Version: 1.0 In-Reply-To: <20210902141722.GA15430@bill-the-cat> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: DB0FC270 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 On 02.09.21 16:17, Tom Rini wrote: > On Tue, Aug 17, 2021 at 10:48:27AM +0200, Stefan Roese wrote: > >> This patch enables the use of the optimized memset(), memmove() & >> memcpy() versions recently added on ARM64. >> >> Signed-off-by: Stefan Roese >> --- >> >> Changes in v5: >> - memmove is now auto-selected (or deselected) with the memcpy >> Kconfig selection as it's entry is the same as memcpy for ARM64 >> >> Changes in v3: >> - Add memmove as well >> >> arch/arm/Kconfig | 37 +++++++++++++++++++++++++++++------ >> arch/arm/include/asm/string.h | 4 ++++ >> 2 files changed, 35 insertions(+), 6 deletions(-) > > This gives a ton of build failures for me, using gcc-9.2.0 (from > kernel.org) along the lines of: > Building current source for 1 boards (1 thread, 16 jobs per thread) > aarch64: + j721e_evm_a72 > +(j721e_evm_a72) aarch64-linux-ar: warning: arch/arm/lib/memset-arm64.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-ar: warning: arch/arm/lib/memcpy-arm64.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-ld.bfd: warning: arch/arm/lib/memset-arm64.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-ld.bfd: warning: arch/arm/lib/memcpy-arm64.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-objcopy: warning: u-boot: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-objdump: warning: u-boot: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) aarch64-linux-nm: warning: u-boot: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 > +(j721e_evm_a72) tools/relocate-rela: bad rela bounds > +(j721e_evm_a72) make[1]: *** [u-boot-nodtb.bin] Error 1 > +(j721e_evm_a72) make: *** [sub-make] Error 2 I did not notice this, as I'm currently compiling locally with gcc-10. Using gcc-9.4 also from kernel.org also works fine. gcc-9.2 throws these errors. Should we switch to gcc-9.4? I could also add something like this as a dependency to the Kconfig entries: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20200619123550.48098-1-broonie@kernel.org/ Thanks, Stefan