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 63D9BA0545; Mon, 20 Jun 2022 21:02:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 498CC4069C; Mon, 20 Jun 2022 21:02:48 +0200 (CEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mails.dpdk.org (Postfix) with ESMTP id D50A740151 for ; Mon, 20 Jun 2022 21:02:46 +0200 (CEST) Received: by mail-qk1-f175.google.com with SMTP id x75so8453219qkb.12 for ; Mon, 20 Jun 2022 12:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dSHCb4pv+NNHGPVYibNJ0+xZAoEqGhAisFG8zhUiWGI=; b=IgszcdByO6faaZGhHsESU1EZfnwkCvR6e6/DXSk+EUmZfFGQWl2Fv/Gg8WUgWu7M6y UZBm8Gk7PD5LzhE9MVRHxL71+bv4vvrZe7hx95gbop4qpM9E94Mpe7ELBR7km+6J8j8v h3WVle6iqxlhJnqcnXhpOzxNMo5R0ZtqLZoLOW6TEBxNCJKj3Y84ltAVqcEO+SKRrzqK u8HwYhxRS9zAgAI2kKlZDMeaaNUal3eDxz0dGcczUA9OoHQeHCmteh58tQzdBsl6LAhB kxm/ZbYnIw1juNMc1jtGJlGUa02PbkeUrFirSyXbwnojj+3OEK6ci52KUE+F8heQN4Qh ES7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dSHCb4pv+NNHGPVYibNJ0+xZAoEqGhAisFG8zhUiWGI=; b=kFnulmY+7lsrIvePSEPy/QkT8Wv96V2N4ITanoXPM71L2q7SNj20WZEo7MjJbIjbLi eiGZg8vqAmTm90Bgy8EiH5cXf0s7xXANUjwGWu7KUrst0cN5XKIsTgoOA3CZ1fkeqbyO pBXM1ZT03ghH5lTT9RgiX1+eK/qd8OKpFNCmLATOHFojbXQOD/WfNibcPjbpy7K9tgav vFBRVwH2PqD/37/kvOEiT0JpFT6gJXasdjd2rzc964+7hJYW2hHdje0tAhRQgT7n4rse uFBOvFwY2AcqfGZZTGeJY1SWnlzRIx6lJfvGEtwnq/G5d6UC/qlKQNr8Er7jh2/ghmMx 8Lfg== X-Gm-Message-State: AJIora+NRcBZf+5y2a4ZrHv8eFwiTG7uryHanVEyMaecVDpmIE4XKORW 4pdL6xTMuNRNgMs+B3pgBPS1i/OBNrEf/MNhUzo/iDoUjRI= X-Google-Smtp-Source: AGRyM1uvcyC8Js6CcKWmSm5q+em1LYvG9uroKOA3GZmu+vqiZiwPNzIthCXL3ga9jjcp5nRkzMv0UoGLPa5zVck9YCM= X-Received: by 2002:ae9:e851:0:b0:6a7:5a0f:f7b9 with SMTP id a78-20020ae9e851000000b006a75a0ff7b9mr17604685qkg.316.1655751766108; Mon, 20 Jun 2022 12:02:46 -0700 (PDT) MIME-Version: 1.0 References: <20220620112616.3710246-1-vfialko@marvell.com> In-Reply-To: <20220620112616.3710246-1-vfialko@marvell.com> From: Jerin Jacob Date: Tue, 21 Jun 2022 00:32:20 +0530 Message-ID: Subject: Re: [PATCH] event/cnxk: initialize work slot read cache To: Volodymyr Fialko Cc: dpdk-dev , Pavan Nikhilesh , Shijith Thotton , Jerin Jacob , Anoob Joseph Content-Type: text/plain; charset="UTF-8" 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 On Mon, Jun 20, 2022 at 4:56 PM Volodymyr Fialko wrote: > > 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 Applied to dpdk-next-net-eventdev/for-main. Thanks > --- > 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 >