From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1572EA04B5 for ; Tue, 3 Dec 2019 19:28:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0BF1F235; Tue, 3 Dec 2019 19:28:49 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id DC3F1235 for ; Tue, 3 Dec 2019 19:28:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575397727; 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=jAj7pCZQJ9LEQk0s9QuEUjo/jCWSCL+E+8h4ETQSJ5U=; b=TDvK74nXDNcaGoISE/QqkfNELM4KgjbmIxFh/JmWdyEifSp25UTt6Vyzd7q/zio6JDic4m JGrkXSLTJsUj3GQ5s8nF2cSmwZUss7F44KtBK6uI3HlxyJA8V1QRu193iEfLNMDxXWRc+3 3fE3uXcVNfHa1vSwii4ldp4lh2DCbEk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-386-I4qsbo8jMKyINdgbQfP_sQ-1; Tue, 03 Dec 2019 13:28:46 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1DA168017DF; Tue, 3 Dec 2019 18:28:45 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-10.ams2.redhat.com [10.36.117.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 913A95C240; Tue, 3 Dec 2019 18:28:43 +0000 (UTC) From: Kevin Traynor To: David Christensen Cc: David Marchand , dpdk stable Date: Tue, 3 Dec 2019 18:26:50 +0000 Message-Id: <20191203182714.17297-41-ktraynor@redhat.com> In-Reply-To: <20191203182714.17297-1-ktraynor@redhat.com> References: <20191203182714.17297-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: I4qsbo8jMKyINdgbQfP_sQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'eal/ppc: fix 64-bit atomic exchange operation' has been queued to LTS release 18.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/0d9b7efa224a3d5d8d= 4338ee8cb479f2225091e1 Thanks. Kevin. --- >From 0d9b7efa224a3d5d8d4338ee8cb479f2225091e1 Mon Sep 17 00:00:00 2001 From: David Christensen Date: Tue, 15 Oct 2019 14:16:14 -0700 Subject: [PATCH] eal/ppc: fix 64-bit atomic exchange operation [ upstream commit 72e69d801b235f40b6c71a7d4f6087e2fa5b02dc ] The rte_atomic64_exchange operation for ppc_64 incorrectly linked back to a 32 bit generic operation (__atomic_exchange_4) rather than the 64 bit generic operation (__atomic_exchange_8). As a result, applications that used rte_eth_link_get_nowait() would only receive the link speed, they would not receive the link state, link duplex, or link autoneg properties. Fixes: ff2863570fcc ("eal: introduce atomic exchange operation") Signed-off-by: David Christensen Reviewed-by: David Marchand --- lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h b/lib/l= ibrte_eal/common/include/arch/ppc_64/rte_atomic.h index 797381c0f..afcb8ee3a 100644 --- a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h @@ -451,5 +451,5 @@ static inline uint64_t rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val) { -=09return __atomic_exchange_4(dst, val, __ATOMIC_SEQ_CST); +=09return __atomic_exchange_8(dst, val, __ATOMIC_SEQ_CST); } =20 --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-03 17:29:54.181276072 +0000 +++ 0041-eal-ppc-fix-64-bit-atomic-exchange-operation.patch=092019-12-03 17= :29:51.765749641 +0000 @@ -1 +1 @@ -From 72e69d801b235f40b6c71a7d4f6087e2fa5b02dc Mon Sep 17 00:00:00 2001 +From 0d9b7efa224a3d5d8d4338ee8cb479f2225091e1 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 72e69d801b235f40b6c71a7d4f6087e2fa5b02dc ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index b13a80de4..7e3e13118 100644 +index 797381c0f..afcb8ee3a 100644 @@ -26 +27 @@ -@@ -402,5 +402,5 @@ static inline uint64_t +@@ -451,5 +451,5 @@ static inline uint64_t