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 0B8214307D for ; Wed, 16 Aug 2023 08:07:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1DF14324F; Wed, 16 Aug 2023 08:07:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1DC4340041; Wed, 16 Aug 2023 08:07:41 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37G3ikn6015645; Tue, 15 Aug 2023 23:07:38 -0700 Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2045.outbound.protection.outlook.com [104.47.57.45]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sgptkraxh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Aug 2023 23:07:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmB05+8SnFnNAr7IywDA+Ozar5G6Ax7oAkjf8/mTfQGH2iYulqaoaF7C0T8chNCL9Zp6CE8lDhwluA9GG8owcAOhR+gZkAqboT+cGcAfIOLHsb4jx9URYO2MwxpaL+ZDMl3KZaAyiWkJ5hDJNG/h2QDKFxJ+gkvQDaOo5D4RRWV6RbHVvfzMBNySSsSPH9sRIyk+BFwpmGqtXjV/LBQ5reFieHFBXPBzZXSpo/xCZnRlXcMxaHfKWmH1sKnyviLXXQLAW5MGDYL2DWPO5i4K00UfRjsEX2F0LSpSbc4z6xjxbdN5yM55ll1UXp9y5OyfX3qDr/SMa7YCvfanq8tFbQ== 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=Q+guDxPECZBkN0xSDPq5LLlpbZoX57hUTfnb9QEtSjY=; b=e/3ENxRlyK8NmKfOCdjsRiIf2McgmD7t/oiXu0J6w+4hI8zX/KD3h9ACccXFLMBLlNEIpSDqnageC8+UkxCxSpXXB6JH1VQefFQ8IcVHdeE3UD/W3B3i5fE8lWGPv7+ARQ+z/tQl/C5lBAisOceK6A9SrZLjemwddu83pqpEbYQxM7r4ySP6pIyMTlZEwFrN76jASpNItw0Wsd09aGhWAfuA9TesNeg8bFabmARjVIwJaXWhC5yXdmZUMmWM2dbv50NgeoHQUB5fCsqfFFEVxE/BhmSn2CC8Ya6JqH0GtKL8iwYfpuWTLGhx2g+7duPVdJ1MNdk2sORV9jo5zSXSlA== 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=Q+guDxPECZBkN0xSDPq5LLlpbZoX57hUTfnb9QEtSjY=; b=cjNacqc816i2YgbvfGP3rmVzKph54eVsI9FwDDjhUY7fIkzJmP2eh2jVw4bzEdGKtYBr7nNuhVY/tZnroCV8GcZNLFf7S21PCd9S/J2YaKS0d9VZq2MI5vENsnPY9PZ9QbG7rbXalhmWThoRC1Qg7tqRKgA0Ax3WzV7lvoHZ0M0= Received: from PH0PR18MB4672.namprd18.prod.outlook.com (2603:10b6:510:c9::16) by PH7PR18MB5080.namprd18.prod.outlook.com (2603:10b6:510:153::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Wed, 16 Aug 2023 06:07:34 +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 06:07:34 +0000 From: Anoob Joseph To: "Varghese, Vipin" CC: "Yigit, Ferruh" , "cheng1.jiang@intel.com" , "stable@dpdk.org" , "thomas@monjalon.net" , "dev@dpdk.org" , Jerin Jacob Kollanukkaran Subject: RE: [PATCH] app/dma-perf: fix physical address seg-fault Thread-Topic: [PATCH] app/dma-perf: fix physical address seg-fault Thread-Index: AQHZz4tPgT2goo2vx0aJEh6xZYUn86/sbyJg Date: Wed, 16 Aug 2023 06:07:34 +0000 Message-ID: References: <20230815151042.1778-1-vipin.varghese@amd.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=9e677697-2470-4ce2-9758-157e681b9d05; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-08-15T15:13:44Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYW5vb2JqXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4N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3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4672:EE_|PH7PR18MB5080:EE_ x-ms-office365-filtering-correlation-id: e56c0ade-2b4d-4e0c-667b-08db9e1f154d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tu5xAz4MfxB9fdjUqgZ5t/8VCOc6GGnf0mU86ZTFsr3mt+JzS5zrZFA0tuyU82OpqMbqIkktAIG+Bv9JNiajzGAbxV2zIVAp5qsWJdyylTvAfhao3cL6QIo8dPlML47+0ayr66A2njdZzaxzoxbmcmfi2hi9hiISKKE/Vtc5UCWqXr4s712TVOmcaBRXdXiCddma0zeN09NftWKFT0nhKvDg2F2YOCiZDBxSjs25wyrIDG+rVfneO857xa76swhhEjo2J1dF3X3/cRxCo+//6sMbg9enzFV/oxBLmKmaaZBlYhcYOg5t0oKoW6iWhgxVRWD+IW3vATxgCRUCUxHd/LcB5H4PVYoHmPpt0wkgU5H6cKtAG2YeSIWQxzaCJXAcj5A3u0kiwX3Hl7kXuf/1a5w7vy83x6Ex1BxtCTVuZkJtLF6N55XohY/eKA/0Odq/HRK0Smzf8VTWzhs7lsc82/wu328ihHzX/LPkjEq8IR6bPL3XYB4X4vMNYEyhK3cMH6He6l6Vy92SYeyFzS7OIXYZLJNYyWbpURGMqPnIEJSldMJU+OGmRoI77/9TdYf1Yi0jqNLDRYz70vUOl96PKLyeFVNqPSz/Vnm4j9ARZAxeIQAelO8GNYsdWH+nZfVhtNglm+PsOWS3kim2sdq20DxQ445sTnPLcewG/XCsv2Y= 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?t7DjjY1mOQNZrG+1fx3EWiGVWY8D2j3pgURhL6ZtdhpULQc+hneKBjMiUaPl?= =?us-ascii?Q?hgHB01+Wcr8GoGK8l82BzKudBy7fAYUWIrDXpdV9FGohp+Vd2+jj0m0P+m8R?= =?us-ascii?Q?gB4oinEw8uyWqW6zStwJve9ZvW1y789V24TrXqI9W0yD+I3cVuzG2VRuy24P?= =?us-ascii?Q?pRhEdad5QlmOTyako+BTiLXSQmjddLEK+irp4IS34N6SrkJ4fAJLTuLAXGwt?= =?us-ascii?Q?Sz9U6Cd3mNI+Zjw6AfVgLjbwR9QFUrmGVK9juwqk1ULKiFNzJORNoSAd6SRt?= =?us-ascii?Q?OYUQJexVMpT7unUiRTySeEQPbb+r88n3IlmBLuZVO75LAQ/hNSu/2BMLgRWE?= =?us-ascii?Q?Oqbmns+3yVKUItXQoHAglM7fY1LWrzC4GERwNb6NODNyCKmU+8wt1jICc30U?= =?us-ascii?Q?8BVr2VyrCJV4RnTBPYyZ/VYC8fOvrjKOjuDxzx6kkscqpzTY3NOAMgzUsYYe?= =?us-ascii?Q?uHmX3s1x1aw14E0tQpFcHQ7cD6kGJ7PaijRQDtdCEP4Pv5dcmBdfoxvMi10T?= =?us-ascii?Q?Y6TbOU9BatQqS5OFDF4/f1pH3LFAH03uLNfT6grBq4RobU/z/1yTolztzMYz?= =?us-ascii?Q?FcWNFHiuCyHsExYZAKL1LEoXk2hhyL66bQ4GNCIzrVjHxNJ9lkhVPbIlmkj2?= =?us-ascii?Q?BdntzoQMSTV4XJ136lYgLEihEfKcNrr0rOV5I6DunqdqABDuqaVPriV8rAsf?= =?us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= 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: e56c0ade-2b4d-4e0c-667b-08db9e1f154d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2023 06:07:34.1523 (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: 4p5Ui9sn/7q4kO3jiVbmf0+F69deDtMedqD3waY8cxeWpqqVEURfAv2QA7HOs/KZkTFoF3oFjP2yVQ/4D2uaFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5080 X-Proofpoint-ORIG-GUID: W9SzA1oBI5PMy65S7_klTuEPWWs2b9uH X-Proofpoint-GUID: W9SzA1oBI5PMy65S7_klTuEPWWs2b9uH 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_03,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, Would using 'rte_pktmbuf_mtod' in 'do_cpu_mem_copy' function resolve the is= sue? Thanks, Anoob > -----Original Message----- > From: Varghese, Vipin > Sent: Tuesday, August 15, 2023 8:45 PM > To: Varghese, Vipin ; thomas@monjalon.net; > dev@dpdk.org > Cc: Yigit, Ferruh ; cheng1.jiang@intel.com; > stable@dpdk.org > Subject: [EXT] RE: [PATCH] app/dma-perf: fix physical address seg-fault >=20 > External Email >=20 > ---------------------------------------------------------------------- > [AMD Official Use Only - General] >=20 > Apologies, marking this as `NA`. After recheck of this logic without use = of ` > rte_mbuf_data_iova` will result in mbuf meta-data corruption. >=20 > Need to fix this in a different way. >=20 > > -----Original Message----- > > From: Vipin Varghese > > Sent: Tuesday, August 15, 2023 8:41 PM > > To: thomas@monjalon.net; dev@dpdk.org > > Cc: Yigit, Ferruh ; cheng1.jiang@intel.com; > > stable@dpdk.org > > Subject: [PATCH] app/dma-perf: fix physical address seg-fault > > > > Caution: This message originated from an External Source. Use proper > > caution when opening attachments, clicking links, or responding. > > > > > > 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. > > > > this fix checks the iova mode and invokes rte_memcpy with the right > > arguments. > > > > Bugzilla ID: 1269 > > Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test") > > Cc: cheng1.jiang@intel.com > > > > Cc: stable@dpdk.org > > > > Signed-off-by: Vipin Varghese > > --- > > > > tested for both va and pa > > > > 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 > > > > Log: fails for dc mode `EAL: invalid parameters for --iova-mode` > > > > 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 | 36 > > ++++++++++++++++++++++++++--------- > > 1 file changed, 27 insertions(+), 9 deletions(-) > > > > diff --git a/app/test-dma-perf/benchmark.c > > b/app/test-dma-perf/benchmark.c index 0601e0d171..73200e1935 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; > > > > worker_info->stop_flag =3D false; > > worker_info->ready_flag =3D true; @@ -286,16 +290,30 @@ > > do_cpu_mem_copy(void *p) > > while (!worker_info->start_flag) > > ; > > > > - while (1) { > > - for (i =3D 0; i < nr_buf; i++) { > > - /* copy buffer form src to dst */ > > - rte_memcpy((void *)(uintptr_t)rte_mbuf_data_iov= a(dsts[i]), > > - (void *)(uintptr_t)rte_mbuf_data_iova(s= rcs[i]), > > - (size_t)buf_size); > > - worker_info->total_cpl++; > > + if (true =3D=3D isAddrPaMode) { > > + while (1) { > > + for (i =3D 0; i < nr_buf; i++) { > > + /* copy buffer form src to dst */ > > + rte_memcpy((void *)dsts[i], > > + (void *)srcs[i], > > + (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_dat= a_iova(srcs[i]), > > + (size_t)buf_size); > > + worker_info->total_cpl++; > > + } > > + if (worker_info->stop_flag) > > + break; > > } > > - if (worker_info->stop_flag) > > - break; > > } > > > > return 0; > > -- > > 2.34.1