Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp733029pxb; Wed, 20 Jan 2021 20:28:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6E9sd+yGr5dBOOiN+k51rHY7fnkf8KABPwiD//jdDA9i8aXDe1tyPHGgGrkuqzts0qWkV X-Received: by 2002:a50:fb0e:: with SMTP id d14mr9455801edq.369.1611203288794; Wed, 20 Jan 2021 20:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611203288; cv=none; d=google.com; s=arc-20160816; b=qzXWscxFVRemmNR8TxzVyoon9juqA10qq3cUFqgtYQXdm2ThTzUZVf7LHjMGYH0RyQ hHVgzyxGTocCJ8mwIg1alhWq4k9o9OjB5Y02Rh1Gdm9vk8Il7JeWDVGDkBGXOHsG4rTS iB/p9LbyolX71k0c5Z+tBZ31s9r5MpuVj6elhODjGPoTnq4ylLef0oKG8WRoS7L89WHg oHyl8jUqGRJnRLIMWjEw0hvripq+8g0UPGrGHQPj1LxkT4ofdmwguevj1W2MPAAoCF3/ 1qEQF9soRcXw1WN5HzYQPdTwvAbhCDOQeI6XyO81661ta54L5fmt0K80jzaE18wT6gcF L/dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0ruSWkvxK7Tj2d5WiCdrWnjESQKPua96iUP2imnkCtM=; b=qUPrG7n88zx7mIKMKXVZAmUpV1tXapjKyg1vM2FjlpT9b/q/aW/se5uw0Q/wrnaAI7 imZ3wgUqqe9JZzoeG6mCUe3/Nh6SC3gXFU4OJL6cWE7+Wcnl75hDpd9XL3hMUA/l6VIx nZG/hnpuWrTtxBHbOn4uQ8YFAU97ELk51KG7th7RoB49nIKG6RL3WcofZ3Df0bLbSMyU DuqHn4iOnKukmX4EYqPzxug1Nx4+8UqlIpbG6h1vrV3ZVmF3/r4MaJ0xxGUlog0R53Sr ZCGHMaCt+ch1uo6NfMYrQL4a61WAITF8pEP0SzE/KWtAzBBcFhcRRjLsBa/j/Vnuhgos 6z0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=thRPG2ix; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si1358681ejd.342.2021.01.20.20.27.45; Wed, 20 Jan 2021 20:28:08 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=thRPG2ix; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729119AbhAUE0T (ORCPT + 99 others); Wed, 20 Jan 2021 23:26:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732701AbhAUEZX (ORCPT ); Wed, 20 Jan 2021 23:25:23 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F54AC061575 for ; Wed, 20 Jan 2021 20:24:41 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id g15so791766pjd.2 for ; Wed, 20 Jan 2021 20:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ruSWkvxK7Tj2d5WiCdrWnjESQKPua96iUP2imnkCtM=; b=thRPG2ixZmZ5O9C8k8fShWS7WfDE3xez0UCXRdEywxhpqP2n5AUYErMXBPaKP903eH 5PO5YVhsoMJcXps5uTI+g6ffOL/xILzU3V1zsedKiyB2hmr0gdCaibu/Ffv+3MOdHHhy L9EX/M7YBMhmots7hLdQGUUWEae3D3M0SmMxHMraAcBUusLDWsilyDBMGqpr2rkevARD SDSL28jNtovi0Zm0ZBGtkaSBijGYe77W98I4zSarrrL3C7iQYT+MZtn0nNHvqMs7wSyS A6VfLsOZOaf/cqnkg0tUSe9NJ76BOBW5b7/xt9JEs0PH1T0v+L8yzx2hPoScubnGVNTK lyiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ruSWkvxK7Tj2d5WiCdrWnjESQKPua96iUP2imnkCtM=; b=hSqSUry2w7zDxkqCKMSjw1dPHIbIAMp4gxZu6QgDDEkg8dc8eck418zmOC249wg8gU ZMOE+DS6R9vp+S1VNKrGkicgzOXvgiBYWPxFpIH2qtc616S7dHFUFM8qJDhzcok+SjrL SFevMH8awkSa76eEfG+/nCGLWmrzKKyGit3819SnwbZkaQctxz/k8yc9VxlOFnDxqcAb ZdpcQpJEerbC2YkmjIx9l6Wzs6lRpscmI+5ghwXX1expcsD+9nIt8zE6M+L06A5qqbcX tgjkWDwrbUeac/QwdX4Q/4VXGTRvCDJRPODEKwxk3MNf+LiuQFADseruB2XDpGueQPaY jc1w== X-Gm-Message-State: AOAM531EaXSmINAZy0PORWpO0NklCkAp3AT/HPgzfz0Xo9NiZRhFY5cQ lgXJrI1gBoOI9LXl0UYrgpdQMHpRVi4ZxX86Bretig== X-Received: by 2002:a17:90a:31c3:: with SMTP id j3mr9279888pjf.25.1611203080496; Wed, 20 Jan 2021 20:24:40 -0800 (PST) MIME-Version: 1.0 References: <20210119131724.308884-1-adrian.ratiu@collabora.com> <20210119131724.308884-2-adrian.ratiu@collabora.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 20 Jan 2021 20:24:29 -0800 Message-ID: Subject: Re: [PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning To: Arvind Sankar Cc: Arnd Bergmann , Ard Biesheuvel , Adrian Ratiu , Arnd Bergmann , Linux ARM , Nathan Chancellor , Russell King , clang-built-linux , Collabora Kernel ML , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 8:13 PM Arvind Sankar wrote: > > On Wed, Jan 20, 2021 at 03:09:53PM -0800, Nick Desaulniers wrote: > > So I'm thinking if we extend out this pattern to the rest of the > > functions, we can actually avoid calls to > > kernel_neon_begin()/kernel_neon_end() for cases in which pointers > > would be too close to use the vectorized loop version; meaning for GCC > > this would be an optimization (don't save neon registers when you're > > not going to use them). I would probably consider moving > > include/asm-generic/xor.h somewhere under arch/arm/ > > perhaps...err...something for the other users of . > > We can't directly do the patch below since there are other users of the > asm-generic/xor.h implementations than just the neon file. If it's too > much work to check and add __restrict everywhere, I think we'd either > need to copy the code into the xor-neon file, Yes; I'd rather copy that code into xor-neon, or someone under arch/arm/ at least. > or maybe do some ifdeffery > so __restrict is only used for the neon version. -- Thanks, ~Nick Desaulniers