1. 08 Mar, 2007 5 commits
    • David Gibson's avatar
      [POWERPC] Allow duplicate lmb_reserve() calls · eb6de286
      David Gibson authored
      At present calling lmb_reserve() (and hence lmb_add_region()) twice
      for exactly the same memory region will cause strange behaviour.
      
      This makes life difficult when booting from a flat device tree with
      memory reserve map.  Which regions are automatically reserved by the
      kernel has changed over time, so it's quite possible a newer kernel
      could attempt to auto-reserve a region which is also explicitly listed
      in the device tree's reserve map, leading to trouble.
      
      This patch avoids the problem by making lmb_reserve() ignore a call to
      reserve a previously reserved region.  It also removes a now redundant
      test designed to avoid one specific case of the problem noted above.
      
      At present, this patch deals only with duplicate reservations of an
      identical region.  Attempting to reserve two different, but
      overlapping regions will still cause problems.  I might post another
      patch later dealing with this case, but I'm avoiding it now since it
      is substantially more complicated to deal with, less likely to occur
      and more likely to indicate a genuine bug elsewhere if it does occur.
      Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      eb6de286
    • Adrian Bunk's avatar
      [POWERPC] Unexport mac_hid_mouse_emulate_buttons · 83ddcf5d
      Adrian Bunk authored
      This patch removes the unused
      EXPORT_SYMBOL(mac_hid_mouse_emulate_buttons).
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      83ddcf5d
    • Stuart Yoder's avatar
      [POWERPC] Remove interrupt-controller as a property under /chosen · d1bff9ed
      Stuart Yoder authored
       Remove interrupt-controller as a valid property under /chosen in
       the documentation.  There is a consensus that an
       interrupt-controller property does not belong under /chosen.
       /chosen is specifically for dynamic properties set at runtime.
      Signed-off-by: default avatarStuart Yoder <stuart.yoder@freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      d1bff9ed
    • Paul Mackerras's avatar
      [POWERPC] Harden validate_sp against stack corruption · bb72c481
      Paul Mackerras authored
      If something has overflowed or corrupted the stack and causes an oops,
      and we try to print a stack trace, that will call validate_sp, which
      can itself cause an oops if the cpu field of the thread_info struct at
      the bottom of the stack has been corrupted (if CONFIG_IRQSTACKS is
      set).  This makes debugging harder.
      
      To avoid the second oops, this adds a check to make sure that the cpu
      number is reasonable before using it to check whether the stack is on
      the softirq or hardirq stack.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      bb72c481
    • Andrew Morton's avatar
      [POWERPC] Fix compile error in prom.h · 99ddef9b
      Andrew Morton authored
      In file included from include/asm/pci.h:20,
                       from include/linux/pci.h:751,
                       from arch/powerpc/sysdev/dart_iommu.c:36:
      include/asm/prom.h: In function `of_irq_to_resource':
      include/asm/prom.h:341: warning: implicit declaration of function `irq_of_parse_and_map'
      include/asm/prom.h:345: error: `NO_IRQ' undeclared (first use in this function)
      include/asm/prom.h:345: error: (Each undeclared identifier is reported only once
      include/asm/prom.h:345: error: for each function it appears in.)
      
      Seems that prom.h has always wanted irq.h.
      
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      99ddef9b
  2. 07 Mar, 2007 35 commits