From patchwork Thu Nov 3 16:16:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 119457 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C6BF3A00C2; Thu, 3 Nov 2022 17:16:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59F6542D0C; Thu, 3 Nov 2022 17:16:37 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 742A4410EF for ; Thu, 3 Nov 2022 17:16:35 +0100 (CET) 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 2A39kHu4008149 for ; Thu, 3 Nov 2022 09:16:34 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=kYbGexMk20qaAe9qLEF121ciYffe8Trh0Rfxf0D6sM0=; b=gG1AkkURyspCFJ/yq4/B7glNAGLqrV0KaNjWaAtxRt2Msr0KKJoAnuJYnf21MdGz8WDD Qpi8IEV2JAdVlBnosyxDmYiVKNYCIBwJEfrax/6a1Tk14E6b4QdvnuZ6pAcAEGX9ZqSF dCkfp7hgQcvH4UElAC00j2s2/QiTKx7MzYGZ4fP8ecpg47Zpf/EK1pU1/sMqpRZrBw+Q /DhaVe82pRxK/nk/G52KoAla7N4D8KgRl1RLoAS2NGPw29hrUPMvWaCvbyRji+wJslI3 V3vHscTFtYb2BqdWfx9hWrgTdzsofj60RobhkPhz5A7eC1y0HaSHx+hvDsSfsB9JJk3Q lQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3kmba4sg99-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 03 Nov 2022 09:16:34 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 3 Nov 2022 09:16:32 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 3 Nov 2022 09:16:32 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.28.161.88]) by maili.marvell.com (Postfix) with ESMTP id D72293F7112; Thu, 3 Nov 2022 09:16:30 -0700 (PDT) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: Subject: [PATCH] event/cnxk: fix missing mempool cookie marking Date: Thu, 3 Nov 2022 21:46:31 +0530 Message-ID: <20221103161631.3851-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: -nxTNvEXtf925RbX4ezNfXzC9RbIBEMH X-Proofpoint-ORIG-GUID: -nxTNvEXtf925RbX4ezNfXzC9RbIBEMH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 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 From: Pavan Nikhilesh Mark chunks mempool objects as "put" as they are freed to NPA automatically when they are parsed by TIM HW. Fixes: 300b796262a1 ("event/cnxk: add timer arm routine") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_worker.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/cnxk/cnxk_tim_worker.h b/drivers/event/cnxk/cnxk_tim_worker.h index 8d8ed1d3a1..eda84c6f31 100644 --- a/drivers/event/cnxk/cnxk_tim_worker.h +++ b/drivers/event/cnxk/cnxk_tim_worker.h @@ -217,6 +217,7 @@ cnxk_tim_insert_chunk(struct cnxk_tim_bkt *const bkt, if (unlikely(rte_mempool_get(tim_ring->chunk_pool, (void **)&chunk))) return NULL; + RTE_MEMPOOL_CHECK_COOKIES(tim_ring->chunk_pool, (void **)&chunk, 1, 0); *(uint64_t *)(chunk + tim_ring->nb_chunk_slots) = 0; if (bkt->nb_entry) { *(uint64_t *)(((struct cnxk_tim_ent *)(uintptr_t)