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 B7009430DF; Wed, 23 Aug 2023 13:46:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 907C2410F1; Wed, 23 Aug 2023 13:46:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3321040223 for ; Wed, 23 Aug 2023 13:46:23 +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 37N7AkGY012861; Wed, 23 Aug 2023 04:46:22 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sn20ctq03-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Aug 2023 04:46:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d6a09/WSuYcVB5EaexuACsSOf8VSV0/Fr1HqJgKB31ueZ9/gRycXkhB83l/iiYuNIFG8YQh9TONAXW687FwzI7/LHpONB42dOMjs6HEJGOlTr7tN7CdPQDzhaYqqnhLntuNiaQyJdkzcgbUs/LCouxsMOsq34aUkyCDno7ZQgNH6OjfXd0LnLKNh3uaVcmDxYpBvBn2VZG8Zvhx4K35OPQdds/EYbtRtwbGiVAKSthJrfiP3v9x/QfzWD3c46CpbEFx/t93UtbEM6+X0KofFOciU+xGSnF2g8Rz3YVO9rnSBKXCmHLYQPqEtmHAfiYOJhO7zlqT8StQ9dofmjkkHsw== 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=TjzSq95ID6BUjXf+On6BJJYk3sp7JWbjSxkggR0mlY0=; b=jzuSjVTk+E7IK00aWBbXhcMLSewXGFNBZin2emlpNS0xpqk7X4/64oM/Bj7cEQno7W6mbhgYU6ekAlr4LHdO+3Pi155sUa6QYCwCi6XoT7ybZbTs6B5RFQV8YyRE4poKTVrio0woQ3jy73hcm/zjYfOAwXCh6RRxQJDCRgPUKhP5fLXnZZ9jclLyyqxz0KhR27KQB3iF3r9303bmqmpye/Vt1loOAOcrI2Bs07TzBY/+NadBOi5PzVAEWDz3NBBwzowOIOng//QEpsfGHVON6TGG52tmWbyIw3s1DMgDDTPm5d8NLVJ712qcGoa1TTLZ6tLe7be1tDrxPnadBConog== 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=TjzSq95ID6BUjXf+On6BJJYk3sp7JWbjSxkggR0mlY0=; b=DK0RQgV3G8aVL28IwBwMsbKnfNVvf710NsFr9JI8cCU8WARZua1nSXy2rlfWg3L39NMuRIFBdCxLRvKFLpQA6xwb8NLcqE34G98ylUSeDkyIkDBuXAKsZOkn8D+O8pJWF1wy0Aut3J9sr1wBwwdqDpd/VSb3irkjAL/8ECsmKv4= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by CH0PR18MB5506.namprd18.prod.outlook.com (2603:10b6:610:181::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Wed, 23 Aug 2023 11:46:19 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::e6de:4d63:8f64:f0b1]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::e6de:4d63:8f64:f0b1%4]) with mapi id 15.20.6699.026; Wed, 23 Aug 2023 11:46:19 +0000 From: Pavan Nikhilesh Bhagavatula To: Gowrishankar Muthukrishnan , "dev@dpdk.org" CC: Anoob Joseph , Cheng Jiang , Kevin Laatz , Bruce Richardson , Gowrishankar Muthukrishnan Subject: RE: [EXT] [PATCH v3 1/2] app/dma-perf: validate copied memory Thread-Topic: [EXT] [PATCH v3 1/2] app/dma-perf: validate copied memory Thread-Index: AQHZy4rdg3zd61/msEi0W48Xs8w81q/310bQ Date: Wed, 23 Aug 2023 11:46:19 +0000 Message-ID: References: <20230810105704.2060-1-gmuthukrishn@marvell.com> <20230810130137.2529-1-gmuthukrishn@marvell.com> <20230810130137.2529-2-gmuthukrishn@marvell.com> In-Reply-To: <20230810130137.2529-2-gmuthukrishn@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccGJoYWdhdmF0?= =?us-ascii?Q?dWxhXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctYWE4Mjk4OWQtNDFhYS0xMWVlLWI2ZDUt?= =?us-ascii?Q?NGMwMzRmNWZhYTMyXGFtZS10ZXN0XGFhODI5ODlmLTQxYWEtMTFlZS1iNmQ1?= =?us-ascii?Q?LTRjMDM0ZjVmYWEzMmJvZHkudHh0IiBzej0iNDQ5MSIgdD0iMTMzMzcyNjQ3?= =?us-ascii?Q?NzY2MDA1OTA5IiBoPSJJTG1TaFBIc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change-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8ur6NXzrTL6DnJAKeX8C2Hy9r3aijyqVP7fSxon++I6DkKbTfVuJ3PdGfs8WxnP0eLRxrwJrsKRDZpCxYeVZaMKuuqQ+vrcz4DfDcHdR6SKhke2pZVgP/RHJWR9GF1cLfCCo8nBn8MeBYwcHHpgnSK8Ptp0vXfsfFHYkUfmUHD8e0LhEKZq85L4dTeeM5dmKiYa7QAk/9jcaDeZTT4Cpj7EfPxCo9Z3F2IeQopApJpLpWf+inSSUQKYuXNwPToHoub0fkShMKahMnMOKNp5rJrOoI7V4dvhPPLdSH7jY9Be8Qe8o7i4CJMEFKdvXSiTPMZCxLQkF1YKrxqN5XmGSUEhvwaLC9VIIb1bOEHuDRv1hSDefgGKMZ6QGJsbtw8peDX7ySGkKSgD1K2aAMzuNWQpcJh/IQlNxPfJI5qhGafL+QzfsBddY7hwoZqNWcfPY1g2d374zJ17ksqW1gxVp4Q9GAlobCxnM2LWa4+d7vqgjx7apC77KSMrixjZxWnJ6OABaRswWoaLfQ5QrK6nrbxKSea8a0y1ZokK/rcgMi6N8NQr2Adshx6AqCu3eumhVa2q/cfOQmSIYm7gsggjADoRspTUtXHhlENjoDGuswUc0lCxQxztBo19rTORN1lTT x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(39860400002)(366004)(376002)(346002)(1800799009)(186009)(451199024)(54906003)(76116006)(66476007)(66446008)(64756008)(66946007)(9686003)(316002)(66556008)(110136005)(8676002)(8936002)(107886003)(4326008)(41300700001)(478600001)(122000001)(55016003)(71200400001)(38100700002)(6506007)(38070700005)(15650500001)(83380400001)(2906002)(7696005)(86362001)(5660300002)(26005)(52536014)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-ex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NqeQXNt1LTIpszMz3U4XyL7QehfnGtODNf0rRnB46Rjy8LVM?= =?us-ascii?Q?ay1umxCaoX7UHjFPuW5ca9lFmryigl457KTdlhwlUasoab8WrPY+7f/vlFw8?= =?us-ascii?Q?sLyplVmgyE4NdyQmD3UQ1/SKXa90YZyhuhYjas4hkMcaO29vmrcwIwx+ig8e?= =?us-ascii?Q?0R8J+Gp+O6SZVDF6KUwjJpjl8zlLvUqk+XGuZNkxs4pZUyX95HSLehprQRm4?= =?us-ascii?Q?ONseU9Vv50x+drnrYlNbkCEsRVj1aspjNOEl2WANHJgjGmm7YlKSB8g7v3yH?= =?us-ascii?Q?4BmBKfsUthNwmZAk+khr5MjCmLb0a/Nq5/SzTwnY95Z14sBmuSnAMIgwo3wN?= =?us-ascii?Q?kOYSOEMq+JmjgM9VO8isMYt0p3aVOfvENDhNwzd0EN2oW3pqnR2FP5BrSgec?= =?us-ascii?Q?wXqXgTLj2C59HYOK9OQggDnNv+eK19hKjL3ok3oW30yjAI1DQvFNo23C+HK5?= =?us-ascii?Q?MYHLExlXTIMn2ZmE/RXYtgRuOTdowoRWm8xFnSYLmVfCyDvG36C5PpSiYQs1?= =?us-ascii?Q?gf0C/+Lnp8vHY1iqWA5k7hyjainDdgCT5044wvokms0fCJvMBkRgsyIfc0gU?= =?us-ascii?Q?8wV2pT/sr7RiDOSF/kf3Qdd5wx83TdVpj0d6WkFu92iGe0iSDGP53FvY2Aop?= =?us-ascii?Q?F2Fqe+MLETvwH7rx0aUDzYeZFRoHcl4M1GiK9XNGY9S4/3jnRiEw6mK9FFjB?= =?us-ascii?Q?syhqEUBf68R7JrHFp5TDZj9J9IaxiwhqZ4s13jHu?= 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: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bc027f2-15b5-4484-784a-08dba3ce90f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2023 11:46:19.3322 (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: deG6BPEodMbnG0Shs+614WKMIeQlnTCmH0U6nZ0gVlZzKx2tckZ63Tnzy+LcNhhWZ28+pYG0gfncGA1/T5E/KRh63z9OCFw3WAPDSb++ocw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR18MB5506 X-Proofpoint-GUID: 3e_IJB1HiUry1bLMeP47ilZk1s3op4Pq X-Proofpoint-ORIG-GUID: 3e_IJB1HiUry1bLMeP47ilZk1s3op4Pq 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-23_06,2023-08-22_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Validate copied memory to ensure DMA copy did not fail. >=20 > Fixes: 623dc9364dc ("app/dma-perf: introduce DMA performance test") >=20 > Signed-off-by: Gowrishankar Muthukrishnan > --- > app/test-dma-perf/benchmark.c | 23 +++++++++++++++++++++-- > app/test-dma-perf/main.c | 16 +++++++++++----- > app/test-dma-perf/main.h | 2 +- > 3 files changed, 33 insertions(+), 8 deletions(-) >=20 > diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma- > perf/benchmark.c > index 0601e0d171..9e5b5dc770 100644 > --- a/app/test-dma-perf/benchmark.c > +++ b/app/test-dma-perf/benchmark.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include >=20 > #include "main.h" >=20 > @@ -306,7 +307,7 @@ setup_memory_env(struct test_configure *cfg, > struct rte_mbuf ***srcs, > struct rte_mbuf ***dsts) > { > unsigned int buf_size =3D cfg->buf_size.cur; > - unsigned int nr_sockets; > + unsigned int nr_sockets, i; > uint32_t nr_buf =3D cfg->nr_buf; >=20 > nr_sockets =3D rte_socket_count(); > @@ -360,10 +361,15 @@ setup_memory_env(struct test_configure *cfg, > struct rte_mbuf ***srcs, > return -1; > } >=20 > + for (i =3D 0; i < nr_buf; i++) { > + memset(rte_pktmbuf_mtod((*srcs)[i], void *), rte_rand(), > buf_size); > + memset(rte_pktmbuf_mtod((*dsts)[i], void *), 0, buf_size); > + } > + > return 0; > } >=20 > -void > +int > mem_copy_benchmark(struct test_configure *cfg, bool is_dma) > { > uint16_t i; > @@ -381,6 +387,7 @@ mem_copy_benchmark(struct test_configure *cfg, > bool is_dma) > uint32_t avg_cycles_total; > float mops, mops_total; > float bandwidth, bandwidth_total; > + int ret =3D 0; >=20 > if (setup_memory_env(cfg, &srcs, &dsts) < 0) > goto out; > @@ -454,6 +461,16 @@ mem_copy_benchmark(struct test_configure *cfg, > bool is_dma) >=20 > rte_eal_mp_wait_lcore(); >=20 > + for (i =3D 0; i < cfg->nr_buf; i++) { Here i is uint16_t which will overflow when memsize is set to 10 in the def= ault config.ini, please increase it to 32-bit. > + if (memcmp(rte_pktmbuf_mtod(srcs[i], void *), > + rte_pktmbuf_mtod(dsts[i], void *), > + cfg->buf_size.cur) !=3D 0) { > + printf("Copy validation fails for buffer number %d\n", > i); > + ret =3D -1; > + goto out; > + } > + } > + > mops_total =3D 0; > bandwidth_total =3D 0; > avg_cycles_total =3D 0; > @@ -505,4 +522,6 @@ mem_copy_benchmark(struct test_configure *cfg, > bool is_dma) > rte_dma_stop(ldm->dma_ids[i]); > } > } > + > + return ret; > } > diff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c > index e5bccc27da..f917be4216 100644 > --- a/app/test-dma-perf/main.c > +++ b/app/test-dma-perf/main.c > @@ -86,20 +86,24 @@ output_header(uint32_t case_id, struct > test_configure *case_cfg) > output_csv(true); > } >=20 > -static void > +static int > run_test_case(struct test_configure *case_cfg) > { > + int ret =3D 0; > + > switch (case_cfg->test_type) { > case TEST_TYPE_DMA_MEM_COPY: > - mem_copy_benchmark(case_cfg, true); > + ret =3D mem_copy_benchmark(case_cfg, true); > break; > case TEST_TYPE_CPU_MEM_COPY: > - mem_copy_benchmark(case_cfg, false); > + ret =3D mem_copy_benchmark(case_cfg, false); > break; > default: > printf("Unknown test type. %s\n", case_cfg->test_type_str); > break; > } > + > + return ret; > } >=20 > static void > @@ -144,8 +148,10 @@ run_test(uint32_t case_id, struct test_configure > *case_cfg) > case_cfg->scenario_id++; > printf("\nRunning scenario %d\n", case_cfg->scenario_id); >=20 > - run_test_case(case_cfg); > - output_csv(false); > + if (run_test_case(case_cfg) < 0) > + printf("\nTest fails! skipping this scenario.\n"); > + else > + output_csv(false); >=20 > if (var_entry->op =3D=3D OP_ADD) > var_entry->cur +=3D var_entry->incr; > diff --git a/app/test-dma-perf/main.h b/app/test-dma-perf/main.h > index f65e264378..658f22f673 100644 > --- a/app/test-dma-perf/main.h > +++ b/app/test-dma-perf/main.h > @@ -59,6 +59,6 @@ struct test_configure { > uint8_t scenario_id; > }; >=20 > -void mem_copy_benchmark(struct test_configure *cfg, bool is_dma); > +int mem_copy_benchmark(struct test_configure *cfg, bool is_dma); >=20 > #endif /* MAIN_H */ > -- > 2.25.1