Haren Myneni
<haren@linux.ibm.com>unread,Feb 10, 2026, 1:19:12 AMFeb 10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
to powerpc-utils-devel@googlegroups.com, tyreld@linux.ibm.com, mmc@linux.ibm.com, hbabu@us.ibm.com, haren@linux.ibm.com, Ryan Whittaker
After removing LMBs from a NUMA node, LMB counters should be
decremented. In the case of CPU less node, cpuless_lmb_count
should be decremented. But the current code reduces
cpuless_node_count instead of cpuless_lmb_count. This patch
reduces cpuless_lmb_count NUMA counter based on number of LMBs
selected from that specific CPU less NUMA node.
Signed-off-by: Ryan Whittaker <
ryan...@linux.ibm.com>
Reviewed-by: Mingming Cao <
m...@linux.ibm.com>
Signed-off-by: Haren Myneni <
ha...@linux.ibm.com>
---
src/drmgr/drslot_chrp_mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drmgr/drslot_chrp_mem.c b/src/drmgr/drslot_chrp_mem.c
index d37ee80..179fb17 100644
--- a/src/drmgr/drslot_chrp_mem.c
+++ b/src/drmgr/drslot_chrp_mem.c
@@ -1502,7 +1502,7 @@ static int remove_lmb_from_node(struct ppcnuma_node *node, uint32_t count)
if (node->n_cpus)
numa.lmb_count -= unlinked;
else
- numa.cpuless_node_count -= unlinked;
+ numa.cpuless_lmb_count -= unlinked;
if (!node->n_lmbs) {
node->ratio = 0; /* for sanity only */
--
2.50.1