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 49F99A0545; Mon, 20 Jun 2022 13:26:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3198040151; Mon, 20 Jun 2022 13:26:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 91FBA40150 for ; Mon, 20 Jun 2022 13:26:25 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25K9mmcw030486 for ; Mon, 20 Jun 2022 04:26:24 -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=BdXwmkvDNt5A5qiyu5cBEk7++ryf00bpq+jewJl9uQs=; b=evS5ncYgciUKg/o1thXN+14YxzbomhLfQ8yBCv6hTdNg0ulVcsVlqh+yr8kV4fPbtKqZ kjG00ZZq3HAsekT3LFeK9/9DmNPweXb6EnpM9SuSyOd/9fXWg6GONokBx0I+FT5fRt/1 iNrwRlCF4XwPFEAKv4t7HIFj9F3iKT7GI9VQQ304LQ832AyO15BbKRJo/WRsMRdUJYlu jfkAtITFT7Urdtm/PV6gKOYK9SItMp9/XoK439LiAv3rgvwkplWXOmWWXk2aGKP6w5QZ ttS6ivvwHgbmFEEyqtow5ZjlpMjr28Z1QDJIHRphBLDpcBOmcFKh6bmRbSyC7rUW6AQV Lg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gse7negkk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 20 Jun 2022 04:26:24 -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; Mon, 20 Jun 2022 04:26:22 -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; Mon, 20 Jun 2022 04:26:22 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 444875B6957; Mon, 20 Jun 2022 04:26:20 -0700 (PDT) From: Volodymyr Fialko To: , Pavan Nikhilesh , "Shijith Thotton" CC: , , Volodymyr Fialko Subject: [PATCH] event/cnxk: initialize work slot read cache Date: Mon, 20 Jun 2022 13:26:16 +0200 Message-ID: <20220620112616.3710246-1-vfialko@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: SS8kWzmOtXCWEnIDtmaGI7Lg6lAZce_u X-Proofpoint-ORIG-GUID: SS8kWzmOtXCWEnIDtmaGI7Lg6lAZce_u X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-20_05,2022-06-17_01,2022-02-23_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 Initialize gw_rdata with tag type EMPTY. Leaving tag type as zero(ATOMIC) may cause some unnecessary head wait, if cache will be used before the first update in dequeue/get_work functions. Signed-off-by: Volodymyr Fialko --- drivers/event/cnxk/cn10k_eventdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c index 2f15ff8692..d28eeb3f2f 100644 --- a/drivers/event/cnxk/cn10k_eventdev.c +++ b/drivers/event/cnxk/cn10k_eventdev.c @@ -56,6 +56,7 @@ cn10k_sso_init_hws_mem(void *arg, uint8_t port_id) ws->hws_id = port_id; ws->swtag_req = 0; ws->gw_wdata = cn10k_sso_gw_mode_wdata(dev); + ws->gw_rdata = SSO_TT_EMPTY << 32; ws->lmt_base = dev->sso.lmt_base; return ws; -- 2.25.1