From patchwork Sun Aug 20 10:10:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ding Tianhong X-Patchwork-Id: 110478 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp18907qge; Sun, 20 Aug 2017 03:11:57 -0700 (PDT) X-Received: by 10.98.74.155 with SMTP id c27mr3391234pfj.126.1503223917043; Sun, 20 Aug 2017 03:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503223917; cv=none; d=google.com; s=arc-20160816; b=j5u4nis65ndv1iBC/rxamExqrVph+gRef9BWxnMXXgCGYtreOjObag9+kI3AAhFTsC 4jpjlEMJ355ihAgHItY8vDEJNfaxiaOXcoBs+jU6/78Jf5enC2f4U9IUCiNjKrrblWeQ JdXgxzA4XTuCVPZ6vBYfB9di3s6OvGZW47Nylea7VXL/DCXc3K0Rp+82Ka2F4434MhKD e9NYjXAreVF/dtqeTIRB6LcvkDPPxSXUH3B3lwLPtN0OTF6SEhq3yMh1zaDimfCbuymF 2Bg+9vvk35gsFs2TZ3EhDgKdQ+HIoXogztGqGxwoEO454OQsy1zlp2nqHsa2VDVnS1qV Eucw== 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=jzCjApT0YFJY6/6f47pEVDoT/J7+AjD98+lCa8Xubbk=; b=ybLt1u/SXVKEfs3VYxPB2lFaJcwdme1Y+oUdUptZI8j68rAAM4EeJSUCkssuv3IdPK 91KerBPlzEdVd9/qrYQNJW641ct2cUq17wNFpk87dftO4j0HsJMWeF675rL4IrWwsvWi RMziNiIdbNVn2X4HCdPtANE8/jFkq2iWgPx1Hx1GtRtfye2VznqQbTHlrdZ9rqf+PQOb BwIkeH5Jdw/G1wqGxfKZLglROJEPK3VZHhpIx6/KcnoiUom6eUW/yRlFaUdzCGh1ieNQ as0kWK5kHW2fNyMq3+xDLnu14jm0ZGMeSZRPlw5OWhCa2gMNOuH24XHiVnSc13yII6F3 CIrg== 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 s8si6458422plj.696.2017.08.20.03.11.56; Sun, 20 Aug 2017 03:11:57 -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 S1752663AbdHTKLW (ORCPT + 26 others); Sun, 20 Aug 2017 06:11:22 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4514 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751634AbdHTKLT (ORCPT ); Sun, 20 Aug 2017 06:11:19 -0400 Received: from 172.30.72.60 (EHLO DGGEMS401-HUB.china.huawei.com) ([172.30.72.60]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DFN22686; Sun, 20 Aug 2017 18:11:12 +0800 (CST) Received: from localhost (10.177.23.32) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.301.0; Sun, 20 Aug 2017 18:11:01 +0800 From: Ding Tianhong To: , , , , , , , , CC: Ding Tianhong Subject: [PATCH v3 net 0/2 RESEND] net: ixgbe: Use new flag to disable Relaxed Ordering Date: Sun, 20 Aug 2017 18:10:53 +0800 Message-ID: <1503223855-24616-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.0A090205.59996040.005E, 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: 5b2c237215551c7f1f62c3f65825ace1 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. 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