Received: by 10.213.65.68 with SMTP id h4csp514116imn; Fri, 23 Mar 2018 09:22:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELu2Egra4CVPz/vcFJ95NXRhQluZK4/2qUZOfPc+N9IZ4WNSSPeetIod2JX0c9SHEgaxieAD X-Received: by 2002:a17:902:9349:: with SMTP id g9-v6mr27611894plp.243.1521822128757; Fri, 23 Mar 2018 09:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521822128; cv=none; d=google.com; s=arc-20160816; b=KyLk+jHfbTnK5COqjp8wkchD4sYB0NPIa+O8XcOkYtMiUVyIL3g1O6tyPiLSrFsmRF SglRi9vMUscOmpY3FwqxjcWq/mZaGJIVGSC62GInAtTotrU7iEQwY9A79CeOx+B2yYU3 0KDBPeGDiwgO1mTKu9o33RDEoERCBn/m+Tb5DwMMSgNQoEUNVj9IOOoyTlUQRyqJTiAD RcTlRewHmgKNMS7dnb9draOL/bWhA9a/GtcJX4BNv48SFN5lKHXFxGmTe+dPm/tK11Ra L1syEUOGclCDGyMDjufqJ4cyaXJG2B10zX01RfVlfJYrCNq6UjjgYfxPdLXqRa6w/XO0 0d2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=vkzW6juQVYkEIJE5MpqGXU4q0wmgjWDF2tcqA/pNUWI=; b=NTCBCgl0JGp/GCw8RrIq5Tii37+dw4T2Gt7V3H7bLUf8y61rIagqARwDTs2BW3PrgM ZUs9OTJ/ZTGy5nQu/3ev5vhNp+S2QMFpFf+KQm7u2O1WWqZrfK/ufY3dFcVWZay+Ma50 0ke6vBgIJljqpRl7aV0xFuJTXLYlliEHKFI9VgfVub7hi+D/OsWl9rwaRrrGa0H3erDw KWU1+d5QYUCUP2ZRoQAxJT97T6x8ko7qj9BgrriaRu2T1bMJbXTHr5jtYKhkGoNHv+Gp 2arzzw5kctK2rjp/uauYQ5nN9V/e0uNN80oIJzPPKJVMRUbU073WMsTboh3r4HwFKBWo hfNw== 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 m8si4015616pgr.85.2018.03.23.09.21.53; Fri, 23 Mar 2018 09:22:08 -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 S1752183AbeCWQUj (ORCPT + 99 others); Fri, 23 Mar 2018 12:20:39 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:43296 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbeCWQUh (ORCPT ); Fri, 23 Mar 2018 12:20:37 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 92E5A146F9495; Fri, 23 Mar 2018 09:20:36 -0700 (PDT) Date: Fri, 23 Mar 2018 12:20:35 -0400 (EDT) Message-Id: <20180323.122035.1380806748695640531.davem@davemloft.net> To: okaya@codeaurora.org Cc: netdev@vger.kernel.org, timur@codeaurora.org, sulrich@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ariel.elior@cavium.com, everest-linux-l2@cavium.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/5] bnx2x: Eliminate duplicate barriers on weakly-ordered archs From: David Miller In-Reply-To: <1521738603-23596-4-git-send-email-okaya@codeaurora.org> References: <1521738603-23596-1-git-send-email-okaya@codeaurora.org> <1521738603-23596-4-git-send-email-okaya@codeaurora.org> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 23 Mar 2018 09:20:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sinan Kaya Date: Thu, 22 Mar 2018 13:10:00 -0400 > Code includes wmb() followed by writel(). writel() already has a > barrier on some architectures like arm64. ... > @@ -4155,7 +4155,7 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev) > txdata->tx_db.data.prod += nbd; > barrier(); > > - DOORBELL(bp, txdata->cid, txdata->tx_db.raw); > + DOORBELL_RELAXED(bp, txdata->cid, txdata->tx_db.raw); > > mmiowb(); ... > @@ -2592,7 +2592,7 @@ static int bnx2x_run_loopback(struct bnx2x *bp, int loopback_mode) > > txdata->tx_db.data.prod += 2; > barrier(); > - DOORBELL(bp, txdata->cid, txdata->tx_db.raw); > + DOORBELL_RELAXED(bp, txdata->cid, txdata->tx_db.raw); These are compiler barriers being used here, not wmb(). Look, if I can't see a clear: wmb() writel() sequence in the patch hunks, I am going to keep pushing back on these changes. Thank you.