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 0BB76A034F for ; Wed, 10 Nov 2021 07:34:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05F9140142; Wed, 10 Nov 2021 07:34:22 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2071.outbound.protection.outlook.com [40.107.212.71]) by mails.dpdk.org (Postfix) with ESMTP id E1E0140142 for ; Wed, 10 Nov 2021 07:34:20 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xa6qwMLNvaMrj3SBbhC15CZ0SZtzvEMDNfXGauPTOa2ffMbmazUg2j3OWMR+vGTebWkcwrh7N2Mn1vIdRQy1cu1DoxfmczNfFQRRZEuHIGKJWPagcYeW65oY1noYLpoEGl6NNiF+EayHGnkvW8V4v9+v63oZI8DVwfH1xYo6A0LGs5kL4WcdhSS4VvUAJbccya3djO8hUySKaXALl46LRZsCwzs+R9pJiz7B1EIWP3ff/kn6qxPo+nVL6kU9x9RINAnZHW3zhwyocDsxiB6Nz4wdjEznP40MkAolyx/1YPqmedx7VPVMVTlAe5KFfCMTmpBWWtUhpVPirJ9e2rdzYQ== 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=Wra1KxCyXtaVnepeItzlIp8XWloWHYIVn+1KLFvSTtU=; b=FGjcRyoybbJpPuD3F/vbeFCGvBxs2wqDMqz+7dkVd6Z2ZeCo/2LxsnCmvmzTLU+Rlsc6JS/E7/5mlIsd0FLW2a2Vclve5UQLGekmXpGIiNwnYHWJhTM7rQH3Oj5R78pVi46TJun24ixFDQe7A7E/k9fbJDiUOA3wZ84+S/rfLfkHVwP5XJXYEYskY/VmRE/tJkn8eHiHqFaFwWIaeCIt/1TVZGuZ0yf3booP2ER82R0K5ER0QEhjEaVdsC300dMbWLjy1fG09GeaPGS/wzmyYPUppO4TDLh3hE8CCwdZqsFGrETuHU9OvMLCugzmI1m3BiVBGQ3qxq34hiYcGTVHNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=marvell.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=Wra1KxCyXtaVnepeItzlIp8XWloWHYIVn+1KLFvSTtU=; b=rRU6bNy7lTRsWxhBhNQ+1VftYWCsHZeZOjGiXGwHqqEBMTU6ZWBOGkpmLbCQYvBOt97vS+JbClqFy/txpmSVXRikWjEhkSYeuRXz8AiIG3yObzvhVCy81F3tGFHF/OHcnmOieS6iNve4e4aqRzzDzur0mW61v/hWG5rN3CCSjlbX1xzy79iYdGeHEbTCI0YqG6VtqvW/zrSbVKldgNY/1CytTAMNLkbHQKpRw+K2UD8UtqXOBmlu+NeX2NGPlcOpJPIWEOVO/y66UXbQ4W7drMFyGP2LlsZWhUOggzq0gafKJdOXDTJfMDJf4ELj4E5c+UB712W432nMuvL5K4CfHA== Received: from DM6PR02CA0160.namprd02.prod.outlook.com (2603:10b6:5:332::27) by DM6PR12MB4121.namprd12.prod.outlook.com (2603:10b6:5:220::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Wed, 10 Nov 2021 06:34:19 +0000 Received: from DM6NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:5:332:cafe::91) by DM6PR02CA0160.outlook.office365.com (2603:10b6:5:332::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:34:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; marvell.com; dkim=none (message not signed) header.d=none;marvell.com; 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 DM6NAM11FT022.mail.protection.outlook.com (10.13.172.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:34:18 +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:34:16 +0000 From: Xueming Li To: Danny Patel CC: Luca Boccassi , Anoob Joseph , dpdk stable Date: Wed, 10 Nov 2021 14:28:19 +0800 Message-ID: <20211110063216.2744012-16-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: 51da4e03-7ca3-4821-5767-08d9a4141fcc X-MS-TrafficTypeDiagnostic: DM6PR12MB4121: 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: qzZ4H9+IoE+W2cgA+BoIy6UPtT7UKnjrBNMh7foyHlOoQ8w8jbpiyOmwvj06jCOwn8WbwYA4pStvk4py+PqINzdQin+dsjdn4fJmVDtLivn+GI3WZhogqi16oI5cB3eZfxdcE3d7Phyh7SbHtdwRPRbEwOYviaKPqCVk3pQS7fF/VWni6c1RbNnu3DKyQIg+lW9KLSmbf7c/JzSrSwNOcpJDDqLcT4h8mxaBSGl8F4oQuh0OQ0dYyqZEaGpbZwbnD7GWeJpGlNzY/pzGFRB+esJBTacd77UPbqSGLy6MZoo2yFyjmUq01upKS4t8qYK/TxTb6G0LndY58jXah5xilpFlEBVZzGD0Ew33qvkiX2WBFW+HjCKl1Lth9ypccbvU2SYkP3UMNquzX0NauiCbIp8xxv5VGFW9JXQn544ioOlOAN27hrx9jY8rdLALxzKoec9QUCZBe4/jdDCGzzBO4FQn3oTbOo/uEvDHyDKHYaPXct0eiWZlu8KDTi83tcpo5J1RXR8jTI3jzsfOQ7chz0zf6KQkp1IbbRNDVR+pfzL9OQa3jJGNoY02cbavlRWPa0x+W6NwHxUr+m1Gsq9t8KhfGAf91I6QHR2jNvQgQKkZALjrbNTNxbyv6QseXSgISuvw2vXMO8S/SkNBdejoMr63wt19/AuHCNyfX8ofBAkaPsq23e663iEw4JA8AmmAAWfzqsLPgc1drnrPHjPy/3DP/Z8iSXCSoz1d8v+DNfsduIN2OsetUbQWdbC6osMs6GFJAy1wUsuSY3vghCN3PdBiklBJZekbXzs6hWWA0u52jjLruOFCoC01uKUTYIxGqQFGucbLOCCF1L1d9CkpIQ== 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)(55016002)(86362001)(7696005)(36860700001)(54906003)(70586007)(336012)(2616005)(316002)(4001150100001)(53546011)(6916009)(426003)(4326008)(36756003)(82310400003)(26005)(16526019)(186003)(47076005)(70206006)(8936002)(508600001)(8676002)(83380400001)(966005)(1076003)(7636003)(36906005)(356005)(6286002)(2906002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:34:18.8253 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51da4e03-7ca3-4821-5767-08d9a4141fcc 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: DM6NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4121 Subject: [dpdk-stable] patch 'crypto/octeontx2: fix unaligned access to device memory' 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/e4509540bed8f2a21e17fe47ee90214db00ffecd Thanks. Xueming Li --- >From e4509540bed8f2a21e17fe47ee90214db00ffecd Mon Sep 17 00:00:00 2001 From: Danny Patel Date: Fri, 27 Aug 2021 11:03:58 +0530 Subject: [PATCH] crypto/octeontx2: fix unaligned access to device memory Cc: Xueming Li [ upstream commit 05f157b8c5b469173712b0ab7daa91bbe52ec1df ] Use otx2_mbox_memcpy() instead of memcpy() to prevent unaligned access. Fixes: a0645ed0d6ef ("crypto/octeontx2: discover capabilities") Signed-off-by: Danny Patel Signed-off-by: Anoob Joseph --- drivers/crypto/octeontx2/otx2_cryptodev_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c b/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c index 75e610db5c..d762baf927 100644 --- a/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c +++ b/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c @@ -36,7 +36,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev, return -EPIPE; } - memcpy(hw_caps, rsp->eng_caps, + otx2_mbox_memcpy(hw_caps, rsp->eng_caps, sizeof(union cpt_eng_caps) * CPT_MAX_ENG_TYPES); return 0; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:02.803791067 +0800 +++ 0015-crypto-octeontx2-fix-unaligned-access-to-device-memo.patch 2021-11-10 14:17:01.754080379 +0800 @@ -1 +1 @@ -From 05f157b8c5b469173712b0ab7daa91bbe52ec1df Mon Sep 17 00:00:00 2001 +From e4509540bed8f2a21e17fe47ee90214db00ffecd Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 05f157b8c5b469173712b0ab7daa91bbe52ec1df ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index 812515fc1b..1a8edae7eb 100644 +index 75e610db5c..d762baf927 100644 @@ -21 +23,2 @@ -@@ -37,7 +37,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev, +@@ -36,7 +36,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev, + return -EPIPE; @@ -24 +26,0 @@ - vf->cpt_revision = rsp->cpt_revision;