linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Lynch <ntl@pobox.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: [PATCH 0/6] powerpc topology updates
Date: Sun, 27 Jul 2008 00:24:49 -0500	[thread overview]
Message-ID: <1217136295-18693-1-git-send-email-ntl@pobox.com> (raw)

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

             reply	other threads:[~2008-07-27  5:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-27  5:24 Nathan Lynch [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1217136295-18693-1-git-send-email-ntl@pobox.com \
    --to=ntl@pobox.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).