1. 23 8月, 2006 3 次提交
  2. 18 8月, 2006 5 次提交
  3. 17 8月, 2006 6 次提交
  4. 08 8月, 2006 2 次提交
    • H
      [POWERPC] Fix might-sleep warning on removing cpus · 81b73dd9
      Haren Myneni 提交于
      Noticing the following might_sleep warning (dump_stack()) during kdump
      testing when CONFIG_DEBUG_SPINLOCK_SLEEP is enabled. All secondary CPUs
      will be calling rtas_set_indicator with interrupts disabled to remove
      them from global interrupt queue.
      
      BUG: sleeping function called from invalid context at
      arch/powerpc/kernel/rtas.c:463
      in_atomic():1, irqs_disabled():1
      Call Trace:
      [C00000000FFFB970] [C000000000010234] .show_stack+0x68/0x1b0 (unreliable)
      [C00000000FFFBA10] [C000000000059354] .__might_sleep+0xd8/0xf4
      [C00000000FFFBA90] [C00000000001D1BC] .rtas_busy_delay+0x20/0x5c
      [C00000000FFFBB20] [C00000000001D8A8] .rtas_set_indicator+0x6c/0xcc
      [C00000000FFFBBC0] [C000000000048BF4] .xics_teardown_cpu+0x118/0x134
      [C00000000FFFBC40] [C00000000004539C]
      .pseries_kexec_cpu_down_xics+0x74/0x8c
      [C00000000FFFBCC0] [C00000000002DF08] .crash_ipi_callback+0x15c/0x188
      [C00000000FFFBD50] [C0000000000296EC] .smp_message_recv+0x84/0xdc
      [C00000000FFFBDC0] [C000000000048E08] .xics_ipi_dispatch+0xf0/0x130
      [C00000000FFFBE50] [C00000000009EF10] .handle_IRQ_event+0x7c/0xf8
      [C00000000FFFBF00] [C0000000000A0A14] .handle_percpu_irq+0x90/0x10c
      [C00000000FFFBF90] [C00000000002659C] .call_handle_irq+0x1c/0x2c
      [C00000000058B9C0] [C00000000000CA10] .do_IRQ+0xf4/0x1a4
      [C00000000058BA50] [C0000000000044EC] hardware_interrupt_entry+0xc/0x10
       --- Exception: 501 at .plpar_hcall_norets+0x14/0x1c
         LR = .pseries_dedicated_idle_sleep+0x190/0x1d4
      [C00000000058BD40] [C00000000058BDE0] 0xc00000000058bde0 (unreliable)
      [C00000000058BDF0] [C00000000001270C] .cpu_idle+0x10c/0x1e0
      [C00000000058BE70] [C000000000009274] .rest_init+0x44/0x5c
      
      To fix this issue, rtas_set_indicator_fast() is added so that will not
      wait for RTAS 'busy' delay and this new function is used for kdump (in
      xics_teardown_cpu()) and for CPU hotplug ( xics_migrate_irqs_away() and
      xics_setup_cpu()).
      
      Note that the platform architecture spec says that set-indicator
      on the indicator we're using here is not permitted to return the
      busy or extended busy status codes.
      Signed-off-by: NHaren Myneni <haren@us.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      81b73dd9
    • S
      [POWERPC] fix PMU initialization on pseries lpar · dcc42f48
      Sonny Rao 提交于
      We should not be calling power4_enable_pmcs() in
      pseries_lpar_enable_pmcs(); just doing the hypercall is sufficient.
      Prior to 2.6.15 we did not call power4_enable_pmcs() for an lpar.
      
      power4_enable_pmcs() tries to read the hid0 register which is no
      longer legal for an lpar in newer Power processors.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      dcc42f48
  5. 06 8月, 2006 2 次提交
  6. 05 8月, 2006 1 次提交
  7. 04 8月, 2006 3 次提交
  8. 03 8月, 2006 5 次提交
  9. 02 8月, 2006 1 次提交
  10. 01 8月, 2006 12 次提交
    • B
      [CPUFREQ] Propagate acpi_processor_preregister_performance return value. · 12e704db
      bert hubert 提交于
      Note how any error from acpi_processor_preregister_performance is ignored.
      
      From: bert hubert <bert.hubert@netherlabs.nl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      12e704db
    • R
      [CPUFREQ] Longhaul - Rename & fix multipliers table · 32deb2d5
      Rafa Bilski 提交于
      This table is only used by Ezra-T CPUs currently, and has values
      for some other CPU. Fix them to match the values used by that CPU,
      and for now make it clearer by renaming the variable.
      Signed-off-by: NRafa³ Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      32deb2d5
    • R
      [CPUFREQ] Longhaul - Fix power state test to do something more useful · 9fb31c3a
      Rafa Bilski 提交于
      This is changing "always true" test to something usefull.
      Signed-off-by: NRafa Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      9fb31c3a
    • R
      [CPUFREQ] Longhaul - Readd accidentally dropped line · eb23c751
      Rafa Bilski 提交于
      I lost very important line in do_powersaver
      Signed-off-by: NRafa Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      eb23c751
    • A
      [CPUFREQ] Make longhaul_walk_callback() static · c4a96c1e
      Adrian Bunk 提交于
      This patch makes the needlessly global longhaul_walk_callback() static.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NDave Jones <davej@redhat.com>
      c4a96c1e
    • A
      [CPUFREQ] X86_GX_SUSPMOD must depend on PCI · 95a53249
      Adrian Bunk 提交于
      It seems commit 32ee8c3e accidentially
      reverted cdc9cc1d, IOW, it reintroduced
      the following compile error with CONFIG_PCI=n:
      
      <--  snip  -->
      
      ...
        CC      arch/i386/kernel/cpu/cpufreq/gx-suspmod.o
      arch/i386/kernel/cpu/cpufreq/gx-suspmod.c: In function ‘gx_detect_chipset’:
      arch/i386/kernel/cpu/cpufreq/gx-suspmod.c:193: error: implicit declaration of function ‘pci_match_id’
      arch/i386/kernel/cpu/cpufreq/gx-suspmod.c:193: warning: comparison between pointer and integer
      make[3]: *** [arch/i386/kernel/cpu/cpufreq/gx-suspmod.o] Error 1
      
      <--  snip  -->
      
      This patch therefore re-adds the dependency of X86_GX_SUSPMOD on PCI.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NDave Jones <davej@redhat.com>
      95a53249
    • R
      [CPUFREQ] Longhaul - Initialise later. · 0d6daba5
      Rafa Bilski 提交于
      Without this longhaul will always fail when compiled into kernel,
      as it needs to initialise after the ACPI processor module.
      
      I lost this when I was splitting patches. Sorry.
      Signed-off-by: NRafa Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      0d6daba5
    • R
      [CPUFREQ] Longhaul - Workaround issues with APIC. · 48b7bde0
      Rafa Bilski 提交于
      There is no need to worry about local APIC.
      There is need to worry about I/O APIC, because I/O APIC
      is replacing good old 8259. According to Nehemiah datasheet VIA is
      using 3-wire bus to connect local APIC to I/O APIC.
      
      "[...] When IA32_APIC_BASE[11] is set to 0, processor APICs based on the 3-wire APIC
       bus cannot be generally re-enabled until a system hardware reset. The 3-wire bus
       looses track of arbitration that would be necessary for complete re-enabling. Certain
       (local) APIC functionality can be enabled. [...]"
      
      So we must set disable bit for each interrupt in I/O APIC registers.
      Same situation as for PIC - we must poke registers direcly.
      How to do this? I don't know. So at the moment it is better to fail.
      Signed-off-by: NRafa³ Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      48b7bde0
    • R
      [CPUFREQ] Longhaul - Hook into ACPI C states. · dadb49d8
      Rafa Bilski 提交于
      Minimal change necessary for hardware support.
      
      Changes in longhaul.c:
      - most important - now C3 state is causing transition,
      - code responsible for clearing "bus master" bit removed,
      - protect bcr2 transition in the same way as longhaul.
      Signed-off-by: NRafa³ Bilski <rafalbilski@interia.pl>
      Signed-off-by: NDave Jones <davej@redhat.com>
      dadb49d8
    • M
      [PATCH] powermac: More powermac backlight fixes · 4b755999
      Michael Hanselmann 提交于
      This patch fixes several problems:
      - The legacy backlight value might be set at interrupt time. Introduced
        a worker to prevent it from directly calling the backlight code.
      - via-pmu allows the backlight to be grabbed, in which case we need to
        prevent other kernel code from changing the brightness.
      - Don't send PMU requests in via-pmu-backlight when the machine is about
        to sleep or waking up.
      - More Kconfig fixes.
      Signed-off-by: NMichael Hanselmann <linux-kernel@hansmi.ch>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4b755999
    • M
      [PATCH] Fix trivial unwind info bug · 25d7dfda
      Markus Armbruster 提交于
      CFA needs to be adjusted upwards for push, and downwards for pop.
      arch/i386/kernel/entry.S gets it wrong in one place.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Acked-by: NJan Beulich <jbeulich@novell.com>
      Cc: Andi Kleen <ak@muc.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      25d7dfda
    • R
      [PATCH] vDSO hash-style fix · 0b0bf7a3
      Roland McGrath 提交于
      The latest toolchains can produce a new ELF section in DSOs and
      dynamically-linked executables.  The new section ".gnu.hash" replaces
      ".hash", and allows for more efficient runtime symbol lookups by the
      dynamic linker.  The new ld option --hash-style={sysv|gnu|both} controls
      whether to produce the old ".hash", the new ".gnu.hash", or both.  In some
      new systems such as Fedora Core 6, gcc by default passes --hash-style=gnu
      to the linker, so that a standard invocation of "gcc -shared" results in
      producing a DSO with only ".gnu.hash".  The new ".gnu.hash" sections need
      to be dealt with the same way as ".hash" sections in all respects; only the
      dynamic linker cares about their contents.  To work with older dynamic
      linkers (i.e.  preexisting releases of glibc), a binary must have the old
      ".hash" section.  The --hash-style=both option produces binaries that a new
      dynamic linker can use more efficiently, but an old dynamic linker can
      still handle.
      
      The new section runs afoul of the custom linker scripts used to build vDSO
      images for the kernel.  On ia64, the failure mode for this is a boot-time
      panic because the vDSO's PT_IA_64_UNWIND segment winds up ill-formed.
      
      This patch addresses the problem in two ways.
      
      First, it mentions ".gnu.hash" in all the linker scripts alongside ".hash".
       This produces correct vDSO images with --hash-style=sysv (or old tools),
      with --hash-style=gnu, or with --hash-style=both.
      
      Second, it passes the --hash-style=sysv option when building the vDSO
      images, so that ".gnu.hash" is not actually produced.  This is the most
      conservative choice for compatibility with any old userland.  There is some
      concern that some ancient glibc builds (though not any known old production
      system) might choke on --hash-style=both binaries.  The optimizations
      provided by the new style of hash section do not really matter for a DSO
      with a tiny number of symbols, as the vDSO has.  If someone wants to use
      =gnu or =both for their vDSO builds and worry less about that
      compatibility, just change the option and the linker script changes will
      make any choice work fine.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Andi Kleen <ak@muc.de>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0b0bf7a3