DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] event/cnxk: initialize work slot read cache
@ 2022-06-20 11:26 Volodymyr Fialko
  2022-06-20 19:02 ` Jerin Jacob
  0 siblings, 1 reply; 2+ messages in thread
From: Volodymyr Fialko @ 2022-06-20 11:26 UTC (permalink / raw)
  To: dev, Pavan Nikhilesh, Shijith Thotton; +Cc: jerinj, anoobj, Volodymyr Fialko

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 <vfialko@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] event/cnxk: initialize work slot read cache
  2022-06-20 11:26 [PATCH] event/cnxk: initialize work slot read cache Volodymyr Fialko
@ 2022-06-20 19:02 ` Jerin Jacob
  0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2022-06-20 19:02 UTC (permalink / raw)
  To: Volodymyr Fialko
  Cc: dpdk-dev, Pavan Nikhilesh, Shijith Thotton, Jerin Jacob, Anoob Joseph

On Mon, Jun 20, 2022 at 4:56 PM Volodymyr Fialko <vfialko@marvell.com> 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 <vfialko@marvell.com>

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-20 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 11:26 [PATCH] event/cnxk: initialize work slot read cache Volodymyr Fialko
2022-06-20 19:02 ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).