search for: cpu_to_node

Displaying 20 results from an estimated 27 matches for "cpu_to_node".

2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
...Sep 11 13:45:23 2006 -0500 +++ b/xen/include/xen/numa.h Mon Sep 11 13:45:23 2006 -0500 @@ -2,6 +2,7 @@ #define _XEN_NUMA_H #include <xen/config.h> +#include <public/numa_structs.h> #ifdef CONFIG_DISCONTIGMEM #include <asm/numnodes.h> @@ -26,10 +27,4 @@ extern unsigned int cpu_to_node[]; #include <xen/cpumask.h> extern cpumask_t node_to_cpumask[]; -typedef struct node_data { - unsigned long node_start_pfn; - unsigned long node_spanned_pages; - unsigned int node_id; -} node_data_t; - #endif /* _XEN_NUMA_H */ diff -r 6f3c6fb05af3 xen/include/public/numa_struct...
2012 Oct 11
0
Re: [Valgrind-developers] [PATCH 1/4] Useful messages for sys/domctl interface_version mismatch.
...socket.p, + if > (sysctl->u.topologyinfo.cpu_to_socket.p) > + POST_MEM_WRITE((Addr)sysctl->u.topologyinfo.cpu_to_socket.p, > sizeof(uint32_t) * > sysctl->u.topologyinfo.max_cpu_index); - > POST_MEM_WRITE((Addr)sysctl->u.topologyinfo.cpu_to_node.p, > + if (sysctl->u.topologyinfo.cpu_to_node.p) > + POST_MEM_WRITE((Addr)sysctl->u.topologyinfo.cpu_to_node.p, > sizeof(uint32_t) * > sysctl->u.topologyinfo.max_cpu_index); break;
2013 Jun 20
3
[PATCH V2 1/2] cpufreq, xenpm: fix cpufreq and xenpm mismatch
Currently cpufreq and xenpm are out of sync. Fix cpufreq reporting of if turbo mode is enabled or not. Fix xenpm to not decode for tristate, but a boolean. Signed-off-by: Jacob Shin <jacob.shin@amd.com> --- tools/misc/xenpm.c | 14 +++----------- xen/drivers/cpufreq/utility.c | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/tools/misc/xenpm.c
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...; } } + if ( px_cap && avgfreq[i] ) + printf(" Avg freq\t%d\tKHz\n", avgfreq[i]); } set_xen_guest_handle(info.cpu_to_core, cpu_to_core); @@ -411,8 +408,7 @@ static void signal_int_handler(int signo set_xen_guest_handle(info.cpu_to_node, cpu_to_node); info.max_cpu_index = MAX_NR_CPU - 1; - ret = xc_topologyinfo(xc_handle, &info); - if ( !ret ) + if ( cx_cap && !xc_topologyinfo(xc_handle, &info) ) { uint32_t socket_ids[MAX_NR_CPU]; uint32_t core_ids[MAX_NR_CPU]; @@ -461,7 +457,...
2009 Jan 07
1
[PATCH 1/5] cpumask: update irq_desc to use cpumask_var_t
An embedded and charset-unspecified text was scrubbed... Name: cpumask:update-irq_desc-to-use-cpumask_var_t.patch Url: http://lists.linux-foundation.org/pipermail/virtualization/attachments/20090107/8ebe5843/attachment.txt
2009 Jan 07
1
[PATCH 1/5] cpumask: update irq_desc to use cpumask_var_t
An embedded and charset-unspecified text was scrubbed... Name: cpumask:update-irq_desc-to-use-cpumask_var_t.patch Url: http://lists.linux-foundation.org/pipermail/virtualization/attachments/20090107/8ebe5843/attachment.txt
2009 Jan 07
1
[PATCH 1/5] cpumask: update irq_desc to use cpumask_var_t
An embedded and charset-unspecified text was scrubbed... Name: cpumask:update-irq_desc-to-use-cpumask_var_t.patch Url: http://lists.linux-foundation.org/pipermail/virtualization/attachments/20090107/8ebe5843/attachment.txt
2009 Jul 15
0
[PATCH] rename for_each_cpu() to for_each_possible_cpu()
...-- 2009-07-10.orig/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c 2009-05-27 13:54:05.000000000 +0200 +++ 2009-07-10/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c 2009-07-15 10:01:39.000000000 +0200 @@ -211,7 +211,7 @@ sn2_global_tlb_purge(unsigned long start spin_lock(&sn2_ptcg_lock2); node_set(cpu_to_node(smp_processor_id()), nodes_flushed); i = 0; - for_each_cpu(cpu) { + for_each_possible_cpu(cpu) { cnode = cpu_to_node(cpu); if (!node_isset(cnode, nodes_flushed)) { cpu_set(cpu, selected_cpus); @@ -269,7 +269,7 @@ sn2_global_tlb_purge(struct mm_struct *m i++; } #else - for_each_cpu...
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...me); - return ; -out: - fprintf(stderr, "failed to set governor name\n"); } void cpu_topology_func(int argc, char *argv[]) @@ -971,7 +958,7 @@ void cpu_topology_func(int argc, char *a DECLARE_HYPERCALL_BUFFER(uint32_t, cpu_to_socket); DECLARE_HYPERCALL_BUFFER(uint32_t, cpu_to_node); xc_topologyinfo_t info = { 0 }; - int i; + int i, rc = ENOMEM; cpu_to_core = xc_hypercall_buffer_alloc(xc_handle, cpu_to_core, sizeof(*cpu_to_core) * MAX_NR_CPU); cpu_to_socket = xc_hypercall_buffer_alloc(xc_handle, cpu_to_socket, sizeof(*cpu_to_socket) * MAX_NR_CPU); @@ -9...
2007 Apr 18
8
[patch 0/6] i386 gdt and percpu cleanups
Hi Andi, This is a series of patches based on your latest queue (as of the other day, at least). It includes: - the most recent patch to compute the appropriate amount of percpu space to allocate, using a separate reservation for modules where needed. - make the percpu sections page-aligned, so that percpu variables can be page aligned if needed (which is used by gdt_page) -
2007 Apr 18
8
[patch 0/6] i386 gdt and percpu cleanups
Hi Andi, This is a series of patches based on your latest queue (as of the other day, at least). It includes: - the most recent patch to compute the appropriate amount of percpu space to allocate, using a separate reservation for modules where needed. - make the percpu sections page-aligned, so that percpu variables can be page aligned if needed (which is used by gdt_page) -
2016 Dec 08
0
[PATCH v6 1/2] sparc: fix a building error reported by kbuild
...lude/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h index 7b4898a..2255430 100644 --- a/arch/sparc/include/asm/topology_64.h +++ b/arch/sparc/include/asm/topology_64.h @@ -4,6 +4,7 @@ #ifdef CONFIG_NUMA #include <asm/mmzone.h> +#include <asm/cpudata.h> static inline int cpu_to_node(int cpu) { -- 1.8.3.1
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 14/17] paravirt_ops - vsyscall
...paravirt indirection */ + asm("rdtscp" : "=A" (dummy), "=c" (p)); } else { /* Load per CPU data from GDT */ asm("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); @@ -256,7 +257,11 @@ static void __cpuinit vsyscall_set_cpu(i node = cpu_to_node[cpu]; #endif if (cpu_has(&cpu_data[cpu], X86_FEATURE_RDTSCP)) - write_rdtscp_aux((node << 12) | cpu); + /* This is write_rdtscp_aux. It cannot be called directly + * due to the paravirt indirection */ + asm("wrmsr" : /* no output */ + : "d"(0), + &...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 14/17] paravirt_ops - vsyscall
...paravirt indirection */ + asm("rdtscp" : "=A" (dummy), "=c" (p)); } else { /* Load per CPU data from GDT */ asm("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); @@ -256,7 +257,11 @@ static void __cpuinit vsyscall_set_cpu(i node = cpu_to_node[cpu]; #endif if (cpu_has(&cpu_data[cpu], X86_FEATURE_RDTSCP)) - write_rdtscp_aux((node << 12) | cpu); + /* This is write_rdtscp_aux. It cannot be called directly + * due to the paravirt indirection */ + asm("wrmsr" : /* no output */ + : "d"(0), + &...
2008 Feb 26
7
[PATCH]Add free memory size of every NUMA node in phsical info
Returns free memory size per node in "xm info". This info can help users who want to bind their guest domain in one node of their NUMA machines thought set CPU affinity. I also write IA64 part support which I would send to XEN-IA64 mail-list. Thanks. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2006 Sep 29
0
[PATCH 2/6] xen: add per-node bucks to page allocator
...+} /* Allocate 2^@order contiguous pages. */ -struct page_info *alloc_heap_pages(unsigned int zone, unsigned int order) -{ - int i; +struct page_info *alloc_heap_pages(unsigned int zone, unsigned int cpu, + unsigned int order) +{ + unsigned int i,j, node = cpu_to_node(cpu), num_nodes = num_online_nodes(); + unsigned int request = (1UL << order); struct page_info *pg; + ASSERT(node >= 0); + ASSERT(node < num_nodes); ASSERT(zone < NR_ZONES); if ( unlikely(order > MAX_ORDER) ) @@ -302,29 +336,46 @@ struct page_info *all...
2012 Sep 04
2
[PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
..._physinfo: + /* No input params */ + break; + + case XEN_SYSCTL_topologyinfo: + PRE_XEN_SYSCTL_READ(topologyinfo, max_cpu_index); + PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_core); + PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_socket); + PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_node); + break; + + case XEN_SYSCTL_numainfo: + PRE_XEN_SYSCTL_READ(numainfo, max_node_index); + PRE_XEN_SYSCTL_READ(numainfo, node_to_memsize); + PRE_XEN_SYSCTL_READ(numainfo, node_to_memfree); + PRE_XEN_SYSCTL_READ(numainfo, node_to_node_distance); + break; + + defaul...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...paravirt indirection */ + asm("rdtscp" : "=A" (dummy), "=c" (p)); } else { /* Load per CPU data from GDT */ asm("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); @@ -257,7 +258,11 @@ static void __cpuinit vsyscall_set_cpu(i node = cpu_to_node[cpu]; #endif if (cpu_has(&cpu_data[cpu], X86_FEATURE_RDTSCP)) - write_rdtscp_aux((node << 12) | cpu); + /* This is write_rdtscp_aux. It cannot be called directly + * due to the paravirt indirection */ + asm("wrmsr" : /* no output */ + : "d"(0), + &...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...paravirt indirection */ + asm("rdtscp" : "=A" (dummy), "=c" (p)); } else { /* Load per CPU data from GDT */ asm("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG)); @@ -257,7 +258,11 @@ static void __cpuinit vsyscall_set_cpu(i node = cpu_to_node[cpu]; #endif if (cpu_has(&cpu_data[cpu], X86_FEATURE_RDTSCP)) - write_rdtscp_aux((node << 12) | cpu); + /* This is write_rdtscp_aux. It cannot be called directly + * due to the paravirt indirection */ + asm("wrmsr" : /* no output */ + : "d"(0), + &...
2007 Apr 18
3
Per-cpu patches on top of PDA stuff...
Hi Jeremy, all, Sorry this took so long, spent last week in Japan at OSDL conf then netconf. After several false starts, I ended up with a very simple implementation, which clashes significantly with your work since then 8(. I've pushed the patches anyway, but it's going to be significant work for me to re-merge them, so I wanted your feedback first. The first patch simply changes