Received: by 10.213.65.68 with SMTP id h4csp1260369imn; Wed, 21 Mar 2018 06:39:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELvzA/15pO1Wpv7/0rmLmHBO4eycNRMtdcumNIL1Os1mKQcI0JwtQrnw7s3XDplBqChSl5W0 X-Received: by 10.98.51.129 with SMTP id z123mr17097603pfz.132.1521639558590; Wed, 21 Mar 2018 06:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521639558; cv=none; d=google.com; s=arc-20160816; b=Ed1oyiACE4gLwWOXT0RsxcOBSSgOT4TKmQtqMII5XaiSrtM9TF51pwMgs+GZJcK5XP Xtcr5K1nMj7Xs+O1yyFcsHl3r9jTymTJ4r9sMz1Y3RysdTEBfkklDjZvevbvG4I6SxJ+ v99shDjJDhiH/X8L+WhJlDj1sEhWiTPESFDwlLqVQUDMgppZ4O4N8t9J8y8341RviS/b 4RzY7qJxC7l3Hm/+s3qanVKaqtbk3JG2GlvDcg/KrlIOgIT33uLftCBlyNLxUrCnCRFS 8n92IrPIzaAgC/tXGWhicBZXaa+vAMbr9xyRAA/irMDZU5z1MU36lF8JqGQMyxczq9So nJwQ== 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:arc-authentication-results; bh=AX8xKuyyXiQTThyz4j6TwFKZqILySZcHmMvsGViyswY=; b=05O1bDxx+o9/eB+gq4VdR4mcqHtbKegfo7rdq57GzqCdqT/YVPb/XdRFKWBT6DD94w xaG1NYklivYsHlbC4LO1FzZrrGrv9mVqyLvhNLsXHDqkGYUW6rHbYWIiMUmeFgShcYLw laRwMbL7/8uw+M0Bbp+H/XvTRigxbnhP/4HJZsuMi0+rmDg5yjQSgicGXE92grd7Kzwt MKnZf7+5CW5COQJA8DkWM/bNL3NNh67dBLMSPGkCJ+yfV7NFqVg045FwQIs+jWRenbWB KRaFy8+1VlnB0GghNQgjfeylaUKrRgNWEKkBH5h+Dvise6R5A8msmUws6aSLgQlEqn1N 4jPA== 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 t6-v6si3811644plr.503.2018.03.21.06.39.03; Wed, 21 Mar 2018 06:39:18 -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 S1751884AbeCUNiL (ORCPT + 99 others); Wed, 21 Mar 2018 09:38:11 -0400 Received: from mga09.intel.com ([134.134.136.24]:52900 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbeCUNiJ (ORCPT ); Wed, 21 Mar 2018 09:38:09 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 06:38:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,340,1517904000"; d="scan'208";a="213344490" Received: from ssaleem-mobl4.amr.corp.intel.com (HELO ssaleem-mobl1) ([10.122.32.108]) by fmsmga006.fm.intel.com with SMTP; 21 Mar 2018 06:38:06 -0700 Received: by ssaleem-mobl1 (sSMTP sendmail emulation); Wed, 21 Mar 2018 08:38:06 -0500 Date: Wed, 21 Mar 2018 08:38:06 -0500 From: Shiraz Saleem To: Sinan Kaya Cc: "linux-rdma@vger.kernel.org" , "timur@codeaurora.org" , "sulrich@codeaurora.org" , "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Latif, Faisal" , Doug Ledford , Jason Gunthorpe , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 3/6] RDMA/i40iw: Eliminate duplicate barriers on weakly-ordered archs Message-ID: <20180321133805.GA25412@ssaleem-MOBL4.amr.corp.intel.com> References: <1521514068-8856-1-git-send-email-okaya@codeaurora.org> <1521514068-8856-4-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521514068-8856-4-git-send-email-okaya@codeaurora.org> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 08:47:45PM -0600, Sinan Kaya wrote: > Code includes wmb() followed by writel(). writel() already has a barrier on > some architectures like arm64. > > This ends up CPU observing two barriers back to back before executing the > register write. > > Create a new wrapper function with relaxed write operator. Use the new > wrapper when a write is following a wmb(). > > Since code already has an explicit barrier call, changing writel() to > writel_relaxed(). > > Signed-off-by: Sinan Kaya Acked-by: Shiraz Saleem