From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id C7B82B47D for ; Fri, 5 Feb 2016 16:56:45 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id p63so33127729wmp.1 for ; Fri, 05 Feb 2016 07:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=GR8EzFMldy85GvfP9oOHzYY0ANofHjGClHe3UDZO1bw=; b=0CU8htzKVaabiDnh7jK80CW4lLYU1G9C44bTLloTiWvzqDl7W9VgzDu7BHiO+Fd3Oa bddLo+1QzI1WAQbmCRiR7Dsw/m3UOdgqFdKy9j94o3y01tX2VQiRdxFtaJYY2VyHMaDZ gMZkD0NT8OdUFCEH1GLA0ltQnMl8YFZ2oq3X3LFfKh0TDPm/VNZ3FJ320Z9o/ppzNTW5 V6jhCFvnHAuJnsTvtRy+e8imGPOXRH4Ut+FgHMNCelSaCVTLWlsNBy/c+pGVw8H8jLCc 05LNOWnp+8sxVvPafegoWqnkaOEq8fAVt7S6pXXakHNnylFQeL+/u3/8dUPVPjxGg1HC Q2tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=GR8EzFMldy85GvfP9oOHzYY0ANofHjGClHe3UDZO1bw=; b=gtUnIwmcBZY+zq1vZN6d+nNmTT93dUZR9g2tIvD6L33QNPI5A8B55aDHaQKL8c9l/o Vs5XqRRND/oAwFCc0rjpShQm15z32lKh7fd0451A4FYwpoWRAyWcVAR2P5Nanh5iQytu TluUx3tjoQj4cLJnKpi/Y00OFvAl3qvVFe5BRgrZjhEy4yqnIU2Miv8+Bh4XU5Nce7/u VbRESp5ngHro9e4QVTYEFukBqYYuvJdf4Qtu9bsoJYBY0l5FrFJaaqLM3wCHmElMngtQ xA5IOhwPhDm606Ddmf3YyIt21euFNJrH9yybaSPPs/Uhlfvb3fW+5l5LMqiLCEVxPWo5 Y/ZA== X-Gm-Message-State: AG10YOTnFjEHYlRbLO6x+2srO268zFw7F32/42KoXTztu8s30rngIEVutL03fw3yj1F6VFFx X-Received: by 10.28.6.213 with SMTP id 204mr16928323wmg.47.1454687805603; Fri, 05 Feb 2016 07:56:45 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id z127sm31447286wme.2.2016.02.05.07.56.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Feb 2016 07:56:44 -0800 (PST) From: Thomas Monjalon To: "Ananyev, Konstantin" Date: Fri, 05 Feb 2016 16:55:28 +0100 Message-ID: <1492687.rAoTrH7ulh@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB97725836B0465D@irsmsx105.ger.corp.intel.com> References: <1454684049-27195-1-git-send-email-thomas.monjalon@6wind.com> <3AEA2BF9852C6F48A459DA490692831FFBEB4C@IRSMSX109.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725836B0465D@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 15:56:46 -0000 2016-02-05 15:15, Ananyev, Konstantin: > From: Pattan, Reshma > > From: Thomas Monjalon > > > _mm_prefetch is defined only in x86 compilers. > > > rte_prefetch functions are defined in EAL for each arch, and must be preferred > > > over compiler intrinsics. [...] > > > - _mm_prefetch((void *)bufs[0], 0); > > > - _mm_prefetch((void *)bufs[1], 0); > > > - _mm_prefetch((void *)bufs[2], 0); > > > + rte_prefetch0((void *)bufs[0]); > > > + rte_prefetch0((void *)bufs[1]); > > > + rte_prefetch0((void *)bufs[2]); > > > > Some time back Jerin Jacob has sent patch for replacing the _mm_prefetch with rte_prefetch_non_temporal. This is FYI. > > Yep: > http://dpdk.org/dev/patchwork/patch/9369/ > http://dpdk.org/dev/patchwork/patch/9370/ > > And on IA _mm_prefetch(p, 0) != rte_prefetch0(p). > I think, as in Jacob implementation, it should be PREFETCHNTA. Oh yes, you're right. Thanks patch rejected