Message ID | 1503037265-11144-1-git-send-email-dingtianhong@huawei.com |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp498821qge; Thu, 17 Aug 2017 23:22:04 -0700 (PDT) X-Received: by 10.101.90.141 with SMTP id c13mr7250003pgt.325.1503037324086; Thu, 17 Aug 2017 23:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503037324; cv=none; d=google.com; s=arc-20160816; b=HyWuQjJjd7zVuGh0Lg8uSIcbFzRjtP4zIrORN/OVe8XEJ7lMtQnyl4kAAe39ukAmmn bpRXzvaCEZ+moenvQzsXWwZrGrC1eyg+reoG5p7OMFh/kg3dBBLdQ33O5CWWXZdJ6a0S sRcKH3hyzzImPtv+G/AIsWPYGlP06c5UfwkdzuOQDI75uyNM8FWtfSwS7JSaiU9vv2qn j8wFAlr/z3sXfu2QD7Plf9Gxe9HZQNjMrHPuXX7yZ2NAwrzUrzlF+kn218deNXLxYde6 ZKFRp3kQlpLtNnk9pOlr7Zvjy0Z1I4ioLQjVVOpjq+GzXL5Rb8HMAYOv0imqFD5k5bUL s6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=GV32AzODDVfqmEmM839omUsR8Sg8izReN5mEUzNVz+M=; b=dpp81tHXk7cawOKhpire12JsrDshO478TAUtGtEZr1F2b3hT1d5K9FCcyTLNGuJPaz Y2hEhZitJhq7czW5Ce2HfC4RYOOKIvRgbJGeNE5kKE0F/vqc5fZxz+Dsw4PvJsZRFM/9 X+KOb6u5tYgQonULIEZn9rA86g8vwhlK28m+gCdpYDo7i15MdHEDo1Gm+nL+vaYo4i8t 2ePQdZQQ5pk7OvOmorTiG1DYBuHZ8Vo4V8PO7YpRde7u2ib3yojhjiubajr9GOfn/5p7 dG2k9aG1ygpFQRgSURgz25ORDSXefXFE0lzDG8mVGaJ+Aujd7A2RCW5P6abfFt188G77 xNGQ== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si3030328pgq.414.2017.08.17.23.22.03; Thu, 17 Aug 2017 23:22:04 -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 S1751706AbdHRGVe (ORCPT <rfc822;daniel.diaz@linaro.org> + 26 others); Fri, 18 Aug 2017 02:21:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4064 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbdHRGVa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Aug 2017 02:21:30 -0400 Received: from 172.30.72.59 (EHLO DGGEMS409-HUB.china.huawei.com) ([172.30.72.59]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DFM12707; Fri, 18 Aug 2017 14:21:20 +0800 (CST) Received: from localhost (10.177.23.32) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.301.0; Fri, 18 Aug 2017 14:21:10 +0800 From: Ding Tianhong <dingtianhong@huawei.com> To: <davem@davemloft.net>, <jeffrey.t.kirsher@intel.com>, <keescook@chromium.org>, <linux-kernel@vger.kernel.org>, <sparclinux@vger.kernel.org>, <intel-wired-lan@lists.osuosl.org>, <alexander.duyck@gmail.com>, <netdev@vger.kernel.org>, <linuxarm@huawei.com> CC: Mao Wenan <maowenan@huawei.com> Subject: [PATCH v3 net 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering Date: Fri, 18 Aug 2017 14:21:03 +0800 Message-ID: <1503037265-11144-1-git-send-email-dingtianhong@huawei.com> X-Mailer: git-send-email 1.8.5.2.msysgit.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.23.32] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.59968762.0008, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 86399f4ca219e80949a2b521be5293b1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
net: ixgbe: Use new flag to disable Relaxed Ordering
|
expand
|
From: Mao Wenan <maowenan@huawei.com> The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to indicate that Relaxed Ordering Attributes (RO) should not be used for Transaction Layer Packets (TLP) targeted toward these affected Root Port, it will clear the bit4 in the PCIe Device Control register, so the PCIe device drivers could query PCIe configuration space to determine if it can send TLPs to Root Port with the Relaxed Ordering Attributes set. The ixgbe driver could use this flag to determine if it can send TLPs to Root Port with the Relaxed Ordering Attributes set. v2: Simplify the original program according Alex's suggestion, remove the new ixgbe flag2 and only check the bit4 in the PCIe Device Control register. v3: Remove the code that clears the bits in DCA_T/RXCTRL, relaxed ordering should be enabled by the HW when the bus allow it. Ding Tianhong (2): Revert commit 1a8b6d76dc5b ("net:add one common config...") net: ixgbe: Use new IXGBE_FLAG2_ROOT_NO_RELAXED_ORDERING flag arch/Kconfig | 3 -- arch/sparc/Kconfig | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 37 ++++++++++++------------- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 32 +++++++++++---------- 4 files changed, 35 insertions(+), 38 deletions(-) -- 1.8.3.1