Received: by 10.192.165.148 with SMTP id m20csp2021320imm; Sun, 6 May 2018 05:12:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr++Z7LKNQ0t4KOh0KTxo/2IadBWjYFjbS3Gqs4ZKkulc98ZA2qgS07/ObnrUvh2Sckg31/ X-Received: by 2002:a65:4e86:: with SMTP id b6-v6mr26686377pgs.392.1525608720021; Sun, 06 May 2018 05:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525608719; cv=none; d=google.com; s=arc-20160816; b=GwpNgW78xL+t8Kq8tu3F3FNbfYI2MIaDlSbyXf64awUz0gJJefKr/qWrUAWdUj7rZG QoEANvksg5OqfB4pIZyzjjs9xuomc4awYm8xm0L0vQDLmOPV7udz8rHOmWbd9KVNVsk5 JXEr60k4MadixE0kMDD96z5eqGH6ieiKRWrhIfdDMpu1jPzwXvVi1fqf10MycmQpW+6F OZi+oUR2feYmhKHpnMZs18BShiSWYkTGrJGnifO81F/h8u5vRnhtpz6acG7KIV9CChha vvuJlm4SsvhsDAfqzJZIHVKhUDnPObW/6sdf3Zd+Zm5o0z+0gECUY08pyL6YUbhOfdc4 tXew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ocZldnNDwxc+/OHdwH5yVkas/JKXCIYSI6Kkyk/u2mU=; b=kzSaT98KHDPVJ40g99VSfFA5+mw0633Q5QKZ605562SzWEWXFMa+0zFzccN24H5aPY RZn6gxWZ+D+kkOegkKp3SZ/C4OtzrPmLN7qTY11d7md9MDeT0edwZfFsgc3xIYW0VoKR ZVlyEmX1/6ObSWPcYfKWk4VIHu5P+6tCWkb/GXNul1AjaBg+BcODr/vKjqnDw0X9oROz lpyI8xausLGEhw02kSVNdiXwBSXUoqzZ1ezb3CFNDXVkLo+dRqBqGPphmLJC+YeSmCC9 oU8YoGid37+BRS1pGvatQhMWyy9zUqRCztmG3T5eZF4CdGxCndQ84noxEkDB8LS6hIeK khcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PT0MTYN7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h90-v6si19255667plb.377.2018.05.06.05.11.44; Sun, 06 May 2018 05:11:59 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PT0MTYN7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbeEFMLg (ORCPT + 99 others); Sun, 6 May 2018 08:11:36 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:32818 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbeEFMLd (ORCPT ); Sun, 6 May 2018 08:11:33 -0400 Received: by mail-wm0-f65.google.com with SMTP id x12-v6so12365886wmc.0 for ; Sun, 06 May 2018 05:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ocZldnNDwxc+/OHdwH5yVkas/JKXCIYSI6Kkyk/u2mU=; b=PT0MTYN7I2b+gvUS84+c7E7i7xB5GoEuO0G+uLgFI33K78JxPAFoOFr6BGRHXgSN4g T3OoCbsHagph2ncT2i1AtHyns4FhoRMwBV9g0GBnkRLlib/NVOsZrDbXJ3ysv5+hjPc5 kSmmyZOWdNnIg4Vz3V4yO3p2M616BWqfns6PHv6nU6ghMmKZROGckiSMFSjAA6QPhVUe UXmsic4MqYpj0+3MhobH7lz8GwmScsHUzxsZgs4626c8zSbp6qMaf2ToCDktet+nCmTS lM82/UAubUImP2Mg35PCstCnRH5aBQN9xjgCgnAjQ2ulFgaSmSJbwhAsc1wwH8qi7Fpu vvJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ocZldnNDwxc+/OHdwH5yVkas/JKXCIYSI6Kkyk/u2mU=; b=g57wPC/ozgEzqiqrk9nzpAPDA9S80YdSBNip9GfrdNofiRA6I8UJakSbyqUidJB1or 4Azt7GsJrtNmwghtUtpylw9DUM8S4A1l5tJU4kcrVFmsout/EcvrFeod/g0x2Hx81ACu ymrPxbKKa8X0tGJzv7ycgF2UpTGF3G80JzDvS+KDJElAPz1cCUb2tqjVhY+2rxX8YICZ 2rFLK4gD9X74vxjHui531qVeU8ryYgi3tTpquO9k4HcSARDt2U0GTptIvcsjBM/SMaAR lv8O0gT15GwfFZXY+D5SdW9wv7WrT3VQuA5LGczsbrKuViTnYr8lmRhAEg1jst2QAqrf JpXw== X-Gm-Message-State: ALQs6tB1Og4OAJ8D2Q22VtrHJUJJWIF6Zdz8Wu4FCzdITDjGNGTe1cbb N91Mf4BumqxoJwFDXbtpr+o= X-Received: by 10.28.155.206 with SMTP id d197mr20817684wme.44.1525608692374; Sun, 06 May 2018 05:11:32 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id l1-v6sm19432524wre.54.2018.05.06.05.11.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 06 May 2018 05:11:31 -0700 (PDT) Date: Sun, 6 May 2018 14:11:29 +0200 From: Ingo Molnar To: Boqun Feng Cc: Peter Zijlstra , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aryabinin@virtuozzo.com, catalin.marinas@arm.com, dvyukov@google.com, will.deacon@arm.com Subject: Re: [PATCH] locking/atomics/powerpc: Move cmpxchg helpers to asm/cmpxchg.h and define the full set of cmpxchg APIs Message-ID: <20180506121129.baacc4fxgr72rzex@gmail.com> References: <20180504180909.dnhfflibjwywnm4l@lakrids.cambridge.arm.com> <20180505081100.nsyrqrpzq2vd27bk@gmail.com> <20180505084721.GA32344@noisy.programming.kicks-ass.net> <20180505090403.p2ywuen42rnlwizq@gmail.com> <20180505093829.xfylnedwd5nonhae@gmail.com> <20180505101609.5wb56j4mspjkokmw@tardis> <20180505103550.s7xsnto7tgppkmle@gmail.com> <20180505112817.ihrb726i37bwm4cj@tardis> <20180505132751.gwzu2vbzibr2risd@gmail.com> <20180505140340.uzfhoc42xvas4m72@tardis> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180505140340.uzfhoc42xvas4m72@tardis> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Boqun Feng wrote: > > The only change I made beyond a trivial build fix is that I also added the release > > atomics variants explicitly: > > > > +#define atomic_cmpxchg_release(v, o, n) \ > > + cmpxchg_release(&((v)->counter), (o), (n)) > > +#define atomic64_cmpxchg_release(v, o, n) \ > > + cmpxchg_release(&((v)->counter), (o), (n)) > > > > It has passed a PowerPC cross-build test here, but no runtime tests. > > > > Do you have the commit at any branch in tip tree? I could pull it and > cross-build and check the assembly code of lib/atomic64_test.c, that way > I could verify whether we mess something up. > > > Does this patch look good to you? > > > > Yep! Great - I have pushed the commits out into the locking tree, they can be found in: git fetch git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core The PowerPC preparatory commit from you is: 0476a632cb3a: locking/atomics/powerpc: Move cmpxchg helpers to asm/cmpxchg.h and define the full set of cmpxchg APIs Thanks, Ingo