Received: by 10.213.65.68 with SMTP id h4csp752168imn; Fri, 23 Mar 2018 15:27:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELuh4AAgsS3GTiIdSaGTVO8dNo9ZnRWTCzv9k87ZFKE1q5pJO2UjL5hrb8VPJO+ENmBo/0Dd X-Received: by 10.99.95.22 with SMTP id t22mr2249660pgb.315.1521844061100; Fri, 23 Mar 2018 15:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521844061; cv=none; d=google.com; s=arc-20160816; b=d8naCqKzK6WYUulL8ihDGHvMSGjel9lxp0SC+gVbOCLVxR5QuRUcFQ1qQQ8suOtq+w F8nHTTivCIt+Jpu6QQeq0IB+588pfR8fQtOjxArKjPMPLXhloC2s7sgtx2Av1++5Qu3b 2DSLeiucvHX6Vi7L+2Oa2THhO2jL0oztsNtE1M7BpN9a3jUw5XnqYkWYVFFF2LSFgTRS SjYVJdeAnpQFtYJHvr/Wakub0ImxC/X7XP0/rj2OWTRTn84InvHnNXIOTL9kNbi27/vf 8gf5O3CVthnxQ0FfxJM9MnoQcFbWtaRjuCyJkAneqw3i1VyQgVGuwaSrlVGiDKbuKmtL d0Kg== 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=bXyrNFaRakh4IFZEHcElhd3H6m5vIvdYOzcdw6BLPGw=; b=CxLg3eHDcrmSCmxKGuSxubS4nMewYTqht7Zk++aiV54T2lGBhSIPIP1YdldPt0eJal PXO213YSR+yjOro7MGsRPIWgsA+3sgg9Q+r4XZLnXPmd6VyRifnBanQtxO6xsqLj6p4B T8nHXBXjARiIBnwOE1C9Elee5DSEfO+yi6USPKvGgB5ZGRctWpJFVi1FUHAwiS6hMnjm sdLIP1xqcDQBZisx9lLDBT6Lrivzu2bD2gFwUpl42lBtHvuq+smo9I8p8G1MjkjFwEst MyRAN6WUWPcoq3sfDWpXMi+55qo6B026+7sMbahchiPiSVTh+/KBVXUvGjJsO/q5zjMM NybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCVpY0na; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCVpY0na; 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 b189si4321398pgc.586.2018.03.23.15.27.26; Fri, 23 Mar 2018 15:27:41 -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=OCVpY0na; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCVpY0na; 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 S1752705AbeCWWZV (ORCPT + 99 others); Fri, 23 Mar 2018 18:25:21 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35708 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeCWWXU (ORCPT ); Fri, 23 Mar 2018 18:23:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D1E7860F61; Fri, 23 Mar 2018 22:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521843799; bh=UFFOJEvdJGTDlskSZ9RxFXJXMm/Hcw+E4NHzfNse+5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OCVpY0naVEP9PWZUgrF90cgtlZgZlw1aee180d/q5hlFJqZua2oHvooCq7DMkbvSv pM9cDUIrLwwL+0sGP8ur5joU+aTc/UpJjP9uqKnoZ6n8WEOPSu8J3/sKvTYj6SPe89 kn9Sv4zeu8xEtBeg/e1dRaMJVQEow8C0xWgrL8tg= 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 15BA960312; Fri, 23 Mar 2018 22:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521843799; bh=UFFOJEvdJGTDlskSZ9RxFXJXMm/Hcw+E4NHzfNse+5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OCVpY0naVEP9PWZUgrF90cgtlZgZlw1aee180d/q5hlFJqZua2oHvooCq7DMkbvSv pM9cDUIrLwwL+0sGP8ur5joU+aTc/UpJjP9uqKnoZ6n8WEOPSu8J3/sKvTYj6SPe89 kn9Sv4zeu8xEtBeg/e1dRaMJVQEow8C0xWgrL8tg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 15BA960312 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 v6 2/6] qlcnic: Eliminate duplicate barriers on weakly-ordered archs Date: Fri, 23 Mar 2018 18:23:07 -0400 Message-Id: <1521843791-21201-3-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521843791-21201-1-git-send-email-okaya@codeaurora.org> References: <1521843791-21201-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 Acked-by: Manish Chopra --- 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