Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp12162imm; Mon, 14 May 2018 19:55:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq4SPwgT2FVX/5auCxvpdV1EZk68pFgIydvXNEoTOfbzHgBBWDeYUDiaiiSdQtjmIWkxxl7 X-Received: by 2002:a62:4916:: with SMTP id w22-v6mr13021282pfa.63.1526352917473; Mon, 14 May 2018 19:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526352917; cv=none; d=google.com; s=arc-20160816; b=TChhm4dmZYI/pLhAdywOXXfTKsrv88wsJ1CgVyBnUCi15lqxeoBBa+7Y32xE9G6oRr KE+pHlU4AQNbmj1IvdmxSLu3aGvZDvTdFmZ706J1xkB2ScIEfXKO1I5KooDlKUQo8VHB NB/Zsyn4z5XQaz+Jz7b93KYwVmDf81Km38tsefxG//1nZNkvwUdB8EngOakC1lyJogV7 mq8UTAf9XjYSdpL4wqbowN+Z/ZX464iBWmbYWxH6WS7/xeasRxTplzE39b8RZIsfspG1 QfUT4eYz4/oebl1PNG2lKs8xdadUboYUvnHrX8ZMRO+369NBbG6ILhu8evy3IOQXKKgz vQVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=odBnYYwwzV66K7T7+FSyQNkiQAQZgIp4IxnLY7i9Fc0=; b=yaKPzJLdPZDk75IthfV+Ezlo+J9VtOwiS9+Dkyvlx4O2y4rznNlqQhikmVDHnWk3wX aLfZpmiSGGEoTJTfD/eI2a1HgFRRk/MfodyB5yUUp/951tnC8bVAtH3/HgQhuQaazaov YLsomZv3fLvpe0xdHS6tyUtiaLZP4NMqNjZ5x9RS7GxevrMfVhWsTSY/5N8EFjGgmSFW 8R3kjN/C7ziFmYg27X0vmtSLm+9D4hR/9L/RhdGXfQAfVHCpI5FQfdB3B/icesjvw6U/ vXdYLTmUmY3Zdzxu/1grojfxvvynhc/XI29Vrt2v6ID4LRGDkLxc5JLQ+giMtxOoFqnm zDOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18-v6si10627608pff.208.2018.05.14.19.55.03; Mon, 14 May 2018 19:55:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbeEOCy2 (ORCPT + 99 others); Mon, 14 May 2018 22:54:28 -0400 Received: from ozlabs.org ([203.11.71.1]:47239 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752298AbeEOCyM (ORCPT ); Mon, 14 May 2018 22:54:12 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40lMbK1nZ6z9s1R; Tue, 15 May 2018 12:54:03 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S . Miller" , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Chris Zankel , Max Filippov , Arnd Bergmann Subject: Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64 In-Reply-To: <20180514184634.2160-2-bart.vanassche@wdc.com> References: <20180514184634.2160-1-bart.vanassche@wdc.com> <20180514184634.2160-2-bart.vanassche@wdc.com> Date: Tue, 15 May 2018 12:54:01 +1000 Message-ID: <87lgclpr1y.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bart, Bart Van Assche writes: > ... > diff --git a/Documentation/features/locking/cmpxchg64/arch-support.txt b/Documentation/features/locking/cmpxchg64/arch-support.txt > new file mode 100644 > index 000000000000..65b3290ce5d5 > --- /dev/null > +++ b/Documentation/features/locking/cmpxchg64/arch-support.txt > @@ -0,0 +1,31 @@ > +# > +# Feature name: cmpxchg64 > +# Kconfig: ARCH_HAVE_CMPXCHG64 > +# description: arch supports the cmpxchg64() API > +# > + ----------------------- > + | arch |status| > + ----------------------- > + | alpha: | ok | > + | arc: | TODO | > + | arm: |!thumb| > + | arm64: | ok | > + | c6x: | TODO | > + | h8300: | TODO | > + | hexagon: | TODO | > + | ia64: | ok | > + | m68k: | ok | > + | microblaze: | TODO | > + | mips: |64-bit| > + | nios2: | TODO | > + | openrisc: | TODO | > + | parisc: | ok | > + | powerpc: |64-bit| I think that is correct for powerpc, we don't have a 32-bit implementation and there's no fallback it seems. > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -150,6 +150,7 @@ config PPC > select ARCH_HAS_UBSAN_SANITIZE_ALL > select ARCH_HAS_ZONE_DEVICE if PPC_BOOK3S_64 > select ARCH_HAVE_NMI_SAFE_CMPXCHG > + select ARCH_HAVE_CMPXCHG64 So shouldn't this should be: + select ARCH_HAVE_CMPXCHG64 if PPC64 And it should be sorted alphabetically, ie. above the previous NMI entry. cheers