From patchwork Mon Dec 4 15:00:04 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: 120561 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4537381qgn; Mon, 4 Dec 2017 07:01:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMb7v7JCCzO5gfY4eA0GymHwyNoTPItk70Mamnu8VSdj/kA2mMrjbd+BVAWpzgTtpBqZu6tU X-Received: by 10.200.50.39 with SMTP id x36mr13731063qta.255.1512399684891; Mon, 04 Dec 2017 07:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512399684; cv=none; d=google.com; s=arc-20160816; b=otbGcibCZNZWxsg8bxQpNzsZCwDoCOpsb2u7mUObvPJlbqPyrQfZkc6jWuVzn8QFgK z9xKYuoUdPR5P0Dhun6J96PgfB7HH/XXQ9Q6oHi4/RJIZGWUAD+xc96dtLFOkw0jzVGF km9e/A1FmeH1PQGmHZwsSsccz9EgL3MqVm59lZysTCls+CyjuN3DM92bcDWMkta39ADs z5g5YUybhxmXZcLrBUt8+k7EK001HG3PZe/SfDVA9ZlEHmW+OoU2zgLwIm5qJxX5d2H4 pKqiakuVKXiUPIcspfvg0GkNjYaQ61PD5ui1qpgPad4gu7jQGZtaYmV78Mx5GNMSza6l Nfpg== 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=PpMykhtagHfS0ELul01YEgjbTUSC62fp+h5a378wFvo=; b=JAbnllNzQ6mUP2hCmB4Z40SBA733+zh9QeqmOv7/6wTZWl9iypcz2HyOfEcfy1xI6Q gWKv8yhGdnLLvRXwZdVTlO8OWK/8fr0LIcLQ7eFbwx3v7tnYV77ZopMfGjuAQnIJdqkb DWd7/C2q7mHZGZ9z67SR9+cmMe8l2p+jCH9OLl066BzCCmnwMs46EeDcEQ38fbxyDmIK 1viODkPH0IoQnYFPOSJEUVzIlS+mC/PRFPgB06ZKca8b4r8h0ORYuyT2dW3SRpbI2SQt 9RWZKFtWNIGIta3VBL/OsH2iEVbJOh8QM0B3o0WbtI76ZKtuMnEmDy30UdHPqKwMKEN0 mh5w== 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 f67si1373737qka.349.2017.12.04.07.01.23; Mon, 04 Dec 2017 07:01:24 -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 A172B60655; Mon, 4 Dec 2017 15:01:23 +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=-3.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED, URIBL_DBL_ABUSE_SPAM 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 78AAA6066C; Mon, 4 Dec 2017 15:00:27 +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 E3CD96066C; Mon, 4 Dec 2017 15:00:14 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 10E0760655 for ; Mon, 4 Dec 2017 15:00:13 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 739792D81F07 for ; Mon, 4 Dec 2017 18:00:11 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nv9fYeJu98-0BGqFAVY; Mon, 04 Dec 2017 18:00:11 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Hseuacluka-0AEq51V8; Mon, 04 Dec 2017 18:00:10 +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: Mon, 4 Dec 2017 18:00:04 +0300 Message-Id: <1512399608-12981-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512399608-12981-1-git-send-email-odpbot@yandex.ru> References: <1512399608-12981-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 321 Subject: [lng-odp] [PATCH v2 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: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 280c62aa5d2ea89ff05e376a74d7c6bbd29f002f **/ 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],[])