1. 20 11月, 2007 1 次提交
  2. 19 11月, 2007 3 次提交
  3. 13 11月, 2007 1 次提交
    • B
      [POWERPC] Avoid unpaired stwcx. on some processors · b64f87c1
      Becky Bruce 提交于
      The context switch code in the kernel issues a dummy stwcx. to clear the
      reservation, as recommended by the architecture.  However, some processors
      can have issues if this stwcx to address A occurs while the reservation
      is already held to a different address B.  To avoid this problem, the dummy
      stwcx. needs to be paired with a dummy lwarx to the same address.
      
      This adds the dummy lwarx, and creates a cpu feature bit to indicate
      which cpus are affected.  Tested on mpc8641_hpcn_defconfig in
      arch/powerpc; build tested in arch/ppc.
      Signed-off-by: NBecky Bruce <becky.bruce@freescale.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      b64f87c1
  4. 08 11月, 2007 2 次提交
    • A
      [POWERPC] i8259: Add disable method · 3a800ff5
      Aurelien Jarno 提交于
      Since commit 76d21601, the NE2000 card
      is not working anymore on PPC and POWERPC and produces WATCHDOG
      timeouts.
      
      The patch below fixes that the same way it has been done on x86, x86_64
      and MIPS.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      3a800ff5
    • O
      [POWERPC] Fix build break in arch/ppc/syslib/m8260_setup.c · bdd71eec
      Olof Johansson 提交于
      Fix build break and warnings in current mainline git:
      
      arch/ppc/syslib/m8260_setup.c: In function 'm8260_setup_arch':
      arch/ppc/syslib/m8260_setup.c:63: error: implicit declaration of function 'identify_ppc_sys_by_name_and_id'
      arch/ppc/syslib/m8260_setup.c:64: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast
      arch/ppc/syslib/m8260_setup.c: In function 'm8260_show_cpuinfo':
      arch/ppc/syslib/m8260_setup.c:158: warning: format '%08x' expects type 'unsigned int', but argument 5 has type 'long unsigned int'
      arch/ppc/syslib/m8260_setup.c:158: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
      arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
      arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
      arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 9 has type 'long unsigned int'
      make[1]: *** [arch/ppc/syslib/m8260_setup.o] Error 1
      make[1]: *** Waiting for unfinished jobs....
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      bdd71eec
  5. 01 11月, 2007 4 次提交
  6. 21 10月, 2007 1 次提交
  7. 20 10月, 2007 3 次提交
  8. 17 10月, 2007 2 次提交
    • S
      [POWERPC] rheap: Changes config mechanism · 1088a209
      Sylvain Munaut 提交于
      Instead of having in the makefile all the option that
      requires rheap, we define a configuration symbol
      and when needed we make sure it's selected.
      Signed-off-by: NSylvain Munaut <tnt@246tNt.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      1088a209
    • W
      During VM oom condition, kill all threads in process group · dcca2bde
      Will Schmidt 提交于
      We have had complaints where a threaded application is left in a bad state
      after one of it's threads is killed when we hit a VM: out_of_memory
      condition.
      
      Killing just one of the process threads can leave the application in a bad
      state, whereas killing the entire process group would allow for the
      application to restart, or be otherwise handled, and makes it very obvious
      that something has gone wrong.
      
      This change allows the entire process group to be taken down, rather
      than just the one thread.
      Signed-off-by: NWill Schmidt <will_schmidt@vnet.ibm.com>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ian Molton <spyro@f2s.com>
      Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Hirokazu Takata <takata@linux-m32r.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Matthew Wilcox <willy@debian.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
      Cc: Richard Curnow <rc@rc0.org.uk>
      Cc: William Lee Irwin III <wli@holomorphy.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Chris Zankel <chris@zankel.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dcca2bde
  9. 16 10月, 2007 2 次提交
    • S
      kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP · 06c5040c
      Sam Ravnborg 提交于
      The variable CPPFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      
      This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the
      tree and enabling one to use:
      make CPPFLAGS=...
      to specify additional CPP commandline options.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      06c5040c
    • S
      kbuild: enable 'make AFLAGS=...' to add additional options to AS · 222d394d
      Sam Ravnborg 提交于
      The variable AFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      On top of that several people over time has asked for a way to
      pass in additional flags to gcc.
      
      This patch replace use of AFLAGS with KBUILD_AFLAGS all over
      the tree.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      222d394d
  10. 15 10月, 2007 2 次提交
    • S
      kbuild: enable 'make CFLAGS=...' to add additional options to CC · a0f97e06
      Sam Ravnborg 提交于
      The variable CFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      On top of that several people over time has asked for a way to
      pass in additional flags to gcc.
      
      This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
      tree and enabling one to use:
      make CFLAGS=...
      to specify additional gcc commandline options.
      
      One usecase is when trying to find gcc bugs but other
      use cases has been requested too.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k
      
      Test was simple to do a defconfig build, apply the patch and check
      that nothing got rebuild.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      a0f97e06
    • S
      kbuild: fix up CFLAGS usage · 9a39e273
      Sam Ravnborg 提交于
      Only in very rare cases is it needed to change CFLAGS
      outside of arch/*/Makefile.
      Fix up all wrong cases - in most cases
      the use of EXTRA_CFLAGS is the only thing needed.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      9a39e273
  11. 09 10月, 2007 1 次提交
  12. 04 10月, 2007 1 次提交
  13. 03 10月, 2007 7 次提交
  14. 28 9月, 2007 1 次提交
  15. 26 9月, 2007 2 次提交
    • J
      [PPC] Compile fix for 8xx CPM Ehernet driver · 7a6d44f7
      Jochen Friedrich 提交于
      Add #include <asm/cacheflush.h> for flush_dcache_range
      to make the driver compile again.
      
        CC      arch/ppc/8xx_io/enet.o
      arch/ppc/8xx_io/enet.c: In function 'scc_enet_start_xmit':
      arch/ppc/8xx_io/enet.c:240: error: implicit declaration of function
      'flush_dcache_range'
      make[1]: *** [arch/ppc/8xx_io/enet.o] Error 1
      make: *** [arch/ppc/8xx_io] Error 2
      Signed-off-by: NJochen Friedrich <jochen@scram.de>
      7a6d44f7
    • J
      [PPC] Fix cpm_dpram_addr returning phys mem instead of virt mem · 1d7a8ee0
      Jochen Friedrich 提交于
      cpm_dpram_addr returns physical memory of the DP RAM instead of
      iomapped virtual memory. As there usually is a 1:1 MMU map of
      the IMMR area, this is often not noticed. However, cpm_dpram_phys
      assumes this iomapped virtual memory and returns garbage on the
      1:1 mapped memory causing CPM1 uart console to fail.
      
      This patch fixes the problem (copied from the powerpc tree).
      Signed-off-by: NJochen Friedrich <jochen@scram.de>
      1d7a8ee0
  16. 22 9月, 2007 2 次提交
  17. 17 9月, 2007 1 次提交
  18. 11 9月, 2007 1 次提交
  19. 17 8月, 2007 1 次提交
  20. 15 8月, 2007 1 次提交
    • D
      [POWERPC] Fix small race in 44x tlbie function · aa1cf632
      David Gibson 提交于
      The 440 family of processors don't have a tlbie instruction.  So, we
      implement TLB invalidates by explicitly searching the TLB with tlbsx.,
      then clobbering the relevant entry, if any.  Unfortunately the PID for
      the search needs to be stored in the MMUCR register, which is also
      used by the TLB miss handler.  Interrupts were enabled in _tlbie(), so
      an interrupt between loading the MMUCR and the tlbsx could cause
      incorrect search results, and thus a failure to invalide TLB entries
      which needed to be invalidated.
      
      This fixes the problem in both arch/ppc and arch/powerpc by inhibiting
      interrupts (even critical and debug interrupts) across the relevant
      instructions.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      aa1cf632
  21. 30 7月, 2007 1 次提交