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 3089DA034F for ; Wed, 10 Nov 2021 07:46:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 248BF40142; Wed, 10 Nov 2021 07:46:10 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2066.outbound.protection.outlook.com [40.107.244.66]) by mails.dpdk.org (Postfix) with ESMTP id B646D40142 for ; Wed, 10 Nov 2021 07:46:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L4Y6Y+MPjU0eTFQt+Iw3ctvO0Fw1DfALe0UjoF/znUGSG5/wTcbU2k49FXKyBe76ns7FrFkJOHE4PdnhV0j24dcKQGGGViiLgC7+ssGknI0P5lg8lfDMIuLmaNv9K4XirW1ewcAXCpD1U0T814Hb2GisHFJZDxJYVuhUPWSncuGQxhsqT7dkgH97Ny5TYOnzzvBUySONhuF7E4FsnpcVW43nHNCORv1XGZizW85UAlUmNvxpHZe7WSu9kxdjE4ngZYkaMpch3V5xhmTZY6RYmDnxjwu2EU0PUNVTnkN/UI0SJwM9drcAQhSPI5JFIgvXQnCvRijQ9bTSRfo2oMOo2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pM7ozjyR/EV02l2IKuKoO/KrTF7X+I9In9l4bRcz/bM=; b=NUZ2AiTm83K3U4RdP1O7FLPvlhu2Q7KSAhp9FqQVo82+WiIaDB/ZlDpKY6ijZFJYh340EYxCJup3NApLQQvzTUqgTBlG+YAkUuYc2I2sCfzHSbwo8UoHPTQ1xts4xx3KfN0IWUkgCcusNQ506tOKXC1RZ8gFc5K0sBe5iqHy7RVvq75OIYhnKf6x5oBtoKVvKv01CABYphaLOV65Kjmo4e1QfhP0E9BifQlBAbUEVwLSSuPs49m6XRVty7NoeNJNqmPnUupPm+quesiD6qdVbxymU4ywQehPjRfkSLVACcdk9tCh826MB8EvTDCY2MFmOnNcpfxowAyBxqeNrYkMBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pM7ozjyR/EV02l2IKuKoO/KrTF7X+I9In9l4bRcz/bM=; b=WYJUKUw4QT5IZrhkIr92zuiPfbDdZ3/BA9DEt3MgBcIWaYCKpwY1X2Dj3eSEW0AiMs4jzQ0ofzafRJAFgs+w+zaZrXCXmJjV9J9rmHa3wKX+ni4sXQlKFDXLd7t/pHT+Z6tVyjBugkZkWddqzjz1qHSrny+5gmo4EPGElPDXlOPGRAwhldUmBbgoGvYTqBahJQ7kOoEB9QTk+2VFqFYDF7aqfQ067Nr825+kh9lJjhPWaw01Tc1fjBvZo8LQRLjLxt7zes4g2RckijASU0uyW27nPaSEG3TDIFD3HLsBu6Rf4+372c6S2g5Kla32TkcSIJIjWaPB9ehOifrOsPiStw== Received: from BN9PR03CA0290.namprd03.prod.outlook.com (2603:10b6:408:f5::25) by SJ0PR12MB5469.namprd12.prod.outlook.com (2603:10b6:a03:37f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15; Wed, 10 Nov 2021 06:46:06 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f5:cafe::83) by BN9PR03CA0290.outlook.office365.com (2603:10b6:408:f5::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13 via Frontend Transport; Wed, 10 Nov 2021 06:46:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 06:46:03 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:46:00 +0000 From: Xueming Li To: David Marchand CC: Luca Boccassi , Bruce Richardson , dpdk stable Date: Wed, 10 Nov 2021 14:30:04 +0800 Message-ID: <20211110063216.2744012-121-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f32e7e26-e693-429f-80d2-08d9a415c3e3 X-MS-TrafficTypeDiagnostic: SJ0PR12MB5469: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OU7WSVqOWyBpAodArlvPKK+LW4466628dugivDWJ06yc69w7LAqahYxKLcZHdpci0jdrdygI8Yt0oq1dUqa+jVzRnRConvdQCnSIkMWT6lLpXVXxnBFmh0mFjRgbK4JT5EgfFulwuTuPJBfQwKQ9k/zaWpN6oAg/a5B9RzGbULjnvqkaDjfN9Uts/5nIih4Nl8K9SLpg0j45Ps+tif8MiG+rKJK8bigEyw2MB98CB8gIaEV6E5Hx7DLbup88Fop84U4X5//X/R78UFrDJ1+TAHfbdKD8lUtQJvLqiIY2kB92ukfZiOcJsw+bfxClNFszSKEBLDjmx6qTdT7dUI/D7/5aRBKm6HvYml9BvQ6/6vMsQmEEHSHoZnQKnw8QPWtzOaKMVLzGa5gi+EB8WM3Tv0DhoNgXx7hs5F1Vn1gWe6W/i1Zlm+9KdY90lVHmwvVJh9QLg6o6+GzeYtNfian9QKGogBxaQhz2PkLoBSy8w7UpQ113ShiiuyA9UWD9F2Oy9iII/XnZSrg3HvUGC2nWrOfjl2V4xRIpDiu5b5Rk6EGaEUOgjyGdkkvRFoYHhX6fgbsvuaFnFhz+DhETSrm1zMri2e/Lnqi+r3WD10bVHDy6yLkR7Jsv7n3eiOwEdH5uCvVcElzK/dBGIqYEORWZOaCT2HGpHslf8RX3hskx8Fkgjk9o9kPIqZZhdwERcq8oekvr1dZKkUY4DuU6x6G01dFVWGtJICBQFTRTv1SR4xu9jaIh70UChSCtlhgYxa/b9QTo0NB24y/L5w/o6n0qV01dLkVl0mtNfCACTSjyr4K8C1XUVI3zkdVu1blaZYLYjZW6TdsoG6SoMNYsJQh+iQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(70206006)(53546011)(26005)(70586007)(47076005)(83380400001)(55016002)(16526019)(36860700001)(5660300002)(2906002)(82310400003)(426003)(508600001)(7696005)(6916009)(36906005)(54906003)(7636003)(336012)(36756003)(316002)(6286002)(4001150100001)(1076003)(86362001)(2616005)(966005)(8676002)(8936002)(186003)(4326008)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:46:03.5712 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f32e7e26-e693-429f-80d2-08d9a415c3e3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5469 Subject: [dpdk-stable] patch 'eal/x86: fix some CPU extended features definitions' has been queued to stable release 20.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. 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. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/c41706bb6e702b4173116a3c29afaf52640a50d1 Thanks. Xueming Li --- >From c41706bb6e702b4173116a3c29afaf52640a50d1 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 8 Oct 2021 14:07:14 +0200 Subject: [PATCH] eal/x86: fix some CPU extended features definitions Cc: Xueming Li [ upstream commit aae3037ab1e020f68fa9e662aab31321cffcdc31 ] Caught while checking CPUID related stuff in OVS. According to [1], for Structured Extended Feature Flags Enumeration Leaf (EAX = 0x07H, ECX = 0): - BMI1 is associated to EBX, bit 3 (was incorrectly 2), - SMEP is associated to EBX, bit 7 (was incorrectly 6), - BMI2 is associated to EBX, bit 8 (was incorrectly 7), - ERMS is associated to EBX, bit 9 (was incorrectly 8), 1: https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf Fixes: af75078fece3 ("first public release") Signed-off-by: David Marchand Acked-by: Bruce Richardson --- lib/librte_eal/x86/rte_cpuflags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/x86/rte_cpuflags.c b/lib/librte_eal/x86/rte_cpuflags.c index a96312ff7f..2fc9e84666 100644 --- a/lib/librte_eal/x86/rte_cpuflags.c +++ b/lib/librte_eal/x86/rte_cpuflags.c @@ -100,12 +100,12 @@ const struct feature_entry rte_cpu_feature_table[] = { FEAT_DEF(ENERGY_EFF, 0x00000006, 0, RTE_REG_ECX, 3) FEAT_DEF(FSGSBASE, 0x00000007, 0, RTE_REG_EBX, 0) - FEAT_DEF(BMI1, 0x00000007, 0, RTE_REG_EBX, 2) + FEAT_DEF(BMI1, 0x00000007, 0, RTE_REG_EBX, 3) FEAT_DEF(HLE, 0x00000007, 0, RTE_REG_EBX, 4) FEAT_DEF(AVX2, 0x00000007, 0, RTE_REG_EBX, 5) - FEAT_DEF(SMEP, 0x00000007, 0, RTE_REG_EBX, 6) - FEAT_DEF(BMI2, 0x00000007, 0, RTE_REG_EBX, 7) - FEAT_DEF(ERMS, 0x00000007, 0, RTE_REG_EBX, 8) + FEAT_DEF(SMEP, 0x00000007, 0, RTE_REG_EBX, 7) + FEAT_DEF(BMI2, 0x00000007, 0, RTE_REG_EBX, 8) + FEAT_DEF(ERMS, 0x00000007, 0, RTE_REG_EBX, 9) FEAT_DEF(INVPCID, 0x00000007, 0, RTE_REG_EBX, 10) FEAT_DEF(RTM, 0x00000007, 0, RTE_REG_EBX, 11) FEAT_DEF(AVX512F, 0x00000007, 0, RTE_REG_EBX, 16) -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:07.311515722 +0800 +++ 0120-eal-x86-fix-some-CPU-extended-features-definitions.patch 2021-11-10 14:17:01.884079315 +0800 @@ -1 +1 @@ -From aae3037ab1e020f68fa9e662aab31321cffcdc31 Mon Sep 17 00:00:00 2001 +From c41706bb6e702b4173116a3c29afaf52640a50d1 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit aae3037ab1e020f68fa9e662aab31321cffcdc31 ] @@ -19 +21,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ - lib/eal/x86/rte_cpuflags.c | 8 ++++---- + lib/librte_eal/x86/rte_cpuflags.c | 8 ++++---- @@ -27,4 +29,4 @@ -diff --git a/lib/eal/x86/rte_cpuflags.c b/lib/eal/x86/rte_cpuflags.c -index d339734a8c..378fc95396 100644 ---- a/lib/eal/x86/rte_cpuflags.c -+++ b/lib/eal/x86/rte_cpuflags.c +diff --git a/lib/librte_eal/x86/rte_cpuflags.c b/lib/librte_eal/x86/rte_cpuflags.c +index a96312ff7f..2fc9e84666 100644 +--- a/lib/librte_eal/x86/rte_cpuflags.c ++++ b/lib/librte_eal/x86/rte_cpuflags.c