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 122B2A00C5; Tue, 19 Jul 2022 13:11:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70DCB42826; Tue, 19 Jul 2022 13:11:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B621C42684 for ; Tue, 19 Jul 2022 13:11:41 +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 26J73oAd014291 for ; Tue, 19 Jul 2022 04:11:41 -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=hPvIMHkOLasuVkWlKF6+ctXWcoI2CaHU/YP9/xX5sVw=; b=f+31rb6G3o57oYOcvaSpkfEXBV13wSvLvlXu8k9AZ7tRJ63wxeXSKQqY5QbWQbgccGoV GvcZh1g/Ha5AuluUjdYNyH8cWQUvLaBhzdJ7X2vYSK/OUq7N2lCGs92zkLrcKrG26EAX YXeMdMQrmraVIvQRCdnk86ycVJH2sXyCFwGZLnKPlNKDzicqeuRJBHQQ96TF0jt1HQ0V NGGD46mLKhsgr5utHhqOJlHx3kinrZfD/XjGIqjcG4QNqa1eNPnJ8SCU2SF9RefNoN9e 29oPyK/3Z5CgyICJ46welFlfDbGpU1DCIfEPI6eJ0L2qxMohf2GYuuDTPj6mkuCvXycg xA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3hdqw18raf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 04:11:40 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 Jul 2022 04:11:39 -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; Tue, 19 Jul 2022 04:11:39 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.28.161.88]) by maili.marvell.com (Postfix) with ESMTP id E41FE3F708A; Tue, 19 Jul 2022 04:11:36 -0700 (PDT) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: Subject: [PATCH 3/4] event/cnxk: set dequeue mode to prefetch with wait Date: Tue, 19 Jul 2022 16:41:24 +0530 Message-ID: <20220719111125.8276-3-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220719111125.8276-1-pbhagavatula@marvell.com> References: <20220719111125.8276-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: h5lwBfHGKjIxWr4ZhLB6Uv2BjMZHOOVL X-Proofpoint-GUID: h5lwBfHGKjIxWr4ZhLB6Uv2BjMZHOOVL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-18_22,2022-07-19_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 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 4a2554a8eb..6dea550b35 100644 --- a/drivers/event/cnxk/cn10k_eventdev.c +++ b/drivers/event/cnxk/cn10k_eventdev.c @@ -981,6 +981,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