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 84F4143261; Wed, 1 Nov 2023 15:08:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 038DB4029E; Wed, 1 Nov 2023 15:08:57 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2085.outbound.protection.outlook.com [40.107.22.85]) by mails.dpdk.org (Postfix) with ESMTP id 3CFB5400EF for ; Wed, 1 Nov 2023 15:08:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UFnGPeABjxuIhbMv0yd0qJtsm/UlISmH/t+5oT75e0BedLXRsKN9fOSbkPXx3gjBt6faeWVWo30HHrdhBPsrVyK0nPNVfmyVEENT82Jiq3a2GUy5ce32330XiW0j7p/l52XKcpnRh63yjR9WCwHOwLXN8gs1nysA1AIh9zN0b3r4d3DHhyUDsCr3UWpjLBDBXViK1CTuzGrPsFA4p0Z1DcDV0D33ftEOSlN1gCxf09VPKJoscgPmePcCbFYnoftQvtPNHdt8Jd8FuHtA7T1+o6pXxc7R42bJcaCcBaa/CEP+MzndEwcelK+wzRB7CulkMXPkFwaP0JFYnLGEg6n3cw== 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=JVGEkmi/58UfFxg1tA86wXGfjU7Jd0tRWJtDF0gkYIE=; b=LlRT7SIFqATH1alPF/wPe8RGtqQpJeFNv+SSB8lsUc/oJXioedOvYYQ3pKm9VpLb9HJmO0XRoK8xqtnT98JU80y7HUWZuOEk7x7PkeP+UIz6RRlLrweuPO+M9wmPcZld6jbXQr86RlbdPHD2rgjXbWaYjzCqU9/Jh77o1/Nfg1uCD+nStK4TuQU+pBCKiASE3JxQb+Mg3gxpPrKrEHAobwg8wQ/4tMWBVz/a/7/bbdhx87KY5sTDIxl4634DcYZPopn3tbjh/nD0WFIqbpD05PpxEPPNy0FOvRNUvvGihVAxy7r9I++xfS1t1UmpYwpyqq+USh9ffTKqV3fwvJO48Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVGEkmi/58UfFxg1tA86wXGfjU7Jd0tRWJtDF0gkYIE=; b=DloCTYbk7MquMv9eDY53Mvb/2wJ9q/qvgbwZcWvRvr9FfkBXkClmM2eDrToK7lKeR1bOGS+ClLd3lnmrWW8HOF5ftR7Nn+bwgmNkXHAKd2WyiECp+Z7yCGfPmCG+1Ar31FbvXM2GJ7Lwc8aDlQa9jIArq0MHgm9sDcnHIJwDIuk= Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by VE1PR04MB7230.eurprd04.prod.outlook.com (2603:10a6:800:1ab::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.16; Wed, 1 Nov 2023 14:08:53 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::6634:da34:8424:50b5]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::6634:da34:8424:50b5%4]) with mapi id 15.20.6954.017; Wed, 1 Nov 2023 14:08:53 +0000 From: Hemant Agrawal To: Amit Prakash Shukla , Chengwen Feng , Kevin Laatz , Bruce Richardson CC: "dev@dpdk.org" , "jerinj@marvell.com" , "conor.walsh@intel.com" , "vattunuru@marvell.com" , Gagandeep Singh , "Sachin Saxena (OSS)" , "cheng1.jiang@intel.com" , "ndabilpuram@marvell.com" , "anoobj@marvell.com" , "mb@smartsharesystems.com" Subject: RE: [PATCH] test/dma: fix for buffer auto free Thread-Topic: [PATCH] test/dma: fix for buffer auto free Thread-Index: AQHaDKzEJv1qbmPixU6rZQLzInBRQ7Blf52Q Date: Wed, 1 Nov 2023 14:08:53 +0000 Message-ID: References: <20231101101809.3546500-1-amitprakashs@marvell.com> In-Reply-To: <20231101101809.3546500-1-amitprakashs@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXPR04MB9328:EE_|VE1PR04MB7230:EE_ x-ms-office365-filtering-correlation-id: 53aed87a-0df6-4abc-ad66-08dbdae414b0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pu/53E5sSq9qF+HYOfURlcKLy3okvd97YK/QW8qYkls2BuxKOxVF+61U/3BEf0ZHBf/NJyP5/wzLM/KREwz25stk2Mcm9Z8SdoheZVdQt1Q9O7VRLHaXpy+fj4nqHUbxpQWxYuU+EQZfn2IMXVc7NcQbsBSzHKhT8dBri6L4KnRZNxtLdvxURUylq96HpZZkkIfcT1IqnuK3hv9dvFCHnr8boVwgaf9cNoqPf9fQurOuMjqElWfEmh/fVBuFXmbPC3KpQi6uI7H3LLfTJdWQq4m4kHm60W1TiEbTEHNhWWf0gl+sjpRbHxo7xYW7awQmaicDyZIghmTud2SnpHyVs8uu/yvpv+Cwg0R58vm2fvc6kJq69Li4gf5QsY5dwq2bcGDt9otINB6pNhF6Rdd/Ffe1VasmVpg6r3KuEF699Mgg+cN6tNKEGJrQ4w1w+7QEmsiduPFbhs1HRR1/pmYHC2vdd+mzmKRDXB1zhlFFjj9ywA1HhUIRA7OmNH7CCIhVlj/53kScyyAEQEqrdv+qJpg+N3zSVgr2XErmGo3cH0VEzcQhuw9Lc4wytZ89dZp6PqG1t1tLjtnuylFzkUQ6/2psWhnrftzX4SFtk4jx9mMcU3AoWRF4QEtDq0PQNOcd x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(376002)(136003)(346002)(39860400002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(38070700009)(55016003)(2906002)(52536014)(7416002)(5660300002)(41300700001)(44832011)(86362001)(4326008)(8676002)(8936002)(33656002)(54906003)(64756008)(122000001)(38100700002)(71200400001)(26005)(9686003)(7696005)(66946007)(76116006)(66476007)(316002)(66446008)(66556008)(6506007)(478600001)(110136005)(55236004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Ku0FT5ArLCsbYjf3kcZ4QKqS9hK7EShhYNCpGCuq//Od+TmjOYPQqgR8jObD?= =?us-ascii?Q?5kw6kHmi8miRFEJK3+LUti/ZeqQD8eJ+0/wwqVnbiNuU1VxxPboNTwZLhpSk?= =?us-ascii?Q?zEWhoHO/7IZ7qHXrGVQwfEao4RUbtsbdGbxL+LdOovxv9AI9+gEBPm6X8ZQO?= =?us-ascii?Q?Me7nPonSoSDzGXrn0paCbogBxc2ndCYfvglRJm9U74n7jiMdZ9tElMLDAQbT?= =?us-ascii?Q?Uxh7imkuEtmkodpfVyZKE8zAIXo7XJCsNXwudxcVNMk73TK48SgYDgLA7IgH?= =?us-ascii?Q?DCsTi+JezT4sP/qAzJNNpHPrJPbKdrLdxbYOTE2fJfYU2F/EL+wq8W6kJMXw?= =?us-ascii?Q?6EFC1RRkcuQcx4MTFHB7y5N79ur9sx1lfbr027Ip+Wy2szE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PnpbvUpvwaPZfgDMJ+dkgirbflpGval+YjLO9e?= =?us-ascii?Q?hfcnDn9WfIYARVVUNwzQF4AjWVIW5BvJLNUZQMgUfa+T+xfJahmk/Z53QIiV?= =?us-ascii?Q?W+mtIQp7Nls+S9ur0FAELUjy8sIQyKSg9bOzVEt7dhTIXRXLQ+LAXKSDn+UQ?= =?us-ascii?Q?f/kI5tBS6uqOmoBAZr+nbZ9R6P0RgjEm/TbYj6MV9eRw7kej4EeZGQ7bGYNg?= =?us-ascii?Q?kX4zAGpYJU+9CAobtgG0KWAP1xUiWJG+0KfUh5xtb1Nv9wktCbPGBTuvLvaf?= =?us-ascii?Q?eIiqLSELcY8PGYfErs4aKP8Eb/LoTqa0p6slGEBN?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53aed87a-0df6-4abc-ad66-08dbdae414b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2023 14:08:53.7338 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JvwaZnsIwiVpp1Gv7nBR/Hw8ctQ9neBOnzA+WTJtbwtNgJ7jiYnwtNfbP3O5fw88likbVmTUkxTS5yqJPwrsYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7230 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 > diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index > 216f84b6bb..3d4cb37ee6 100644 > --- a/app/test/test_dmadev.c > +++ b/app/test/test_dmadev.c > @@ -49,6 +49,8 @@ struct dma_add_test dma_add_test[] =3D { > [TEST_M2D_AUTO_FREE] =3D {.name =3D "m2d_auto_free", .enabled =3D > false}, }; >=20 > +static bool dev_init; [Hemant] should't it be per device id?=20 > + > static void > __rte_format_printf(3, 4) > print_err(const char *func, int lineno, const char *format, ...) @@ -837= ,7 > +839,6 @@ test_m2d_auto_free(int16_t dev_id, uint16_t vchan) > }; > uint32_t buf_cnt1, buf_cnt2; > struct rte_mempool_ops *ops; > - static bool dev_init; > uint16_t nb_done =3D 0; > bool dma_err =3D false; > int retry =3D 100; > @@ -1011,6 +1012,7 @@ test_dmadev_instance(int16_t dev_id) >=20 > if ((info.dev_capa & RTE_DMA_CAPA_M2D_AUTO_FREE) && > dma_add_test[TEST_M2D_AUTO_FREE].enabled =3D=3D true) { > + dev_init =3D false; > if (runtest("m2d_auto_free", test_m2d_auto_free, 128, > dev_id, vchan, > CHECK_ERRS) < 0) > goto err; > -- > 2.25.1