Received: by 10.223.185.116 with SMTP id b49csp1698344wrg; Thu, 22 Feb 2018 01:25:16 -0800 (PST) X-Google-Smtp-Source: AH8x227k9n9/VGd6M3yUxRxK3awSPKb95zTWoTtEerWWEk3Q4T8Q23+/y57dgnynMkaqXWymXPKk X-Received: by 10.98.23.136 with SMTP id 130mr6209205pfx.43.1519291516599; Thu, 22 Feb 2018 01:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519291516; cv=none; d=google.com; s=arc-20160816; b=DbCgxXFifUbzY4xEHibimeUCkgpHS7Gw+j26NFJWZJx0fCXDrHh5+bXzspik04nUqL yw1hl5+Os+01Rbu3wvasE+hoM16t9vaR+JDSpAClg1twe5+84MZrJm0fyMlwPunED7kE xr5XOiWUwP+tb45RCoY3GFUQTMOVLFZAn1+uQdL7ryIQK0lCSA1cOArzpnozv/OeX/VC dkRjjXNp4yYw7HJ6cmQkBJptzHbMkjtsJaVWvoZXmDBA2f+RbqZeHGWcBU0HU2FL5lqr AkjPygEzl9CZ+eW98nsmI2eot9rHi2d8ORD8tyGQX2YKkrITa66/+aEM8tI6TcCv4Wim Ejmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=WBahpxuDhseEcizWjDx7mJAYAAbhtHMTnnVFLvqeM0k=; b=vGLD2prb7of57L6fT6gQaNL2OGM+DVWzksUO7eJ2+CvNoPXYUN50HJtYDhcYdKSrAz ZXUf/3kE6bgw0B/dldIQdMV+vApV5ltBy4fB3kDsjMxMiPFTy8yqw1v9EwvlxLrp1Mdu e+Bnbu/D1BelwV42QRtLFFhpggX7FfAp2FRBF84jvTP7p0yHqdfOlEM6kkFYFxHx39jf f83o6cY0e+PvyeLxb91a8diYhUhopgN2ONwzBSEZAYcq+UI+y9bIuPslUld2+TPyq1eI ZBW3kNVH2eA1l2Ge2hJEv3K3CPZ3PDkcrL6iQANn9vIjHRr7mjcdRkC5GCRyc6RRRzMm cU1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nflXKgUr; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba2-v6si4493757plb.107.2018.02.22.01.25.02; Thu, 22 Feb 2018 01:25:16 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=nflXKgUr; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753146AbeBVJYM (ORCPT + 99 others); Thu, 22 Feb 2018 04:24:12 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33650 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753078AbeBVJYK (ORCPT ); Thu, 22 Feb 2018 04:24:10 -0500 Received: by mail-wm0-f65.google.com with SMTP id s206so1537706wme.0; Thu, 22 Feb 2018 01:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WBahpxuDhseEcizWjDx7mJAYAAbhtHMTnnVFLvqeM0k=; b=nflXKgUrLUDOPQwJ48PrFugYMY4+2DFXg8maCAvDJBu6Pz+QeAcs8Qeux5DhBNu02v xNPConp/s9lIP7IIu0Nz6kP1bUHkVwaFcaJsI4I3i/lHgPhjY38GTHvqDkzJjzFNcHtP QSivfQG4R88jdpwoGOrKdTf2G5v2SV+EoBXGQ2GnJWC6D3puHlhClsoY1m8zZ1YIYaLM PCy8j+PEQvZDhq78VnQbSqr3r+maswqT3GGLnZ3zkX9oSCqcK1nk/7jM6+Fe3Ep9JnIZ BWNDVOSvrGU4jlqbAQVSRV630/+knRlfxGeVskO3ffEck6wWEhvJPnO0sVknjlRY8MY0 lvBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WBahpxuDhseEcizWjDx7mJAYAAbhtHMTnnVFLvqeM0k=; b=XtliCzuvPzduUvAx7t+dp9eUEdtt7grbplw33TYt1pj65BTP47yEZe/2MZeIGOE1nJ b+1jF8izoQ7qEuiISZf/PqKKPQVnoi0Xd9FqWfloGzIuK9NVRZ5iMEpn8V01h4ursi6l OihRd+44krBoqTPaOopFBoVrf4GfKZks2NAZwlZ+hfk+iHH02Ekpa1Z1NNsV6vrr31pz Z7YG1TIu2GXPO5qbNcQuyyoD1LUcGlyJDd3Gw+f0g7STFJmlJDkmXGAaxHiQmCA8dKPT 8Rpv5StUIlZPtfl/Worplyg6XbsrsDjITZbMDITNUmsAtj/v2k8A/lczgcpw5Hq56ffk jDIQ== X-Gm-Message-State: APf1xPCXj9xRRdHFqwxdief828rdR6QJnF5/bcSr6gdDCnKLVZl4p+kc Q1yQ8+f9EvsqiUeTOJQ7S+k= X-Received: by 10.28.53.138 with SMTP id c132mr4103368wma.108.1519291448720; Thu, 22 Feb 2018 01:24:08 -0800 (PST) Received: from andrea.amarulasolutions.com (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id 67sm30205816wmg.13.2018.02.22.01.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Feb 2018 01:24:08 -0800 (PST) From: Andrea Parri To: Ingo Molnar , Peter Zijlstra Cc: Will Deacon , "Paul E . McKenney" , Alan Stern , Ivan Kokshaysky , Matt Turner , Richard Henderson , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Andrea Parri Subject: [PATCH 0/2] locking/xchg/alpha: Additional fixes Date: Thu, 22 Feb 2018 10:23:41 +0100 Message-Id: <1519291421-5638-1-git-send-email-parri.andrea@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, A couple of two more fixes, on top of tip:locking/urgent, to Alpha's implementations of xchg() and cmpxchg(): - The first, suggested by Will, removing the macro '__ASM__MB' in favour of smp_mb(); - The second, reported by Will, adding a leading smp_mb(). Compile tested only. Cheers, Andrea Andrea Parri (2): locking/xchg/alpha: Use smp_mb() in place of __ASM__MB locking/xchg/alpha: Add leading smp_mb() to xchg(), cmpxchg() arch/alpha/include/asm/cmpxchg.h | 6 ------ arch/alpha/include/asm/xchg.h | 37 ++++++++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 17 deletions(-) -- 2.7.4