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 067E44307C for ; Wed, 16 Aug 2023 09:27:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0067D42B8B; Wed, 16 Aug 2023 09:27:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 00F6B40EF0; Wed, 16 Aug 2023 09:27:03 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37G1Bs82009521; Wed, 16 Aug 2023 00:27:01 -0700 Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2177.outbound.protection.outlook.com [104.47.59.177]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sgaydu3hx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Aug 2023 00:27:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nx30xu6Jb/B2IqkNqGraybs3RhIMx2rR4iEv7nrmDIhaeuR8NwUfdnQGnZjt3GcfjOlC7aYuc4EG6VM2Ov7P1oOQebu7reTunpq/ddeTT4kQVvo7IyZBX1x44OlUXVEt32ltp1CE0znA5cG14XFTsrgopM3mG49Z3afS8ybVa8F6rwC4j7F2r7hLE+rV7yqoU0h2IyYIab0ejMtaKoQRpTXcuyBNAANWkFvmJEgsPaZR9Khf747hikYiXDDGO32h9m84a/x+O+lEjzX4fBPUflwUsbpONztormBGqKJP9PaEoWdXW71yJkA3KrGFd96ovQyTsMavX7n4sM0Iq9z6yQ== 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=iBpV++wvdFpg0/jWbHwI5y3QvePHNhNuuuVbO8oqXrM=; b=FBPMC6f3FxrRVlJ3ZvFtUWfnnqN/MJ9U2Vw480L+DjZSSZnnDXkSS69QALpWQUBFIGSPIJcR5vSc5CDFhT7Quh1eOa2U3f58dKSpxu6cZ528c140II2MtVgETBxYxmTIkUglEP2XazV/ar2hSl4lFSojgpP4M6d4qT8lndrbfVh7uL+TXRWP3si7oKZ2Dp+ZOCI6UGDQusg2p3LDCWOqFQnmPh2sQ/63LlC7Zm2g0iJwF/WpEQ9ZJUjLeyJLtMDGyZslPOryPDbDAII5nxC+ypA7OwqAsLdx3iVHLnJ16P9A8wHLfkQ0UW74ar2g4Ca/nVHyGjBiX/E7TctmEQKyZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iBpV++wvdFpg0/jWbHwI5y3QvePHNhNuuuVbO8oqXrM=; b=QKGv4K8sfprdiPM1Wjsq7SQy8RNmwNOz64JCV059nWqm5XI51GNwmGsISLkeQrUNVnbSZ89xoZH/7OZ/M4nWSnFwHMw5imJo9S9KRHXqdY3qEfD994/Nl9BHrALozZBBNOKTuwkzDdsth2uYzELXFR3QnH1jKfB9f2AXAjV+8eo= Received: from PH0PR18MB4672.namprd18.prod.outlook.com (2603:10b6:510:c9::16) by SN7PR18MB5361.namprd18.prod.outlook.com (2603:10b6:806:2e0::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.29; Wed, 16 Aug 2023 07:26:59 +0000 Received: from PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::cd84:2ed1:5222:7527]) by PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::cd84:2ed1:5222:7527%6]) with mapi id 15.20.6678.025; Wed, 16 Aug 2023 07:26:59 +0000 From: Anoob Joseph To: Vipin Varghese CC: "Ferruh.Yigit@amd.com" , "cheng1.jiang@intel.com" , "stable@dpdk.org" , "thomas@monjalon.net" , "dev@dpdk.org" , Jerin Jacob Kollanukkaran Subject: RE: [EXT] [PATCH] app/dma-perf: fix physical address seg-fault Thread-Topic: [EXT] [PATCH] app/dma-perf: fix physical address seg-fault Thread-Index: AQHZ0BHgXc+SpobtAUKutpKGKB4zra/shP0w Date: Wed, 16 Aug 2023 07:26:58 +0000 Message-ID: References: <20230816071810.1796-1-vipin.varghese@amd.com> In-Reply-To: <20230816071810.1796-1-vipin.varghese@amd.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYW5vb2JqXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctNDY1ZTc4MjItM2MwNi0xMWVlLTljNjMtNGMwMzRm?= =?us-ascii?Q?NWY5YjRmXGFtZS10ZXN0XDQ2NWU3ODI0LTNjMDYtMTFlZS05YzYzLTRjMDM0?= =?us-ascii?Q?ZjVmOWI0ZmJvZHkudHh0IiBzej0iMzc3MiIgdD0iMTMzMzY2NDQ0MTUzMjYy?= =?us-ascii?Q?ODIzIiBoPSJpTVpMS1R4Q1p0bHBvbGp2SnUyeDh0YzkwWU09IiBpZD0iI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QUNl?= =?us-ascii?Q?QUFBQWJRQmhBSElBZGdCbEFHd0FiQUJmQUhRQVpRQnlBRzBBYVFCdUFIVUFj?= =?us-ascii?Q?d0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdFQWNnQjJB?= =?us-ascii?Q?R1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBRUFB?= =?us-ascii?Q?QUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4672:EE_|SN7PR18MB5361:EE_ x-ms-office365-filtering-correlation-id: 291f1fc4-24da-455f-0c24-08db9e2a2d56 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ICdGitefA97MLs1PQt2CXXaF9uw/8UWeMu807jMnTAwBTDuIZ3faMhKBEMmaxU0YZb78EAdcfkcqvMIRjnUzQgpgZeUdgTKWunb8BDn+vKXlJ7byqFk2cjhk/tiov5SEHGoEuU4XSY+kd3whQ8JmlacfUdXB6+aVwfO9ZvHy3gx5ePlmF9bURMolU4Rpr3eyZDC7dKG6XErc03GJObO/UkagIqBSxa8/SD2D5w+DllXjZWdNAnjy7wU4wO024aNvAgjxr/zcKfZyFUKXYKMrMPIuk4V9w47pZMQ/5y/tf3qBDqBLftut4Io7myTj25L1p5l3r2vF6bT+LqxhuQTEKKGX4jbRUGyUFbsd/CWHpgDk+ioG1Ffqu8RzulkAxxFkamQwtD7GkyCPyI19cp0SqIsW9gFXx++JVOSS4X+AsqgIBwDWpeh87OqEvqwwgBmpR3xfnuKbryb3UzyaNydMFYJus3876rKs/LnBOjpI8vXDkfpxVUhF3LyZFokcRdToYI7ChRIsevovfR8vZs/AvfgS5SrQrheySKoYlwl9yayan4Y2EiCWz9jI0dG5OcM8NTlMNC0x7mIxmtyLpiQWVj1ZSB+eKotz3ZdIr7G4Mr4LKrYRYVjI4Yno4RGaAMe/ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4672.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(366004)(39860400002)(396003)(346002)(136003)(1800799009)(451199024)(186009)(71200400001)(64756008)(54906003)(66446008)(76116006)(66476007)(66556008)(66946007)(7696005)(6506007)(2906002)(478600001)(9686003)(26005)(6916009)(107886003)(5660300002)(83380400001)(52536014)(41300700001)(316002)(53546011)(8936002)(4326008)(8676002)(122000001)(38100700002)(38070700005)(33656002)(86362001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?a9SQGKOofybqkOC5bhzwpYbe4vLrJ2lphYvlWQaFyGvjn7tWT/fZBWfHfp7e?= =?us-ascii?Q?26qYK91ROEbswRwOqTxakQ/afM7oSjTx7IHSyzDZbYti73TS1MH1M2Wq0vBH?= =?us-ascii?Q?kJcNU8YHDQkFlbM/55dyCFKIv94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El?= =?us-ascii?Q?WV+f0ITzMZmhp00aC+DU5C9+/6ELV2FIWX2A18cslYsxqXUDeBfabX5Vpvw5?= =?us-ascii?Q?JvQe+HdDmy2Sr3HCHsJKc9DhgAIMuOvmKVS3V2puT9tEzrBR2s6Z5+7byFe2?= =?us-ascii?Q?nSKqOIRCtqV0zmZx/jTJ1uQkQO3Z6U2Pjjt05q5Hi5rRWYJHR37byaJGtcFU?= =?us-ascii?Q?/FBcNPNXz2tQByDP2XfcgyPHpFVLLVFJDrT0l0eMmyDsPwA2n0BhHirPloyR?= =?us-ascii?Q?BsKhLRbScvOAvqIZg5b2JaXXW/SHkqxyHsT+koi72wRa8hg4+RuiFmKHlx4R?= =?us-ascii?Q?lzH5C3NGzqSk7hqMiZtoRmE3cN4gdMZV/MuQBrewKIJJjAFRoDQySqqrOU+H?= =?us-ascii?Q?0PI6Gg+S3Z0eZS68o6fGX+DPmXDQw+y/yM0hcK2Ep/PCJEwAwARozDRB5/aL?= =?us-ascii?Q?UhyePNhBHwaqbJfrVPFAegUSohPwZFx1wT6P4s4YKDiDhXOWZ6a3u/ldQV8/?= =?us-ascii?Q?1KZrR1WFfjx7DQkSOCpI1IpZc/jejTLc06O7QecHiwXNzuV+UFwAkBKEhu4R?= =?us-ascii?Q?uj2dir4vB1EHM1ShCCo=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4672.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 291f1fc4-24da-455f-0c24-08db9e2a2d56 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2023 07:26:58.9335 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tOcj21k2eM+ym2e0XGb1+KcDQ1OPGiuvbuKgKAUOmhKdrMNe/ul1t3n3hVaa+DstQ0isYYGLEq4dy494xC775g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR18MB5361 X-Proofpoint-GUID: GF9Oxclrj2xXfaH28b1nLqk4CKi_nh2E X-Proofpoint-ORIG-GUID: GF9Oxclrj2xXfaH28b1nLqk4CKi_nh2E X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-16_05,2023-08-15_02,2023-05-22_02 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 Hi Vipin, Thanks for the update. Please see inline. Thanks, Anoob > -----Original Message----- > From: Vipin Varghese > Sent: Wednesday, August 16, 2023 12:48 PM > To: thomas@monjalon.net; dev@dpdk.org > Cc: Ferruh.Yigit@amd.com; cheng1.jiang@intel.com; stable@dpdk.org > Subject: [EXT] [PATCH] app/dma-perf: fix physical address seg-fault >=20 > External Email >=20 > ---------------------------------------------------------------------- > do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start > of the virtual address for both src and dst. > But in case of iova mode set as PA, this results in seg-fault. > This is because rte_memcpy VA address and not PA. >=20 > this fix checks the iova mode and invokes rte_memcpy with the right > arguments. >=20 > Bugzilla ID: 1269 > Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test") > Cc: cheng1.jiang@intel.com >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Vipin Varghese > --- >=20 > tested for both va and pa >=20 > CMD: > PA: dpdk-test-dma-perf --iova-mode=3Dpa -- --config test.ini > VA: dpdk-test-dma-perf --iova-mode=3Dva -- --config test.ini > DC: dpdk-test-dma-perf --iova-mode=3Ddc -- --config test.ini >=20 > Log: fails for dc mode `EAL: invalid parameters for --iova-mode` >=20 > test.ini: > ``` > [case1] > type=3DCPU_MEM_COPY > mem_size=3D10 > buf_size=3D64,8192,2,MUL > src_numa_node=3D0 > dst_numa_node=3D0 > cache_flush=3D0 > test_seconds=3D2 > lcore =3D 7 > eal_args=3D--in-memory --no-pci > ``` > --- > app/test-dma-perf/benchmark.c | 39 +++++++++++++++++++++++++++---- > ---- > 1 file changed, 30 insertions(+), 9 deletions(-) >=20 > diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma- > perf/benchmark.c index 0601e0d171..5573acc9f9 100644 > --- a/app/test-dma-perf/benchmark.c > +++ b/app/test-dma-perf/benchmark.c > @@ -279,6 +279,10 @@ do_cpu_mem_copy(void *p) > struct rte_mbuf **srcs =3D para->srcs; > struct rte_mbuf **dsts =3D para->dsts; > uint32_t i; > + bool isAddrPaMode =3D false; > + > + if (rte_eal_iova_mode() =3D=3D RTE_IOVA_PA) > + isAddrPaMode =3D true; >=20 > worker_info->stop_flag =3D false; > worker_info->ready_flag =3D true; > @@ -286,16 +290,33 @@ do_cpu_mem_copy(void *p) > while (!worker_info->start_flag) > ; >=20 > - while (1) { > - for (i =3D 0; i < nr_buf; i++) { > - /* copy buffer form src to dst */ > - rte_memcpy((void > *)(uintptr_t)rte_mbuf_data_iova(dsts[i]), > - (void > *)(uintptr_t)rte_mbuf_data_iova(srcs[i]), > - (size_t)buf_size); > - worker_info->total_cpl++; > + if (true =3D=3D isAddrPaMode) { > + while (1) { > + for (i =3D 0; i < nr_buf; i++) { > + void *src =3D rte_pktmbuf_mtod(dsts[i], void > *); > + void *dst =3D rte_pktmbuf_mtod(srcs[i], void > *); > + > + /* copy buffer form src to dst */ > + rte_memcpy(dst, > + src, > + (size_t)buf_size); > + worker_info->total_cpl++; > + } > + if (worker_info->stop_flag) > + break; > + } > + } else { > + while (1) { > + for (i =3D 0; i < nr_buf; i++) { > + /* copy buffer form src to dst */ > + rte_memcpy((void > *)(uintptr_t)rte_mbuf_data_iova(dsts[i]), > + (void > *)(uintptr_t)rte_mbuf_data_iova(srcs[i]), > + (size_t)buf_size); [Anoob] Even in case of VA as IOVA, rte_pktmbuf_mtod() should work, right? = I was imagining a simple replacement of ' rte_mbuf_data_iova' with 'rte_pkt= mbuf_mtod' as the fix. > + worker_info->total_cpl++; > + } > + if (worker_info->stop_flag) > + break; > } > - if (worker_info->stop_flag) > - break; > } >=20 > return 0; > -- > 2.34.1