From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB61445BD2; Fri, 25 Oct 2024 09:04:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00E95406FF; Fri, 25 Oct 2024 09:04:52 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id D0D9740655 for ; Fri, 25 Oct 2024 09:04:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729839889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y58lbVJy/eG8aNtVbttKZMyKCCLxNOMXPHv+kAkudts=; b=YJLM/1CozkMVljypnuIs+F45+5oQOC9ZY4HUpE3f6iywY1WqEQ+mHB6hLxq6JJoJOD3SnY k5dDf177BeLmcZJrBcx8RXHSGd2ozx/lSsYtDWDaMJmCwWJt4SQGaOpZsVwJ7AEE/8IZyd 27rOFivW+oO3+Qht0mR8Ii+5TbrU2b8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-190-LjdglhK5P4e8P5g3Mx9jsA-1; Fri, 25 Oct 2024 03:04:46 -0400 X-MC-Unique: LjdglhK5P4e8P5g3Mx9jsA-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 58BEE19560BE; Fri, 25 Oct 2024 07:04:44 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.57]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E596B1956046; Fri, 25 Oct 2024 07:04:41 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@amd.com, stephen@networkplumber.org, mattias.ronnblom@ericsson.com, Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 3/6] common/dpaax: use prefetch macros Date: Fri, 25 Oct 2024 09:04:20 +0200 Message-ID: <20241025070424.3916007-4-david.marchand@redhat.com> In-Reply-To: <20241025070424.3916007-1-david.marchand@redhat.com> References: <20241024120535.2722316-1-david.marchand@redhat.com> <20241025070424.3916007-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Prefer EAL macros over __builtin_ helpers. Signed-off-by: David Marchand Acked-by: Stephen Hemminger --- drivers/common/dpaax/compat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/dpaax/compat.h b/drivers/common/dpaax/compat.h index cbabc1588b..7c8d82c2b2 100644 --- a/drivers/common/dpaax/compat.h +++ b/drivers/common/dpaax/compat.h @@ -30,6 +30,7 @@ #include #include #include + #include #include #include @@ -37,6 +38,7 @@ #include #include #include +#include /* The following definitions are primarily to allow the single-source driver * interfaces to be included by arbitrary program code. Ie. for interfaces that @@ -142,8 +144,8 @@ static inline void out_be32(volatile void *__p, u32 val) #define hwsync() rte_rmb() #define lwsync() rte_wmb() -#define dcbt_ro(p) __builtin_prefetch(p, 0) -#define dcbt_rw(p) __builtin_prefetch(p, 1) +#define dcbt_ro(p) rte_prefetch0(p) +#define dcbt_rw(p) rte_prefetch0_write(p) #if defined(RTE_ARCH_ARM) #if defined(RTE_ARCH_64) -- 2.46.2