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 424D4A0093 for ; Tue, 19 May 2020 14:58:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 36B271C1E4; Tue, 19 May 2020 14:58:45 +0200 (CEST) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id 5CEA31D62C for ; Tue, 19 May 2020 14:58:42 +0200 (CEST) Received: by mail-wm1-f67.google.com with SMTP id u1so2179273wmn.3 for ; Tue, 19 May 2020 05:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6/W8opAIugVjlQeZZfCQzJ7EBsPLW1Hz08TC6DhYjxs=; b=Vf3Wz4l7gyjIPWxBmCRHufRQBIklNti36W+NHqkduT+L4PQ/CBCtFmSyQm4h8R3Yme CiZtyxwHeOXE+mKeAV4bSKcXA4WK4dYqHvOc0IFl6AXMUhkt4H7SV6jBJ8PSR4hb1iBa 4CyKlHOOI5bWE54hjvi67wWbKjbjw/Dp23V4KqAVxM0T138H0T7+0lCkB0jgE8+20JCM 6LV4nJDhPWQ4tCbpj/1FVHyKgp76be2qG50rhfQn4uCbWU60W/MkyoW6KYmitfJMvAZV eE/yU5j3u0rQWARSfWzqGULJ8eXj37k1pb7KUh671uuZ6cCRgVcpeBjWqldcWvW2vZoJ GvNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6/W8opAIugVjlQeZZfCQzJ7EBsPLW1Hz08TC6DhYjxs=; b=NTaXJqElKPLzmyHCa5+ER3vb91hpz4RuedOlEEbDM3S/JhZxtVjXsDki/XytBhr4DS kJLgPcPLjw0pqqW8zFy1IB8+o820Jn4VQYCtftDZbhNNamTZ7lp+/S2bFfd/Vxl3DC8p C8FZugoJcSYRQ+VgOkRG3HJtk3/+XxuQEYRIQ/pQC+EcHjGWhLksHhpv3u5Sx8NIx7xs efx5JEUv8AKHIkBmqkNdsK42sG0PoeWjuJrgccPt5kgPiP93rcM2nMxozoARXofJKXve 9BmCIB5OuTn7kT+Q6+ka+L+bX6zqxfixNtEVTOwCs9sOP2THgrYjGEGAestkdy3GB+bR hwHw== X-Gm-Message-State: AOAM530ZmaVZGSrZITYDFLu5L8lpQC0MLzIIFpwHRNZv4VRi20f3udH9 fO2Dt8gNiI9vGXLS+YDBthU= X-Google-Smtp-Source: ABdhPJxKhys5nchaKsTkaKRl0s9UKPlOU2ed07XpSVncW9950HO6o9EKR2Yb8aliHr0kIhWMNSmh8w== X-Received: by 2002:a1c:1b96:: with SMTP id b144mr5367632wmb.6.1589893122069; Tue, 19 May 2020 05:58:42 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id c143sm3899849wmd.43.2020.05.19.05.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 05:58:41 -0700 (PDT) From: luca.boccassi@gmail.com To: Haifeng Lin Cc: Gavin Hu , Jerin Jacob , dpdk stable Date: Tue, 19 May 2020 13:53:20 +0100 Message-Id: <20200519125804.104349-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519125804.104349-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'eal/arm64: fix precise TSC' has been queued to stable release 19.11.3 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 stable release 19.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/21/20. 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From bcf4069ff25cae1c135ed08af5db5bb4c2d4db4e Mon Sep 17 00:00:00 2001 From: Haifeng Lin Date: Thu, 12 Mar 2020 01:08:33 +0000 Subject: [PATCH] eal/arm64: fix precise TSC [ upstream commit 754b6166f522f3fab2c6dd7949c9d1180aa1c7a9 ] In order to get more accurate the cntvct_el0 reading, SW must invoke isb. Fixes: ccad39ea0712 ("eal/arm: add cpu cycle operations for ARMv8") Reviewed-by: Gavin Hu Acked-by: Jerin Jacob Signed-off-by: Haifeng Lin --- lib/librte_eal/common/include/arch/arm/rte_cycles_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_cycles_64.h b/lib/librte_eal/common/include/arch/arm/rte_cycles_64.h index 68e7c73384..da557b6a10 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_cycles_64.h +++ b/lib/librte_eal/common/include/arch/arm/rte_cycles_64.h @@ -62,7 +62,7 @@ rte_rdtsc(void) static inline uint64_t rte_rdtsc_precise(void) { - rte_mb(); + asm volatile("isb" : : : "memory"); return rte_rdtsc(); } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 13:56:19.239156381 +0100 +++ 0010-eal-arm64-fix-precise-TSC.patch 2020-05-19 13:56:18.175501026 +0100 @@ -1,13 +1,14 @@ -From 754b6166f522f3fab2c6dd7949c9d1180aa1c7a9 Mon Sep 17 00:00:00 2001 +From bcf4069ff25cae1c135ed08af5db5bb4c2d4db4e Mon Sep 17 00:00:00 2001 From: Haifeng Lin Date: Thu, 12 Mar 2020 01:08:33 +0000 Subject: [PATCH] eal/arm64: fix precise TSC +[ upstream commit 754b6166f522f3fab2c6dd7949c9d1180aa1c7a9 ] + In order to get more accurate the cntvct_el0 reading, SW must invoke isb. Fixes: ccad39ea0712 ("eal/arm: add cpu cycle operations for ARMv8") -Cc: stable@dpdk.org Reviewed-by: Gavin Hu Acked-by: Jerin Jacob