Skip to content
  1. Feb 03, 2008
    • Mathieu Desnoyers's avatar
      Add HAVE_OPROFILE · 42d4b839
      Mathieu Desnoyers authored
      
      
      Linus:
      On the per-architecture side, I do think it would be better to *not* have
      internal architecture knowledge in a generic file, and as such a line like
      
              depends on X86_32 || IA64 || PPC || S390 || SPARC64 || X86_64 || AVR32
      
      really shouldn't exist in a file like kernel/Kconfig.instrumentation.
      
      It would be much better to do
      
              depends on ARCH_SUPPORTS_KPROBES
      
      in that generic file, and then architectures that do support it would just
      have a
      
              bool ARCH_SUPPORTS_KPROBES
                      default y
      
      in *their* architecture files. That would seem to be much more logical,
      and is readable both for arch maintainers *and* for people who have no
      clue - and don't care - about which architecture is supposed to support
      which interface...
      
      Changelog:
      
      Actually, I know I gave this as the magic incantation, but now that I see
      it, I realize that I should have told you to just use
      
              config ARCH_SUPPORTS_KPROBES
                      def_bool y
      
      instead, which is a bit denser.
      
      We seem to use both kinds of syntax for these things, but this is really
      what "def_bool" is there for...
      
      Changelog :
      
      - Moving to HAVE_*.
      - Add AVR32 oprofile.
      
      Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      42d4b839
  2. Jan 28, 2008
  3. Jan 27, 2008
  4. Jan 26, 2008
  5. Jan 25, 2008
  6. Jan 24, 2008
  7. Dec 23, 2007
    • Stefan Roese's avatar
      [POWERPC] 4xx: Fix TLB 0 problem with CONFIG_SERIAL_TEXT_DEBUG · f4151b9b
      Stefan Roese authored
      
      
      Right now TLB entry 0 ist used as UART0 mapping for the early debug
      output (via CONFIG_SERIAL_TEXT_DEBUG). This causes problems when many
      TLB's get used upon Linux bootup (e.g. while PCIe scanning behind
      bridges and/or switches on 440SPe platforms). This will overwrite the
      TLB 0 entry and further debug output's may crash/hang the system.
      
      This patch moves the early debug UART0 TLB entry from 0 to 62 as done
      in arch/powerpc. This way it is in the "pinned" area and will not get
      overwritten. Also the arch/ppc/mm/44x_mmu.c code is now synced with the
      newer code from arch/powerpc.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
      f4151b9b
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Reworking machine check handling and Fix 440/440A · 47c0bd1a
      Benjamin Herrenschmidt authored
      
      
      This adds a cputable function pointer for the CPU-side machine
      check handling. The semantic is still the same as the old one,
      the one in ppc_md. overrides the one in cputable, though
      ultimately we'll want to change that so the CPU gets first.
      
      This removes CONFIG_440A which was a problem for multiplatform
      kernels and instead fixes up the IVOR at runtime from a setup_cpu
      function. The "A" version of the machine check also tweaks the
      regs->trap value to differenciate the 2 versions at the C level.
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
      47c0bd1a
  8. Dec 20, 2007
  9. Dec 07, 2007
  10. Dec 03, 2007
  11. Dec 02, 2007
  12. Nov 20, 2007
  13. Nov 19, 2007
  14. Nov 13, 2007
    • Becky Bruce's avatar
      [POWERPC] Avoid unpaired stwcx. on some processors · b64f87c1
      Becky Bruce authored
      
      
      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: default avatarBecky Bruce <becky.bruce@freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      b64f87c1
  15. Nov 08, 2007
    • Aurelien Jarno's avatar
      [POWERPC] i8259: Add disable method · 3a800ff5
      Aurelien Jarno authored
      
      
      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: default avatarAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      3a800ff5
    • Olof Johansson's avatar
      [POWERPC] Fix build break in arch/ppc/syslib/m8260_setup.c · bdd71eec
      Olof Johansson authored
      
      
      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: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      bdd71eec
  16. Nov 01, 2007
  17. Oct 20, 2007
  18. Oct 19, 2007
  19. Oct 16, 2007
    • Sylvain Munaut's avatar
      [POWERPC] rheap: Changes config mechanism · 1088a209
      Sylvain Munaut authored
      
      
      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: default avatarSylvain Munaut <tnt@246tNt.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      1088a209
    • Will Schmidt's avatar
      During VM oom condition, kill all threads in process group · dcca2bde
      Will Schmidt authored
      
      
      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: default avatarWill 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: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      dcca2bde
Loading