app/eventdev: remove unnecessary barrier for order test
PATCH 1/1 app/eventdev: remove unnecessary barrier for order test
For "order_launch_lcores" function, wmb after that the main lcore updates the variable "t->err", which represents the end of the test signal, is unnecessary. Because after the main lcore updates this siginal variable, it will jump out of the launch function loop, and wait other lcores stop or return error in the main function(evt_main.c). During this time, there is no storing operation and thus no need for wmb.
--- app/test-eventdev/test_order_common.c | 1 - 1 file changed, 1 deletion(-)
app/test-eventdev/test_order_common.c +0 -1
@@ -308,7 +308,6 @@ order_launch_lcores(struct evt_test *test, struct evt_options *opt,rte_event_dev_dump (opt->dev_id, stdout);evt_err ("No schedules for seconds, deadlock" ); t->err = true; -rte_smp_wmb ();break ; } old_remaining = remaining;
Signature · 1 line
2.25.1
A message that is not in the archive (sent off-list or not yet received): AM5PR0802MB2465F23DEA897DA3CFB06B029E2C9@AM5PR0802MB2465.eurprd08.prod.outlook.com
Hi, Jerin
Sorry to disturb you. Would you please help me review this patch, thanks very much.
Best Regards
Feifei
Quoted 41 lines
-----Original Message-----
From: Feifei Wang <[email protected]>
Sent: Monday, May 10, 2021 2:12 PM
To: [email protected]
Cc: [email protected]; nd <[email protected]>; Feifei Wang <[email protected]>; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>
Subject: [PATCH] app/eventdev: remove unnecessary barrier for order testFor "
order_launch_lcores" function, wmb after that the main lcore updates the variable "t->err", which represents the end of the test signal, is unnecessary. Because after the main lcore updates this siginal variable, it will jump out of the launch function loop, and wait other lcores stop or return error in the mainfunction(evt_main.c).
During this time, there is no storing operation and thus no need for wmb.Signed-off-by Feifei Wang <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>--- app/test-eventdev/test_order_common.c | 1 - 1 file changed, 1 deletion(-)app/test- renamed from app/test-eventdev/test_order_common.c +0
-0
eventdev/test_order_common.c
index04456d56db..d7760061ba100644app/test-eventdev/test_order_common.c +0
-1@@ -308,7 +308,6 @@ order_launch_lcores(struct evt_test *test, struct evt_options *opt,rte_event_dev_dump (opt->dev_id, stdout);evt_err ("No schedules for seconds, deadlock"); t->err = true; -rte_smp_wmb ();break ;app/test-eventdev/test_order_common.c +0
-1} old_remaining = remaining; --2.25.1
Quoted 4 lines · Feifei Wang
Hi, Jerin
Sorry to disturb you. Would you please help me review this patch, thanks very much.
In slowpath, I thought of having this barrier. But I agree that it can be removed.
Since this is not bug. We will merge this patch in next release.
Quoted 47 lines
Best Regards
FeifeiQuoted 41 lines
-----Original Message-----
From: Feifei Wang <[email protected]>
Sent: Monday, May 10, 2021 2:12 PM
To: [email protected]
Cc: [email protected]; nd <[email protected]>; Feifei Wang <[email protected]>; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>
Subject: [PATCH] app/eventdev: remove unnecessary barrier for order testFor "
order_launch_lcores" function, wmb after that the main lcore updates the variable "t->err", which represents the end of the test signal, is unnecessary. Because after the main lcore updates this siginal variable, it will jump out of the launch function loop, and wait other lcores stop or return error in the mainfunction(evt_main.c).
During this time, there is no storing operation and thus no need for wmb.Signed-off-by Feifei Wang <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>--- app/test-eventdev/test_order_common.c | 1 - 1 file changed, 1 deletion(-)app/test- renamed from app/test-eventdev/test_order_common.c +0
-0
eventdev/test_order_common.c
index04456d56db..d7760061ba100644app/test-eventdev/test_order_common.c +0
-1@@ -308,7 +308,6 @@ order_launch_lcores(struct evt_test *test, struct evt_options *opt,rte_event_dev_dump (opt->dev_id, stdout);evt_err ("No schedules for seconds, deadlock"); t->err = true; -rte_smp_wmb ();break ;} old_remaining = remaining;--
2.25.1
Quoted 15 lines
-----邮件原件-----
发件人: Jerin Jacob <[email protected]>
发送时间: 2021年5月18日 22:05
收件人: Feifei Wang <[email protected]>
抄送: [email protected]; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>; [email protected]; nd <[email protected]>
主题: Re: [dpdk-dev] 回复: [PATCH] app/eventdev: remove unnecessary barrier for order testQuoted 1 line · Feifei Wang
Quoted 8 lines
Quoted 3 lines
Hi, Jerin
Sorry to disturb you. Would you please help me review this patch, thanks
very much.
In slowpath, I thought of having this barrier. But I agree that it can be removed.
Since this is not bug. We will merge this patch in next release.
That's Ok. Thanks very much for your reviewing.
Best Regards
Feifei
Quoted 50 lines
Quoted 50 lines
Best Regards
FeifeiQuoted 41 lines
-----Original Message-----
From: Feifei Wang <[email protected]>
Sent: Monday, May 10, 2021 2:12 PM
To: [email protected]
Cc: [email protected]; nd <[email protected]>; Feifei Wang <[email protected]>; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>
Subject: [PATCH] app/eventdev: remove unnecessary barrier for order testFor "
order_launch_lcores" function, wmb after that the main lcore updates the variable "t->err", which represents the end of the test signal, is unnecessary. Because after the main lcore updates this siginal variable, it will jump out of the launch function loop, and wait other lcores stop or return error in the mainfunction(evt_main.c). During this time, there is no storing operation and thus no need for wmb.Signed-off-by Feifei Wang <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>--- app/test-eventdev/test_order_common.c | 1 - 1 file changed, 1 deletion(-)app/test- renamed from app/test-eventdev/test_order_common.c +0
-0
eventdev/test_order_common.cindex04456d56db..d7760061ba100644app/test-eventdev/test_order_common.c +0
-1@@ -308,7 +308,6 @@ order_launch_lcores(struct evt_test *test,struct evt_options *opt, rte_event_dev_dump(opt->dev_id, stdout);evt_err ("No schedules for seconds, deadlock"); t->err = true; -rte_smp_wmb ();break ;} old_remaining = remaining;--
2.25.1
Quoted 9 lines · Feifei Wang
For "
order_launch_lcores" function, wmb after that the main lcore updates the variable "t->err", which represents the end of the test signal, is unnecessary. Because after the main lcore updates this siginal variable, it will jump out of the launch function loop, and wait other lcores stop or return error in the mainfunction(evt_main.c). During this time, there is no storing operation and thus no need for wmb.
Quoted 3 lines
Signed-off-by Feifei Wang <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>
Applied to dpdk-next-net-eventdev/for-main. Thanks
Quoted 19 lines
--- app/test-eventdev/test_order_common.c | 1 - 1 file changed, 1 deletion(-)app/test-eventdev/test_order_common.c +0
-2@@ -308,7 +308,6 @@ order_launch_lcores(struct evt_test *test, struct evt_options *opt,rte_event_dev_dump (opt->dev_id, stdout);evt_err ("No schedules for seconds, deadlock" ); t->err = true; -rte_smp_wmb ();break ; } old_remaining = remaining; --2.25.1