Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2132021pxb; Sat, 7 Nov 2020 10:15:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8zrPQcLgiWcHB5pNOSKmhgwCAJwoVdZ79yoRMVtPl4CTnKopYdLEmp0x8gmG9A9Pt42IP X-Received: by 2002:a17:906:35da:: with SMTP id p26mr7773435ejb.256.1604772955674; Sat, 07 Nov 2020 10:15:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604772955; cv=none; d=google.com; s=arc-20160816; b=EWhvmMbbna8fC/sJ4J+WSTAstG1P0NZ0yj3HL/lH2E2w4GbA0Ia4jNBo1Z/vf4F0dr GJK8telEtGVtFqI9xpkhkPTZTFVO62+JrqHlINXPSGK+TRrhBCnxP3Wb4d0UnThfVsuG rkW5HOl9lgHa/PZsQjvF3B3sQSzLpM5l6knR1fNjZw+dU1rPxdU8hQhANTnBWIA0Z07h DX8okKzDQ8x7pqeCO4LHsEmRR8zpnEOYAryce9X9Jf5+xylfhGLjnR/FMs4uTsZNB+lV bEhbpzzxL5MMG7lE150d3r/ZubcUjosXx5sfinn8j+eeEhk2dCvSCOJK5BML+MokTVAv Sv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=tCmSMs8/GSNmLy5tvnPf1enZa2CuaByMEVNWLUE/5KU=; b=kD8v6fd/onLDKt5Ns+wPmQOIqkWtI3eH0nS2iznE7Vlt6a8LpBjsr/Fgd8F0j3gpNb GAUfoUGE0pZIL8Q46fsnaJpA9cQwdgozH2unOXZYwME+8h/uULG/cRtdXUVgcqSXwC23 DZLnDaVnFm+B3NBgISy2nRnFXgCxLTgJIpO4tBwuYSF3WSVwt2aEr06r/uYYzfsC1kT3 qidD/FoFKZaV9zWFtIi2kGPQ8IQ0nn2N3SDP+JJaGHt/U4q/MeunpM/RHgRUzabuqZYm 6LaLI1pI8RM+yEL3K5QQTPMEb8E/OrQh7aWjKWec/B50e/mm9Jaop+CXL/7667KntVto NpFg== 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 c7si3689842edx.218.2020.11.07.10.15.32; Sat, 07 Nov 2020 10:15:55 -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 S1728489AbgKGSMs (ORCPT + 99 others); Sat, 7 Nov 2020 13:12:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbgKGSMs (ORCPT ); Sat, 7 Nov 2020 13:12:48 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600A2C0613CF for ; Sat, 7 Nov 2020 10:12:48 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id 5B9641F453A0 From: Adrian Ratiu To: Russell King - ARM Linux admin Cc: linux-arm-kernel@lists.infradead.org, Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization In-Reply-To: <20201107102203.GV1551@shell.armlinux.org.uk> References: <20201106051436.2384842-1-adrian.ratiu@collabora.com> <20201106051436.2384842-3-adrian.ratiu@collabora.com> <20201107102203.GV1551@shell.armlinux.org.uk> Date: Sat, 07 Nov 2020 20:12:39 +0200 Message-ID: <87r1p5ujc8.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 07 Nov 2020, Russell King - ARM Linux admin wrote: > On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: >> diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c >> index e1e76186ec23..84c91c48dfa2 100644 --- >> a/arch/arm/lib/xor-neon.c +++ b/arch/arm/lib/xor-neon.c @@ >> -18,6 +18,10 @@ MODULE_LICENSE("GPL"); >> * Pull in the reference implementations while instructing GCC >> (through * -ftree-vectorize) to attempt to exploit implicit >> parallelism and emit * NEON instructions. >> + > > Please tidy this up before submission; we normally continue the > "*" for blank lines in comment blocks. Thanks. Indeed, thank you. I will fix it if I don't replace this patch entirely with something similar to what Nick suggested. Perhaps adding a checkpatch test for this is a good idea? Adrian > >> + * On Clang the loop vectorizer is enabled by default, but due to a bug >> + * (https://bugs.llvm.org/show_bug.cgi?id=40976) vectorization is broke >> + * so xor-neon is disabled in favor of the default reg implementations. >> */ >> #ifdef CONFIG_CC_IS_GCC >> #pragma GCC optimize "tree-vectorize" >> -- >> 2.29.0 >> >> > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!