From patchwork Thu Aug 17 03:25:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ding Tianhong X-Patchwork-Id: 110291 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1621836qge; Wed, 16 Aug 2017 20:25:43 -0700 (PDT) X-Received: by 10.84.217.152 with SMTP id p24mr4151157pli.400.1502940343813; Wed, 16 Aug 2017 20:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502940343; cv=none; d=google.com; s=arc-20160816; b=Ieqti1dS4DWrzqyZtnR49Sl+h9ibLivyjLPOVvDKpcJa9Y4fSIjCBf4PAn0Udmc4TP 4/uvSZP/yafKCP2KGez/wEqScGZpURGj0/3XG8CyllNZ3rGVuJ9KMKa7zrUWFveliEC4 QhVtN6oyFd3S1ED0xnPq7vw2thjKXFG2mYEm/HiXtars5ljb8yNDvyKJXFBiRkd7Z3sG LJ6qifV9gXFixIRber/TruSaBOG1BgGQgAlDruXCWOf7FxRGBGDPS61w8Y2UeITZulFT lS9MyfXguKiLcUiW0ArS5769OzHdbqMa6kMt3NhcnAz7ZfLEwhyaD4Y25OZa12B2gZHF 4omA== 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=1IkhNrfs9e0E2WbII5X076OyuF6IDXGbDiDJSA8ZJYw=; b=Osm3khrvT0NGt6UFWHF7HtZ643cLL63aInWLh/qOUut28YtM084PRYVbKfWzcQVAVL Z8S+xt8x6UrYWP6jVAZ1CKrte265EUBNrV0QtYD4zA+51rJ4vZ6nTiubMU2wUNAmkQhI xQMqM7f7a5fRTS/ui7yUkwIySZyxZy0cxbpL1HRHgySJrwWalddH7H4xS7fLjX++7U/y qLB/avxlG16YO4ByKI/0568zSadKtZD6uuKWgQ8XIN+zw+JDAlFUta2V/exQr9qeoIVQ 5+NISDL8o2tsnNNGS0YALn2N4qcJ6VtoyUZ1CPjVSY4brmWe9mjxkL/yyfkOGTA4Uu7L Sl+Q== 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 p125si1292975pga.923.2017.08.16.20.25.43; Wed, 16 Aug 2017 20:25:43 -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 S1752272AbdHQDZl (ORCPT + 26 others); Wed, 16 Aug 2017 23:25:41 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4014 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbdHQDZh (ORCPT ); Wed, 16 Aug 2017 23:25:37 -0400 Received: from 172.30.72.58 (EHLO DGGEMS404-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DFI21410; Thu, 17 Aug 2017 11:25:28 +0800 (CST) Received: from localhost (10.177.23.32) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.301.0; Thu, 17 Aug 2017 11:25:20 +0800 From: Ding Tianhong To: , , , , , , , , CC: Ding Tianhong Subject: [PATCH net v2 0/2] net: ixgbe: Use new flag to disable Relaxed Ordering Date: Thu, 17 Aug 2017 11:25:14 +0800 Message-ID: <1502940316-13384-1-git-send-email-dingtianhong@huawei.com> X-Mailer: git-send-email 1.8.5.2.msysgit.0 MIME-Version: 1.0 X-Originating-IP: [10.177.23.32] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.59950CA9.0057, 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: 8287b181d8e01e25fc7b7c74fa44550e Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Ding Tianhong (2): Revert commit 1a8b6d76dc5b ("net:add one common config...") net: ixgbe: Use new PCI_DEV_FLAGS_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