From patchwork Thu Dec 7 14:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 120980 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8399031qgn; Thu, 7 Dec 2017 06:06:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZUp1HDd2xI5YOBjqkE7YXfpfACkGbrmuXC5sjAl337MrfJld39hRYiTkgqnv13G72ePe/Q X-Received: by 10.200.25.47 with SMTP id t44mr9880478qtj.323.1512655583825; Thu, 07 Dec 2017 06:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512655583; cv=none; d=google.com; s=arc-20160816; b=RSdefotKOAZUDtdmz8Pg880dsr+rrykTQg0+Nf4E0aV9q34hibb3xfx6ilcemHv010 lvDSL57mC4wU0cMrmKTMCBVWWPUs0njIetvyTT41cNLI0ulDRXhddPrqR+Tt0YMk7i49 j6TdO++qZN+3qyb8uy5wUmRTLcWDjbH7NAodnB6uZO5rUtNnsM3Y34HY5ncbuCyMNm9i izHVPsXZq2dNeImN9tEnL1NaBG4Mpdpz1y55wA/Q0iR5cI4ZYK0pkb7m/+fTsh0wRQdQ n3qxETXHyoPXEEPkOy1SuBBCpi7kLJXebHPgXN6/TnrIe7Gm8cHecJUVHpV9UwBqdn1y S0Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=R4sYuS4zQp/RUHPXJ6tYwk5lA6AeEpIZlXNkp30FL6o=; b=bH+OY9qMV3HijUM69cigMK2ywySZ0MLEUIaZk2Axg2aHMVElZ2A1hrngf1simVFayS 2qWIIBindZ6+XsUB7h7fX5m525nYxnLYqxcddlUYu9C1o94dcZiiADGBMc+JVR7abcan 6QlRFafTevwT8Xi57ofNibrMPREmlwgl+db9CLe/Ag1m+0hHfjTN/YdpUuPIuLTIIOMM cji4htomm8BsCFIUjRBvJcgR4CCvag+JjpWjhembATjmv1RRzX4hcDo52jYaxpoiez58 UVJDL8pHN558uOvwMH4WsimK2UKfqrLfbs2wX9F80pMwkqTYRI7iLvw57jXCb37SjSd6 kA5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id p15si3459126qtp.428.2017.12.07.06.06.16; Thu, 07 Dec 2017 06:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 7EA9260969; Thu, 7 Dec 2017 14:06:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id CFFF960970; Thu, 7 Dec 2017 14:01:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C4E6C60903; Thu, 7 Dec 2017 14:00:25 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 4954160923 for ; Thu, 7 Dec 2017 14:00:20 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 811F46A8295C for ; Thu, 7 Dec 2017 17:00:14 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lSY7CXkgDU-0EDiSAcR; Thu, 07 Dec 2017 17:00:14 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id N0uwl7gRuJ-0DhOOCme; Thu, 07 Dec 2017 17:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 7 Dec 2017 17:00:08 +0300 Message-Id: <1512655212-29682-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512655212-29682-1-git-send-email-odpbot@yandex.ru> References: <1512655212-29682-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 321 Subject: [lng-odp] [PATCH v3 2/6] linux-gen: apply -msse4.2 only in x86 case X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Flag -msse4.2 should be used only for i?86/x86_64 targets, it does not make sense for any other target. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 321 (lumag:dpdk-system-master) ** https://github.com/Linaro/odp/pull/321 ** Patch: https://github.com/Linaro/odp/pull/321.patch ** Base sha: 811281a22b6274b7f41b926a9cfbe09e48a366bd ** Merge commit sha: 7aed25e962c1322b020ff261d9e5ee0ab3dda1a1 **/ platform/linux-generic/Makefile.am | 6 ++++++ platform/linux-generic/m4/odp_dpdk.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 9cb501cf3..bbe6a21c2 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -14,6 +14,12 @@ AM_CPPFLAGS += $(OPENSSL_CPPFLAGS) AM_CPPFLAGS += $(DPDK_CPPFLAGS) AM_CPPFLAGS += $(NETMAP_CPPFLAGS) +if PKTIO_DPDK +if ARCH_IS_X86 +AM_CFLAGS += -msse4.2 +endif +endif + odpincludedir= $(includedir)/odp odpinclude_HEADERS = \ include/odp/visibility_begin.h \ diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index ba0fdc935..91f76e2de 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -5,7 +5,7 @@ pktio_dpdk_support=no AC_ARG_WITH([dpdk-path], [AS_HELP_STRING([--with-dpdk-path=DIR], [path to dpdk build directory])], [DPDK_PATH="$withval" - DPDK_CPPFLAGS="-msse4.2 -isystem $DPDK_PATH/include" + DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" DPDK_LDFLAGS="-L$DPDK_PATH/lib" pktio_dpdk_support=yes],[])