Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1017058pxb; Thu, 5 Nov 2020 21:17:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkZS9cc3fWLk9LvEfkTTr85qaZzrAuFsLe8kr7qMF7lDKcqJ3KEClzuePBzP3cWwJX3bTQ X-Received: by 2002:a17:906:415a:: with SMTP id l26mr330023ejk.442.1604639822766; Thu, 05 Nov 2020 21:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604639822; cv=none; d=google.com; s=arc-20160816; b=YnTIFipazIlHXieNQ7iO5G5310vfhhQTPY3uSs8Txcv239nhtWZU0YbGgcTclAwXMN jhVONk3CaCH9DqKPgJuDa98H1tbOjGPU5B+rbDciLQIUKDIp4+dUJNeP2UdJQUobPcaE Mr8J+ee/d6Zbnmf72/SDmczkh6T3x8U+ovZO/USmyZbSj1NR+X85ERVlGtoWLWVAJWrJ eawp2HB/hgCq62gGchyJ91pn7F+ZTxi8K4g8jVqDscLhN8M8V3cg2nM5/4+VE6+WKWkD qmUgz49TWm7vGzxyd1wJMk5VtLBBKo6sVc8/QIcHEArBkM1nmRtrM074qZuc1TemEOxp rPsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nZGs+FaFeIXL1i8d3k/VNNYTJpJYMl//yE1yX406CWA=; b=uKeVwOaCnCx3va4uMAirmay+TdkGP26w9lbBfkhahw4b5utTuLZogI93vNwncx9igv geLAj8djUrwnOsAtaw64YCoawebE7mdvfSUepzY+O7AIZVFfQzeJlrVtsbzm5xombp4P gtIdRlNSeUxxY5xLLMMvHSlqpu2MXeI6z1MaiHdrczm+vRAXj3u2J7pwHbY9wwop8IQg b+s3NtxfjzN8UzM9P23bKvBKjElW2qFq2KmKIlg5iGmClVahxIU8joG9S/fH6b6f7V3Q 6Q98eP/BAx8AVPRY9Q8HfiM4YsiAcN06h0FY22EKfUZYqeqeHfTRsQGEJxiiFCDthl3d 96DQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl10si73460ejb.138.2020.11.05.21.16.39; Thu, 05 Nov 2020 21:17:02 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726177AbgKFFOs (ORCPT + 99 others); Fri, 6 Nov 2020 00:14:48 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56518 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbgKFFOs (ORCPT ); Fri, 6 Nov 2020 00:14:48 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id BD5F01F46653 From: Adrian Ratiu To: linux-arm-kernel@lists.infradead.org Cc: Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , clang-built-linux@googlegroups.com, Russell King , linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 0/2] arm: lib: xor-neon: Remove warn & disble neon vect Date: Fri, 6 Nov 2020 07:14:34 +0200 Message-Id: <20201106051436.2384842-1-adrian.ratiu@collabora.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, This is my attempt to close the loop on a relatively old discussion [1] caused by a compiler bug [2]. In a nutshell, the Clang build issues a bogus warning about GCC while it silently botches the neon auto-loop vectorization. :) Many thanks to all who have investigated this issue before me. Arnd posted a workaround for xor.h [3], but I very much like his first suggestion of disabling the broken feature until the compiler is fixed. Tested on latest linux next-20201105 using bcm2835 & versatile configs and Clang 10.0.1 P.S: While testing aarch64/imx8m I also noticed vectorization is broke there as well, but that deserves its own patch because it's a separate xor-neon implementation (if this approach is deemed sensible). [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190528235742.105510-1-natechancellor@gmail.com/ [2] https://bugs.llvm.org/show_bug.cgi?id=40976 [3] https://bugs.llvm.org/show_bug.cgi?id=40976#c6 Kind regards, Adrian Adrian Ratiu (1): arm: lib: xor-neon: disable clang vectorization Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/include/asm/xor.h | 3 ++- arch/arm/lib/Makefile | 3 +++ arch/arm/lib/xor-neon.c | 13 +++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) -- 2.29.0