Skip to contentSkip to conversation

ice: Unbind the workqueue

PATCH RESEND In review Tony Nguyen 2 participants 2 messages Oct 7, 2024 – Oct 17, 2024

Subsystems (3)
lore
Share & tools
lore

Tony Nguyen

author maintainer
#0 lore raw

PATCH RESEND 1/1 ice: Unbind the workqueue

From: Frederic Weisbecker <[email protected]>

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.

---
Resend of: https://lore.kernel.org/all/[email protected]/
- Added IWL and netdev lists

 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
index 179631921611..b819e7f9d97d 100644
@@ -5904,7 +5904,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.42.0
Tested-by on v1 1/1
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Tony Nguyen
Sent: Tuesday, October 8, 2024 3:14 AM
To: [email protected]
Cc: Kitszel, Przemyslaw <[email protected]>; Frederic Weisbecker <[email protected]>; [email protected]; [email protected]; Zaremba, Larysa <[email protected]>
Subject: [Intel-wired-lan] [RESEND PATCH iwl-next] ice: Unbind the workqueue

From: Frederic Weisbecker <[email protected]>

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.

Quoted 8 lines

---
Resend of: https://lore.kernel.org/all/[email protected]/
- Added IWL and netdev lists

 drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)