Received: by 10.213.65.68 with SMTP id h4csp44523imn; Wed, 21 Mar 2018 11:59:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELsPI0CfPReBd51HPnysnJ4fQlJjgKs/3ivE92nrd2EiVrDY6VBbuOSMIe7Gl44OC7MHc44C X-Received: by 2002:a17:902:5501:: with SMTP id f1-v6mr21571877pli.50.1521658778547; Wed, 21 Mar 2018 11:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521658778; cv=none; d=google.com; s=arc-20160816; b=FrSauyDGFpncoQdqkrxVw2E/YSaw8KXJGbHcaNYclBwl7ZyTpa8jsVMQvIotmK4xK0 wDXg0F9FOhO+fX0pSxoFM2+brls0lkfddqcNaJbiwkoajuLRA17kUwal4Vv7jNlnuJHk rKg81FfReJJlAcxQvdAcQhKJasq6YIyEN1r01Lsgn0Z2eRZnxLK6pvRXGSz8ipRtiwh1 9NG/ILDe4qaBCRVsws7it4tF0gPFYRfSA7A0R+YjaUYchHB+Z5qGF6/l27QwHtH7FTe/ Uw60de2Djlt1AJ1Yr++ElzO78+Tr92ewFmJlu76IQCDYy5EMz7XnZASbXvCh6eUBGyje xRwQ== 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=fHLRu1uZi+3miU8uI3vhOrZ7V24MmO5j8zFMDr6KD+g=; b=MaUGmt4dG976eLKnbjSO2++g/h0nY49EfBkUGIc67qm/w+MivOSzSqBtDpEMvWWUW3 buirRPhf9PJRHlLb/NbO4V+BcoSqA9kTM3NUUkT9C3JfiSQ7pWmf/gwOvgs2wvyo9nxB 6Yy1wE2XoEWxJxN2i/IDhmJeYORYYibWMPL1DZGGDKjlOnH/B9F78rg4vpitICmemTej btKNCKSXtZZfmjwxGqynQuE62CtZurR636dw7GSOJVz1UMuOUlE0In18M2ZJ5BX8HUMO zpCy8b7DAT74vpDi0GBNm45HmBOA+xxlU+K5TnESjHxMmYtCBbrlbGD+26viKmaqvs55 2yMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bxpEbBvk; dkim=pass header.i=@codeaurora.org header.s=default header.b=bxuDbobN; 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 v2-v6si4265292plp.113.2018.03.21.11.59.24; Wed, 21 Mar 2018 11:59:38 -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=bxpEbBvk; dkim=pass header.i=@codeaurora.org header.s=default header.b=bxuDbobN; 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 S1753242AbeCUS5l (ORCPT + 99 others); Wed, 21 Mar 2018 14:57:41 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59036 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753034AbeCUS43 (ORCPT ); Wed, 21 Mar 2018 14:56:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 713A360FEC; Wed, 21 Mar 2018 18:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521658588; bh=/dk6LFTwdGuq2DfBfF7yg7MAPz5m1QtQ1ahc8Y6Agf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bxpEbBvkVTd41+Sqgx1Wq2je+D8zTVt3zdUkDK8edqeEasC6u4rjIwUGHN03qJKGE fbxWxJa/cjwLcSLcdjhd6GRDuQzOpP4GpbEiAD/OnK+cS4rSpP/pEUU3X6o2WCAVjY LTE95MdJzmjf3hN0u33yHuKM9UHR0kleGdtajmIM= 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 1E81360C55; Wed, 21 Mar 2018 18:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521658587; bh=/dk6LFTwdGuq2DfBfF7yg7MAPz5m1QtQ1ahc8Y6Agf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bxuDbobNqpgPAtje1kKJQz6dBdsouUQhSnV1mrjd5/koSKPfjRaZzPB132yVVtRQN 5OQIJdsTsFOW02eJ2KTEYubz1xyGmtlsuRX7Ox7OnxZkw9G91gDCln9ZYKO1kO4fKC IerNJs0dTLA8//hzvrNYN6LkNOiUT0mLFRMEQFoc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1E81360C55 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: jeffrey.t.kirsher@intel.com Cc: netdev@vger.kernel.org, timur@codeaurora.org, sulrich@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH REPOST v4 5/7] ixgbevf: keep writel() closer to wmb() Date: Wed, 21 Mar 2018 14:56:09 -0400 Message-Id: <1521658572-26354-6-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521658572-26354-1-git-send-email-okaya@codeaurora.org> References: <1521658572-26354-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 Remove ixgbevf_write_tail() in favor of moving writel() close to wmb(). Signed-off-by: Sinan Kaya Reviewed-by: Alexander Duyck --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 5 ----- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h index f695242..11e893e 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h @@ -244,11 +244,6 @@ static inline u16 ixgbevf_desc_unused(struct ixgbevf_ring *ring) return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; } -static inline void ixgbevf_write_tail(struct ixgbevf_ring *ring, u32 value) -{ - writel(value, ring->tail); -} - #define IXGBEVF_RX_DESC(R, i) \ (&(((union ixgbe_adv_rx_desc *)((R)->desc))[i])) #define IXGBEVF_TX_DESC(R, i) \ diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 9b3d43d..6bf778a 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -659,7 +659,7 @@ static void ixgbevf_alloc_rx_buffers(struct ixgbevf_ring *rx_ring, * such as IA-64). */ wmb(); - ixgbevf_write_tail(rx_ring, i); + writel(i, rx_ring->tail); } } @@ -3644,7 +3644,7 @@ static void ixgbevf_tx_map(struct ixgbevf_ring *tx_ring, tx_ring->next_to_use = i; /* notify HW of packet */ - ixgbevf_write_tail(tx_ring, i); + writel(i, tx_ring->tail); return; dma_error: -- 2.7.4