ice: Unbind the workqueue
Subsystems (2)
PATCH 1/1 ice: Unbind the workqueue
The ice workqueue doesn't seem to rely on any CPU locality and should therefore be able to run on any CPU. In practice this is already happening through the unbound ice_service_timer that may fire anywhere and queue the workqueue accordingly to any CPU.
Make this official so that the ice workqueue is only ever queued to housekeeping CPUs on nohz_full.
--- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_main.c +1 -1
@@ -5924,7 +5924,7 @@ static int __init ice_module_init(void)ice_adv_lnk_speed_maps_init (); - ice_wq =alloc_workqueue ("%s" ,0 ,0 ,KBUILD_MODNAME ); + ice_wq =alloc_workqueue ("%s" ,WQ_UNBOUND ,0 ,KBUILD_MODNAME );if (!ice_wq) {pr_err ("Failed to create workqueue\n" );return status;
Signature · 1 line
2.46.0
Quoted 18 lines · Frederic Weisbecker
The ice workqueue doesn't seem to rely on any CPU locality and should therefore be able to run on any CPU. In practice this is already happening through the unbound
ice_service_timerthat may fire anywhere and queue the workqueue accordingly to any CPU.Make this official so that the ice workqueue is only ever queued to housekeeping CPUs on
nohz_full.Signed-off-by Frederic Weisbecker <[email protected]>--- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/ice/ice_main.c +0
-0
drivers/net/ethernet/intel/ice/ice_main.c static int __init ice_module_init(void) · line 5930
Quoted 8 lines
drivers/net/ethernet/intel/ice/ice_main.c +1
-1@@ -5924,7 +5924,7 @@ static int __init ice_module_init(void)ice_adv_lnk_speed_maps_init (); - ice_wq =alloc_workqueue ("%s" ,0 ,0 ,KBUILD_MODNAME ); + ice_wq =alloc_workqueue ("%s" ,WQ_UNBOUND ,0 ,KBUILD_MODNAME );if (!ice_wq) {pr_err ("Failed to create workqueue\n" );return status;
Thank you for the patch, it would make sense for our iwl-next tree, with such assumption:
@Tony, do you want it resent with target tree in the subject?
Tony Nguyen
maintainerQuoted 28 lines · Przemek Kitszel
Quoted 18 lines · Frederic Weisbecker
The ice workqueue doesn't seem to rely on any CPU locality and should therefore be able to run on any CPU. In practice this is already happening through the unbound
ice_service_timerthat may fire anywhere and queue the workqueue accordingly to any CPU.Make this official so that the ice workqueue is only ever queued to housekeeping CPUs on
nohz_full.Signed-off-by Frederic Weisbecker <[email protected]>---
drivers/net/ethernet/intel/ice/ice_main.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/ice/ice_main.c +0
-0drivers/net/ethernet/intel/ice/ice_main.c static int __init ice_module_init(void) · line 5928
Quoted 6 lines
drivers/net/ethernet/intel/ice/ice_main.c +1
-1@@ -5924,7 +5924,7 @@ static int __init ice_module_init(void) ice_adv_lnk_speed_maps_init(); - ice_wq = alloc_workqueue("%s", 0, 0, KBUILD_MODNAME); + ice_wq = alloc_workqueue("%s", WQ_UNBOUND, 0, KBUILD_MODNAME); if (!ice_wq) { pr_err("Failed to create workqueue\n"); return status;Thank you for the patch, it would make sense for our iwl-next tree, with such assumption:
Quoted 3 lines
Reviewed-by Przemek Kitszel <[email protected]>@Tony, do you want it resent with target tree in the subject?
No, I can apply this as-is but please remember to designate a tree for future patches.
Thanks,
Tony
Quoted 34 lines · Tony Nguyen
Quoted 31 lines · Przemek Kitszel
Quoted 19 lines · Frederic Weisbecker
The ice workqueue doesn't seem to rely on any CPU locality and should therefore be able to run on any CPU. In practice this is already happening through the unbound
ice_service_timerthat may fire anywhere and queue the workqueue accordingly to any CPU.Make this official so that the ice workqueue is only ever queued to housekeeping CPUs on
nohz_full.Signed-off-by Frederic Weisbecker <[email protected]>---
drivers/net/ethernet/intel/ice/ice_main.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/intel/ice/ice_main.c +0
-0drivers/net/ethernet/intel/ice/ice_main.c static int __init ice_module_init(void) · line 5928
Quoted 6 lines
drivers/net/ethernet/intel/ice/ice_main.c +1
-1@@ -5924,7 +5924,7 @@ static int __init ice_module_init(void) ice_adv_lnk_speed_maps_init(); - ice_wq = alloc_workqueue("%s", 0, 0, KBUILD_MODNAME); + ice_wq = alloc_workqueue("%s", WQ_UNBOUND, 0, KBUILD_MODNAME); if (!ice_wq) { pr_err("Failed to create workqueue\n"); return status;Thank you for the patch, it would make sense for our iwl-next tree, with such assumption:
Reviewed-by Przemek Kitszel <[email protected]>
Quoted 4 lines
Quoted 1 line
@Tony, do you want it resent with target tree in the subject?
No, I can apply this as-is but please remember to designate a tree for future patches.
Sorry I didn't know about any tree. I can't even find where iwl-next is hosted.
Thanks.
Quoted 2 lines
Thanks,
Tony
Tony Nguyen
maintainerQuoted 1 line · Frederic Weisbecker
Le Mon, Sep 23, 2024 at 11:28:20AM -0700, Tony Nguyen a écrit :
...
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Thank you for the patch, it would make sense for our iwl-next tree, with such assumption:
Reviewed-by Przemek Kitszel <[email protected]>@Tony, do you want it resent with target tree in the subject?
No, I can apply this as-is but please remember to designate a tree for future patches.
Sorry I didn't know about any tree. I can't even find where iwl-next is hosted.
The information is here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS#n11413
For bug fixes, net-queue tree is used and next-queue for other content (dev-queue branch for both).
I did find that I crossed this patch with another and found that the initial send of this did not include the Intel Wired LAN list. I'll resend the patch to include the proper list so that patchworks can pick this up.
Thanks,
Tony