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 083E145BA0; Tue, 22 Oct 2024 14:23:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C751B4029A; Tue, 22 Oct 2024 14:23:52 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C49B440273 for ; Tue, 22 Oct 2024 14:23:51 +0200 (CEST) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49MATHOq021476 for ; Tue, 22 Oct 2024 05:23:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=cnuniCc0owGFXVdlEllf6QC e6bbY1N2PeQPuh9Evq1g=; b=CgK+qBbR5xSuU3rF4NZ6TZhpLFPvcGu+7jXzvwG owMXw2831GkaDE2wbUjdRl1Yo3eVRnIlp8HgClciXHiABSMGrfMbj5trd0yq5pm+ vBu5Pxz/YEAoX9+R+UmNAwbLe6xmInv0JOFr9QJALQTYr1LdXRY9RtIYyc5oW0qc WPteG7Vl48MFqIvnWUmkPB0Zm0O4IXoPCPlQTv3wRl3d6UJ/ebirjFUGHCwL/vfw 5DS+fTEKOR7tWbyPCL3YoIojQdIfYpCZQtpktF50VT08wC5r4TQI8SzpfAqB/xh0 Ks25iS5gnQSd13JlR3XSO4yp314Ju9l8YVO07YlcXbJZalw== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 42eaajr7gs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 Oct 2024 05:23:49 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 22 Oct 2024 05:23:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 22 Oct 2024 05:23:48 -0700 Received: from MININT-80QBFE8.corp.innovium.com (MININT-80QBFE8.marvell.com [10.28.164.106]) by maili.marvell.com (Postfix) with ESMTP id 5C1BC3F7041; Tue, 22 Oct 2024 05:23:46 -0700 (PDT) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: Subject: [PATCH] event/cnxk: fix getwork write data on reconfig Date: Tue, 22 Oct 2024 17:53:39 +0530 Message-ID: <20241022122339.18255-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: vI_PQhBml22nSqGZKdbWGSJPH5PmGaZW X-Proofpoint-GUID: vI_PQhBml22nSqGZKdbWGSJPH5PmGaZW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_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 Update getwork write data on device reconfiguration to avoid working with stale configuration. Fixes: acc65ee307f7 ("eventdev: introduce event pre-scheduling") Signed-off-by: Pavan Nikhilesh --- 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 531c489172..52e8ea18ad 100644 --- a/drivers/event/cnxk/cn10k_eventdev.c +++ b/drivers/event/cnxk/cn10k_eventdev.c @@ -98,6 +98,7 @@ cn10k_sso_hws_setup(void *arg, void *hws, uintptr_t grp_base) ws->xaq_lmt = dev->xaq_lmt; ws->fc_cache_space = dev->fc_cache_space; ws->aw_lmt = ws->lmt_base; + ws->gw_wdata = cn10k_sso_gw_mode_wdata(dev); /* Set get_work timeout for HWS */ val = NSEC2USEC(dev->deq_tmo_ns); -- 2.25.1