From patchwork Fri Aug 18 06:21:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ding Tianhong X-Patchwork-Id: 110360 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp499174qge; Thu, 17 Aug 2017 23:22:24 -0700 (PDT) X-Received: by 10.99.43.4 with SMTP id r4mr7469888pgr.408.1503037344764; Thu, 17 Aug 2017 23:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503037344; cv=none; d=google.com; s=arc-20160816; b=C/k3tYwyKXM+pmv6vuDZLz+eHnsxn+7utjZEILFCcBQsc2HrmYG4UhBwLZSs7t7t2I 6LyCIgc+sxSB/DK2SJVRRFyFZ50WFeXVKkf5LQZT0A7iNRnv0NQAtM5vhHL/abkI85w5 EpdjirMmiayKQxadnWSXXAnWYoIRCrAW0c7Jtp3z+HAxMQ46dTQsuo78TekFiAR20qBp lXEiQVTbWuWyqtPPaz420L+VYlSi3i2OlLtpugH9/0nrftv/b9i0IrSMOs5S143bci/q 0Mx+zTuv8hdqDDrFvGPfpAY8kB7Udvu1VXRl4bz1EAE7V6LqxTTWxQb1Rxfcq72NnrdT abTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=i+RRu7YjSlMRtqzOYrbT38esgLWwPdi474cVUCEVmNs=; b=SOuWnjBViZ8ngbkfJHTv0l3aw0d9UYT68sFoYvReCL5+/uzPXrHo+t7CplCrtNq29h gbu9OsxK/uv0vbG3sp7m9UoQ4TaNbdL5MNkcMRUdAapgRLGnrtE4xsQiwx7kxyBQldqB CPzsmo4BSMJdPdlI1TlMvUVxGrTlogdXMRXsN/dVwAYYjCjV9A0qP+HEM6zAaAe022+3 nD2O/4Or9bryrJQNuS/DxiqFr4Sv+LBrbmZ2E8xWGBD2Poc12XfGH3+A93r7+4kxA1l2 0rx5jmt7if5Y9nCbiILDUVilUs4Otx729TtdUMCCL+V2d5IbethWFG1uTF52TaZmhFPd Kn2A== 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 f30si3322514plf.557.2017.08.17.23.22.24; Thu, 17 Aug 2017 23:22:24 -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 S1751447AbdHRGVc (ORCPT + 26 others); Fri, 18 Aug 2017 02:21:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4063 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdHRGVa (ORCPT ); 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 DFM12709; Fri, 18 Aug 2017 14:21:21 +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:11 +0800 From: Ding Tianhong To: , , , , , , , , CC: Ding Tianhong Subject: [PATCH v3 net 1/2] Revert commit 1a8b6d76dc5b ("net:add one common config...") Date: Fri, 18 Aug 2017 14:21:04 +0800 Message-ID: <1503037265-11144-2-git-send-email-dingtianhong@huawei.com> X-Mailer: git-send-email 1.8.5.2.msysgit.0 In-Reply-To: <1503037265-11144-1-git-send-email-dingtianhong@huawei.com> References: <1503037265-11144-1-git-send-email-dingtianhong@huawei.com> 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.0A020203.59968762.0018, 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: 4ac788d72f15a711c34eff86ccf5ed47 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. With this new flag we don't need the config ARCH_WANT_RELAX_ORDER to control the Relaxed Ordering Attributes for the ixgbe drivers just like the commit 1a8b6d76dc5b ("net:add one common config...") did, so revert this commit. Signed-off-by: Ding Tianhong --- arch/Kconfig | 3 --- arch/sparc/Kconfig | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) -- 1.8.3.1 diff --git a/arch/Kconfig b/arch/Kconfig index 21d0089..00cfc63 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -928,9 +928,6 @@ config STRICT_MODULE_RWX and non-text memory will be made non-executable. This provides protection against certain security exploits (e.g. writing to text) -config ARCH_WANT_RELAX_ORDER - bool - config REFCOUNT_FULL bool "Perform full reference count validation at the expense of speed" help diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index a4a6261..987a575 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -44,7 +44,6 @@ config SPARC select ARCH_HAS_SG_CHAIN select CPU_NO_EFFICIENT_FFS select LOCKDEP_SMALL if LOCKDEP - select ARCH_WANT_RELAX_ORDER config SPARC32 def_bool !64BIT diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c index 4e35e70..d4933d2 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c @@ -350,7 +350,7 @@ s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw) } IXGBE_WRITE_FLUSH(hw); -#ifndef CONFIG_ARCH_WANT_RELAX_ORDER +#ifndef CONFIG_SPARC /* Disable relaxed ordering */ for (i = 0; i < hw->mac.max_tx_queues; i++) { u32 regval;