crypto: iaa - fix per-node CPU counter reset in rebalance_wq_table()
Subsystems (2)
PATCH 1/8 crypto: iaa - fix per-node CPU counter reset in rebalance_wq_table()
The cpu counter used to compute the IAA device index is reset to zero at the start of each NUMA node iteration. This causes CPUs on every node to map starting from IAA index 0 instead of continuing from the previous node's last index. On multi-node systems, this results in all nodes mapping their CPUs to the same initial set of IAA devices, leaving higher-indexed devices unused.
Move the cpu counter initialization before the for_each_node_with_cpus() loop so that the IAA index computation accumulates correctly across all nodes.
--- drivers/crypto/intel/iaa/iaa_crypto_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/intel/iaa/iaa_crypto_main.c +1 -1
@@ -906,8 +906,8 @@ static void rebalance_wq_table(void)return ; } + cpu =0 ;for_each_node_with_cpus (node) { - cpu =0 ; node_cpus =cpumask_of_node (node);for_each_cpu (node_cpu, node_cpus) {
base-commit: a861d7b937a278f462a70311670ab1f13febb6d8
Signature · 1 line
2.53.0
Ignore this. Was sent by mistake.
Regards,
Signature · 1 line
Giovanni
-----Original Message-----
From: Cabiddu, Giovanni <[email protected]>
Sent: Saturday, March 7, 2026 3:10 AM
To: [email protected]
Cc: [email protected]; qat-linux <[email protected]>; Cabiddu, Giovanni <[email protected]>
Subject: [PATCH 1/8] crypto: iaa - fix per-node CPU counter reset in rebalance_wq_table()
The cpu counter used to compute the IAA device index is reset to zero at the start of each NUMA node iteration. This causes CPUs on every node to map starting from IAA index 0 instead of continuing from the previous node's last index. On multi-node systems, this results in all nodes mapping their CPUs to the same initial set of IAA devices, leaving higher-indexed devices unused.
Move the cpu counter initialization before the for_each_node_with_cpus() loop so that the IAA index computation accumulates correctly across all nodes.
--- drivers/crypto/intel/iaa/iaa_crypto_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/intel/iaa/iaa_crypto_main.c +1 -1
@@ -906,8 +906,8 @@ static void rebalance_wq_table(void)return ; } + cpu =0 ;for_each_node_with_cpus (node) { - cpu =0 ; node_cpus =cpumask_of_node (node);for_each_cpu (node_cpu, node_cpus) {
base-commit: a861d7b937a278f462a70311670ab1f13febb6d8 --
2.53.0