linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] powerpc topology updates
@ 2008-07-27  5:24 Nathan Lynch
  2008-07-27  5:24 ` [PATCH 1/6] kill useless SMT code in prom_hold_cpus Nathan Lynch
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Nathan Lynch @ 2008-07-27  5:24 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, Paul Mackerras

This series consists of a couple of cleanups and a few feature
additions, all of which are more or less related to system topology
(threads, cores, caches, sysfs...)  These are independent of
each other except for 4 and 5 (core sibling and core id info).

I'd say the highlights are the last three patches, which add core and
cache information to sysfs.  Here is some example output with the
patches applied:

(Power5)
# grep -r . /sys/devices/system/cpu/cpu0/cache/ | sed
  's/\/sys\/devices\/system\/cpu\///'
cpu0/cache/index0/type:Data
cpu0/cache/index0/level:1
cpu0/cache/index0/size:32K
cpu0/cache/index0/coherency_line_size:128
cpu0/cache/index0/number_of_sets:64
cpu0/cache/index0/ways_of_associativity:4
cpu0/cache/index1/type:Instruction
cpu0/cache/index1/level:1
cpu0/cache/index1/size:64K
cpu0/cache/index1/coherency_line_size:128
cpu0/cache/index1/number_of_sets:256
cpu0/cache/index1/ways_of_associativity:2
cpu0/cache/index2/type:Unified
cpu0/cache/index2/level:2
cpu0/cache/index2/size:1920K
cpu0/cache/index2/coherency_line_size:128
cpu0/cache/index2/number_of_sets:1536
cpu0/cache/index2/ways_of_associativity:10
cpu0/cache/index3/type:Unified
cpu0/cache/index3/level:3
cpu0/cache/index3/size:36864K
cpu0/cache/index3/coherency_line_size:128
cpu0/cache/index3/number_of_sets:1
cpu0/cache/index3/ways_of_associativity:0

(Power6)
# grep -r . /sys/devices/system/cpu/cpu0/topology/ | sed \
  's/\/sys\/devices\/system\/cpu\///'
cpu0/topology/physical_package_id:-1
cpu0/topology/core_id:0
cpu0/topology/thread_siblings:00000003
cpu0/topology/thread_siblings_list:0-1
cpu0/topology/core_siblings:0000000f
cpu0/topology/core_siblings_list:0-3

Nathan Lynch (6):
  kill useless SMT code in prom_hold_cpus
  register_cpu_online should be __cpuinit
  Update cpu_sibling_maps dynamically
  make core sibling information available to userspace
  make core id information available to userspace
  show processor cache information in sysfs

 arch/powerpc/kernel/prom_init.c    |   39 +----
 arch/powerpc/kernel/setup-common.c |   24 ---
 arch/powerpc/kernel/setup_64.c     |    3 -
 arch/powerpc/kernel/smp.c          |  126 ++++++++++++++-
 arch/powerpc/kernel/sysfs.c        |  310 +++++++++++++++++++++++++++++++++++-
 include/asm-powerpc/smp.h          |    2 +
 include/asm-powerpc/topology.h     |    2 +
 7 files changed, 439 insertions(+), 67 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-28  6:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27  5:24 [PATCH 0/6] powerpc topology updates Nathan Lynch
2008-07-27  5:24 ` [PATCH 1/6] kill useless SMT code in prom_hold_cpus Nathan Lynch
2008-07-27  5:24 ` [PATCH 2/6] register_cpu_online should be __cpuinit Nathan Lynch
2008-07-27  5:24 ` [PATCH 3/6] Update cpu_sibling_maps dynamically Nathan Lynch
2008-07-27  5:24 ` [PATCH 4/6] make core sibling information available to userspace Nathan Lynch
2008-07-27  5:24 ` [PATCH 5/6] make core id " Nathan Lynch
2008-07-27  5:24 ` [PATCH 6/6] show processor cache information in sysfs Nathan Lynch
2008-07-28  6:34 ` [PATCH 0/6] powerpc topology updates Benjamin Herrenschmidt

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).