* [dpdk-dev] [PATCH] examples/vm_power: fix improper physical core mask
@ 2015-08-11 6:49 Yong Liu
2015-08-11 9:41 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Yong Liu @ 2015-08-11 6:49 UTC (permalink / raw)
To: dev
From: Marvin Liu <yong.liu@intel.com>
Host cpu mapping structure can only support 64 cpus. When run vm_power sample
on platform with more than 64 cpus, will generate improper physical core mask.
After limited supported host cpus to 64 will fix this issue.
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c
index 35ff40a..db76f2e 100644
--- a/examples/vm_power_manager/channel_manager.c
+++ b/examples/vm_power_manager/channel_manager.c
@@ -764,11 +764,13 @@ channel_manager_init(const char *path)
}
global_n_host_cpus = (unsigned)n_cpus;
- if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS)
+ if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS) {
RTE_LOG(WARNING, CHANNEL_MANAGER, "The number of host CPUs(%u) exceeds the "
"maximum of %u. No cores over %u should be used.\n",
global_n_host_cpus, CHANNEL_CMDS_MAX_CPUS,
CHANNEL_CMDS_MAX_CPUS - 1);
+ global_n_host_cpus = CHANNEL_CMDS_MAX_CPUS;
+ }
return 0;
error:
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/vm_power: fix improper physical core mask
2015-08-11 6:49 [dpdk-dev] [PATCH] examples/vm_power: fix improper physical core mask Yong Liu
@ 2015-08-11 9:41 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2015-08-11 9:41 UTC (permalink / raw)
To: Yong Liu; +Cc: dev
2015-08-11 14:49, Yong Liu:
> Host cpu mapping structure can only support 64 cpus. When run vm_power sample
> on platform with more than 64 cpus, will generate improper physical core mask.
> After limited supported host cpus to 64 will fix this issue.
>
> Signed-off-by: Marvin Liu <yong.liu@intel.com>
Fixes: e9f64db94637 ("examples/vm_power: show warning when more than 64 cores")
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-11 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-11 6:49 [dpdk-dev] [PATCH] examples/vm_power: fix improper physical core mask Yong Liu
2015-08-11 9:41 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).