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 22E4CA034C; Wed, 21 Sep 2022 08:18:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 092F840697; Wed, 21 Sep 2022 08:18:10 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 13F764014F for ; Wed, 21 Sep 2022 08:18:07 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28KJXXnx019613 for ; Tue, 20 Sep 2022 23:18:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=H3lG613k/8ygLPMuLA873QGJFmIRpSf26jPYzLzG9PY=; b=OmaGh5Bzs5nu4wzKxgsYMZjXFRgtmbLJuk+7Nz6ujwq3vHv4B2j+NYFVs3xRUXGCK5+W cA+tGjQY4JruzQuTUrmQFgtZ4zfiYZDac+yPrk60+se3Xb/0CqcvMYNE1yB6X8qjqY04 yfOeIhP0jvwVPlBJVlvcX4/T8iN45zDZ2suICCZJOvIrrqCMoY9BTtwe5foSgPSSZBBO jnCQUoTM4+Dusukoufyi8rFwSGDqrcTrhxPdtfHv28RFmcBrmG7r8qVUz9dlWUHhF6tK yjCZGDeNrl1x8jWZoxAKz7IYaqVMxHoj8F561oLwaFWAmwL6t3lAaEAE1qZSlXWu4DMH 5g== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jqksaa0xa-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 20 Sep 2022 23:18:04 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 20 Sep 2022 23:16:05 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Sep 2022 23:16:04 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.28.161.88]) by maili.marvell.com (Postfix) with ESMTP id 35F1B3F7073; Tue, 20 Sep 2022 23:16:02 -0700 (PDT) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: Subject: [PATCH v2 2/3] event/cnxk: set dequeue mode to prefetch with wait Date: Wed, 21 Sep 2022 11:45:57 +0530 Message-ID: <20220921061558.3747-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921061558.3747-1-pbhagavatula@marvell.com> References: <20220719111125.8276-2-pbhagavatula@marvell.com> <20220921061558.3747-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Ww6FnPJ8KasYHq1bzYQ8p49m2vK9Td8x X-Proofpoint-ORIG-GUID: Ww6FnPJ8KasYHq1bzYQ8p49m2vK9Td8x X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-21_03,2022-09-20_02,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 Set default GetWork(dequeue) mode to prefetch with wait for event. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 5 +++-- drivers/event/cnxk/cn10k_eventdev.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/guides/eventdevs/cnxk.rst b/doc/guides/eventdevs/cnxk.rst index 8537f6257e..69eabf7f22 100644 --- a/doc/guides/eventdevs/cnxk.rst +++ b/doc/guides/eventdevs/cnxk.rst @@ -79,8 +79,9 @@ Runtime Config Options - ``CN10K Getwork mode`` - CN10K supports multiple getwork prefetch modes, by default the prefetch - mode is set to none. + CN10K supports three getwork prefetch modes no prefetch[0], prefetch + immediately[1] and delayed prefetch on forward progress event[2]. + The default getwork mode is 2. For example:: diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c index 1774455b4c..0651b2d15a 100644 --- a/drivers/event/cnxk/cn10k_eventdev.c +++ b/drivers/event/cnxk/cn10k_eventdev.c @@ -982,6 +982,7 @@ cn10k_sso_init(struct rte_eventdev *event_dev) return 0; } + dev->gw_mode = CN10K_GW_MODE_PREF_WFE; rc = cnxk_sso_init(event_dev); if (rc < 0) return rc; -- 2.25.1