Received: by 10.213.65.68 with SMTP id h4csp493622imn; Fri, 16 Mar 2018 09:25:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELvxLaS2zgFSLFtdVd/0ywkAe8A4VQID40tlMZEH/cjqHqiZOA3droyv9bpebpyPDKh7KxDU X-Received: by 10.98.29.9 with SMTP id d9mr2072601pfd.57.1521217509174; Fri, 16 Mar 2018 09:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521217509; cv=none; d=google.com; s=arc-20160816; b=q5xhYPAHea2vGUWoTg6YOgQcJWvQEn9SU5HaTeWnUORADtI/zq9x66PEvtQt87IsiO JRrEWW665z4WVrXtANj0fL2tLTc31/eNyDmVUJKUqz0mqnq3s7HAYwDck69xgj43BTZa pPIxiK4jb7w19arRfmN7/aySd+iQ9THd3UaxcmDt6muWJ5v5oj/jqXZsLED3HLU1MrBt KluAl5RdEDG978P441/bte15YRxpDeaO/gvj27ImEfcFRRzRiIhm8qYWFbHqeY+JMImf 5vcwYLxOD5XiIu/7gcFzeA9GhREfHIXOjexu3RPmh5HkrNJWmNzYCw55YQomomaSNogX GiNg== 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:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=oiBdzgDacNwJl62STXaaD0nr4KSiQG944k3TUeMMiw4=; b=mQBblaBcht7IJ+bGaDa+A0II9oEwiQccAjiLmyx44JEd1zQyu8+v+M9ZZbpVl+gtyl ScYdOXzfXGZCmyPOzL0qNAydmP8FXokS9vqMExZsw0GzEuNcJC0Lic6aZB7AI1nXibf9 rrpGp7NQrQMdhXEC9j7KK4DKHByjaCw26fJzhYUVCRdpzLxNFHOuZ5pvOvh8NePyH/gk huJM+AyBEJRqZa4oasN9mCrqokMrfLpQ86e+MIRyLeKhGAvu8n5ComWWNwF1bxkY3j+v vnEecIPUKICpRvCzPhvV89RA8XTgYQ9cRv7HCmpTjO1lxL9+qdYmrhLWXE11lYrKROo2 0Tyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Z5dx5Ft6; dkim=pass header.i=@codeaurora.org header.s=default header.b=Z5dx5Ft6; 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 w9-v6si6296318plp.425.2018.03.16.09.24.55; Fri, 16 Mar 2018 09:25:09 -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=pass header.i=@codeaurora.org header.s=default header.b=Z5dx5Ft6; dkim=pass header.i=@codeaurora.org header.s=default header.b=Z5dx5Ft6; 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 S1752270AbeCPQWu (ORCPT + 99 others); Fri, 16 Mar 2018 12:22:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39714 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934727AbeCPQRG (ORCPT ); Fri, 16 Mar 2018 12:17:06 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E072960390; Fri, 16 Mar 2018 16:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521217025; bh=k286ILLDOEaleKNkYdeXfmnzFmqrz4oZGuI5cDKa90c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z5dx5Ft677Q1l+5gPpgcXMvs4v3Q/GoS2VgX1XYh4CCC9o0OE6NOy8uhxiUN9RA25 Bc69NEnPmSPQAw7A7zbWpv1itGZ0fyGx2I79d51iCmm8R7ApQdxuBeOFeVMGS74uK8 kcRGNUfSPiLc5zE+Y8ptfPhNiY5M8kwGssahUZhY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1ADCD60D81; Fri, 16 Mar 2018 16:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521217025; bh=k286ILLDOEaleKNkYdeXfmnzFmqrz4oZGuI5cDKa90c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z5dx5Ft677Q1l+5gPpgcXMvs4v3Q/GoS2VgX1XYh4CCC9o0OE6NOy8uhxiUN9RA25 Bc69NEnPmSPQAw7A7zbWpv1itGZ0fyGx2I79d51iCmm8R7ApQdxuBeOFeVMGS74uK8 kcRGNUfSPiLc5zE+Y8ptfPhNiY5M8kwGssahUZhY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1ADCD60D81 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: netdev@vger.kernel.org, timur@codeaurora.org, sulrich@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , Harish Patil , Manish Chopra , Dept-GELinuxNICDev@cavium.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 11/18] qlcnic: Eliminate duplicate barriers on weakly-ordered archs Date: Fri, 16 Mar 2018 12:16:24 -0400 Message-Id: <1521216991-28706-12-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521216991-28706-1-git-send-email-okaya@codeaurora.org> References: <1521216991-28706-1-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-by: Sinan Kaya --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index 46b0372..97c146e7 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c @@ -478,7 +478,7 @@ irqreturn_t qlcnic_83xx_clear_legacy_intr(struct qlcnic_adapter *adapter) wmb(); /* clear the interrupt trigger control register */ - writel(0, adapter->isr_int_vec); + writel_relaxed(0, adapter->isr_int_vec); intr_val = readl(adapter->isr_int_vec); do { intr_val = readl(adapter->tgt_status_reg); -- 2.7.4