Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbbKKIub (ORCPT ); Wed, 11 Nov 2015 03:50:31 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:54005 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253AbbKKIu3 (ORCPT ); Wed, 11 Nov 2015 03:50:29 -0500 From: Arnd Bergmann To: linaro-kernel@lists.linaro.org Cc: Z Lim , Alexei Starovoitov , "Shi, Yang" , Eric Dumazet , daniel@iogearbox.net, Catalin Marinas , Will Deacon , Alexei Starovoitov , LKML , "linux-arm-kernel@lists.infradead.org" , Network Development , Xi Wang Subject: Re: [PATCH 2/2] arm64: bpf: add BPF XADD instruction Date: Wed, 11 Nov 2015 09:49:48 +0100 Message-ID: <4902833.k8y8bz0YLV@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1447195301-16757-1-git-send-email-yang.shi@linaro.org> <20151111004208.GA47378@ast-mbp.thefacebook.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:1sUqvTLothXr2GNHZJeonwHku1J1aheausEOxEDObm7r5Dkur1J SNQcWHgkzUwOorxb6t2bsMcAsINuLEoUjf7R1U3gsYfGG7NTTqnxCeBd9KNerW7RCOaj1mW 0+CjiJVrHfoQ/9e9rv763WmoWmu3b043vNVLKPCAs6hGZ5Ip5RTbMu9P+xqKaLxzIwr0f51 z567YZ7xH0X5De+17G0RQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:JpW9SahBwgA=:/TycDismMFZemqzfgfyEd2 gRyJHaMBks5gfWHhtlriqPRKgGjo5qcSIciSUxkg2ku3FvmNbklB2pxJDFChHIUqWp2l9XgcZ iDrVxPy3t6Si6s/AY2gkCyKN/+Mbcmc/dgVjxipJiDtB22NOAqmmYRiCMn8VI9/8OiWIio6OK dYWhocLalMJy6rgdrIhoQAKIpkLg3SRzRuYS0P6rAbrjC+XnHLgNd3ZKA7qO37Poc75SDCCkw L8gRfVO0t7zTaK0PBy/QQbd8yg4m3ZL92tX+7PhOPL95kouJ5LrLtKBU5C9TszpXKSnosJLD4 +zF3CwEwvW5NWfohYdVzIajuKW6Er85EcxaK1J/pHqZjYHjcX3Q9+sYCF30VMOuSjsBMIv656 NEfvwHzWo0hcc1bedjgOkHIxW/b9Z1D4+8OvKC7FslCCT7ZZsDEghwRffqeVEa5W/zziyfRd3 K/QJhHSn3u+o8lx0YudBIYcCc0v3G7ndKwD4B7gLqLyhW1UeXchcOAn60XkZAdpM1rWYbu78Z R/nap/hYSNfGEiY+XaNTPoHEzzQzFaPmBfcskxsr+3zvu7ooY3ilbsu8fwM56cwzpaxxf1sRR 525coU6/59vxWgLdV6xgRiuALF96AWKDxSbZ0Z9JSAP3jkpfdrvUJCrMUrmSyNmUHj3eVryOe 8E2l20uyd61kQlECMQo0/LxeQqqAzxEFFxBVgczu1HV7mymYhE9RVoB3ssKPZ69vbXYRNmK+V gCK1bPmiJA8zrG3Q Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 21 On Tuesday 10 November 2015 18:52:45 Z Lim wrote: > On Tue, Nov 10, 2015 at 4:42 PM, Alexei Starovoitov > wrote: > > On Tue, Nov 10, 2015 at 04:26:02PM -0800, Shi, Yang wrote: > >> On 11/10/2015 4:08 PM, Eric Dumazet wrote: > >> >On Tue, 2015-11-10 at 14:41 -0800, Yang Shi wrote: > >> >>aarch64 doesn't have native support for XADD instruction, implement it by > >> >>the below instruction sequence: > > aarch64 supports atomic add in ARMv8.1. > For ARMv8(.0), please consider using LDXR/STXR sequence. Is it worth optimizing for the 8.1 case? It would add a bit of complexity to make the code depend on the CPU feature, but it's certainly doable. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/