1. 26 11月, 2009 2 次提交
    • I
      x86: dumpstack, 64-bit: Disable preemption when walking the IRQ/exception stacks · 67f2de0b
      Ingo Molnar 提交于
      This warning:
      
      [  847.140022] rb_producer   D 0000000000000000  5928   519      2 0x00000000
      [  847.203627] BUG: using smp_processor_id() in preemptible [00000000] code: khungtaskd/517
      [  847.207360] caller is show_stack_log_lvl+0x2e/0x241
      [  847.210364] Pid: 517, comm: khungtaskd Not tainted 2.6.32-rc8-tip+ #13761
      [  847.213395] Call Trace:
      [  847.215847]  [<ffffffff81413bde>] debug_smp_processor_id+0x1f0/0x20a
      [  847.216809]  [<ffffffff81015eae>] show_stack_log_lvl+0x2e/0x241
      [  847.220027]  [<ffffffff81018512>] show_stack+0x1c/0x1e
      [  847.223365]  [<ffffffff8107b7db>] sched_show_task+0xe4/0xe9
      [  847.226694]  [<ffffffff8112f21f>] check_hung_task+0x140/0x199
      [  847.230261]  [<ffffffff8112f4a8>] check_hung_uninterruptible_tasks+0x1b7/0x20f
      [  847.233371]  [<ffffffff8112f500>] ? watchdog+0x0/0x50
      [  847.236683]  [<ffffffff8112f54e>] watchdog+0x4e/0x50
      [  847.240034]  [<ffffffff810cee56>] kthread+0x97/0x9f
      [  847.243372]  [<ffffffff81012aea>] child_rip+0xa/0x20
      [  847.246690]  [<ffffffff81e43494>] ? restore_args+0x0/0x30
      [  847.250019]  [<ffffffff81e43083>] ? _spin_lock+0xe/0x10
      [  847.253351]  [<ffffffff810cedbf>] ? kthread+0x0/0x9f
      [  847.256833]  [<ffffffff81012ae0>] ? child_rip+0x0/0x20
      
      Happens because on preempt-RCU, khungd calls show_stack() with
      preemption enabled.
      
      Make sure we are not preemptible while walking the IRQ and exception
      stacks on 64-bit. (32-bit stack dumping is preemption safe.)
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      67f2de0b
    • I
      x86: dumpstack: Clean up the x86_stack_ids[][] initalization and other details · b8030906
      Ingo Molnar 提交于
      Make the initialization more readable, plus tidy up a few small
      visual details as well.
      
      No change in functionality.
      
      LKML-Reference: <new-submission>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      b8030906
  2. 24 11月, 2009 1 次提交
  3. 23 11月, 2009 1 次提交
  4. 14 11月, 2009 3 次提交
    • I
      x86: Fix cpu_devs[] initialization in early_cpu_init() · 31c997ca
      Ingo Molnar 提交于
      Yinghai Lu noticed that this commit:
      
        0388423d: x86: Minimise printk spew from per-vendor init code
      
      mistakenly left out the initialization of cpu_devs[] in the
      !PROCESSOR_SELECT case. Fix it.
      Reported-by: NYinghai Lu <yinghai@kernel.org>
      Cc: Dave Jones <davej@redhat.com>
      LKML-Reference: <20091113203000.GA19160@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      31c997ca
    • R
      x86: Remove CPU cache size output for non-Intel too · b01c845f
      Roland Dreier 提交于
      As Dave Jones said about the output in intel_cacheinfo.c: "They
      aren't useful, and pollute the dmesg output a lot (especially on
      machines with many cores).  Also the same information can be
      trivially found out from userspace."
      
      Give the generic display_cacheinfo() function the same treatment.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Cc: Mike Travis <travis@sgi.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Cc: Jack Steiner <steiner@sgi.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      LKML-Reference: <adaocn6dp99.fsf_-_@roland-alpha.cisco.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      b01c845f
    • D
      x86: Minimise printk spew from per-vendor init code · 0388423d
      Dave Jones 提交于
      In the default case where the kernel supports all CPU vendors,
      we currently print out a bunch of not useful messages on every
      system.
      
      32-bit:
      KERNEL supported cpus:
        Intel GenuineIntel
        AMD AuthenticAMD
        NSC Geode by NSC
        Cyrix CyrixInstead
        Centaur CentaurHauls
        Transmeta GenuineTMx86
        Transmeta TransmetaCPU
        UMC UMC UMC UMC
      
      64-bit:
      KERNEL supported cpus:
        Intel GenuineIntel
        AMD AuthenticAMD
        Centaur CentaurHauls
      
      Given that "what CPUs does the kernel support" isn't useful for
      the "support everything" case, we can suppress these printk's.
      Signed-off-by: NDave Jones <davej@redhat.com>
      LKML-Reference: <20091113203000.GA19160@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      0388423d
  5. 13 11月, 2009 1 次提交
    • D
      x86: Remove the CPU cache size printk's · 15cd8812
      Dave Jones 提交于
      They aren't really useful, and they pollute the dmesg output a lot
      (especially on machines with many cores).
      
      Also the same information can be trivially found out from
      userspace.
      Reported-by: NMike Travis <travis@sgi.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      Acked-by: NH. Peter Anvin <hpa@zytor.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Roland Dreier <rdreier@cisco.com>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Cc: Jack Steiner <steiner@sgi.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      LKML-Reference: <20091112231542.GA7129@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      15cd8812
  6. 04 11月, 2009 1 次提交
  7. 03 11月, 2009 1 次提交
  8. 28 10月, 2009 1 次提交
  9. 27 10月, 2009 1 次提交
  10. 26 10月, 2009 3 次提交
  11. 23 10月, 2009 1 次提交
  12. 21 10月, 2009 1 次提交
  13. 20 10月, 2009 1 次提交
  14. 16 10月, 2009 6 次提交
  15. 15 10月, 2009 2 次提交
  16. 14 10月, 2009 2 次提交
  17. 13 10月, 2009 3 次提交
  18. 12 10月, 2009 3 次提交
  19. 09 10月, 2009 2 次提交
  20. 08 10月, 2009 1 次提交
    • A
      x86, timers: Check for pending timers after (device) interrupts · 9bcbdd9c
      Arjan van de Ven 提交于
      Now that range timers and deferred timers are common, I found a
      problem with these using the "perf timechart" tool. Frans Pop also
      reported high scheduler latencies via LatencyTop, when using
      iwlagn.
      
      It turns out that on x86, these two 'opportunistic' timers only get
      checked when another "real" timer happens. These opportunistic
      timers have the objective to save power by hitchhiking on other
      wakeups, as to avoid CPU wakeups by themselves as much as possible.
      
      The change in this patch runs this check not only at timer
      interrupts, but at all (device) interrupts. The effect is that:
      
       1) the deferred timers/range timers get delayed less
      
       2) the range timers cause less wakeups by themselves because
          the percentage of hitchhiking on existing wakeup events goes up.
      
      I've verified the working of the patch using "perf timechart", the
      original exposed bug is gone with this patch. Frans also reported
      success - the latencies are now down in the expected ~10 msec
      range.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Tested-by: NFrans Pop <elendil@planet.nl>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Mike Galbraith <efault@gmx.de>
      LKML-Reference: <20091008064041.67219b13@infradead.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9bcbdd9c
  21. 04 10月, 2009 3 次提交