1. 03 Oct, 2007 21 commits
  2. 02 Oct, 2007 12 commits
  3. 22 Sep, 2007 7 commits
    • Emil Medve's avatar
      [POWERPC] Fix build errors when BLOCK=n · 576e393e
      Emil Medve authored
      These are the symptom error messages:
      
        CC      arch/powerpc/kernel/setup_32.o
      In file included from include/linux/blkdev.h:17,
                       from include/linux/ide.h:13,
                       from arch/powerpc/kernel/setup_32.c:13:
      include/linux/bsg.h:67: warning: 'struct request_queue' declared inside parameter list
      include/linux/bsg.h:67: warning: its scope is only this definition or declaration, which is probably not what you want
      include/linux/bsg.h:71: warning: 'struct request_queue' declared inside parameter list
      In file included from arch/powerpc/kernel/setup_32.c:13:
      include/linux/ide.h:857: error: field 'wrq' has incomplete type
      
        CC      arch/powerpc/kernel/ppc_ksyms.o
      In file included from include/linux/blkdev.h:17,
                       from include/linux/ide.h:13,
                       from arch/powerpc/kernel/ppc_ksyms.c:15:
      include/linux/bsg.h:67: warning: 'struct request_queue' declared inside parameter list
      include/linux/bsg.h:67: warning: its scope is only this definition or declaration, which is probably not what you want
      include/linux/bsg.h:71: warning: 'struct request_queue' declared inside parameter list
      In file included from arch/powerpc/kernel/ppc_ksyms.c:15:
      include/linux/ide.h:857: error: field 'wrq' has incomplete type
      
      The fix tries to use the smallest scope CONFIG_* symbols that will fix
      the build problem.  In this case <linux/ide.h> needs to be included
      only if IDE=y or IDE=m were selected.  Also, ppc_ide_md is needed only
      if BLK_DEV_IDE=y or BLK_DEV_IDE=m
      
      Moved the EXPORT_SYMBOL(ppc_ide_md) from ppc_ksysms.c next to its
      declaration in setup_32.c which made <linux/ide.h> not needed. With
      <linux/ide.h> gone from ppc_ksyms.c, <asm/cacheflush.h> is needed to
      address the following warnings and errors:
      
        CC      arch/powerpc/kernel/ppc_ksyms.o
      arch/powerpc/kernel/ppc_ksyms.c:122: error: '__flush_icache_range' undeclared here (not in a function)
      arch/powerpc/kernel/ppc_ksyms.c:122: warning: type defaults to 'int' in declaration of '__flush_icache_range'
      arch/powerpc/kernel/ppc_ksyms.c:123: error: 'flush_dcache_range' undeclared here (not in a function)
      arch/powerpc/kernel/ppc_ksyms.c:123: warning: type defaults to 'int' in declaration of 'flush_dcache_range'
      Signed-off-by: default avatarEmil Medve <Emilian.Medve@Freescale.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      576e393e
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Fix platinumfb framebuffer · 4c2a54b0
      Benjamin Herrenschmidt authored
      Current kernels have a non-working platinumfb due to some resource
      management issues.  This fixes it.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      4c2a54b0
    • Satyam Sharma's avatar
      [POWERPC] Avoid pointless WARN_ON(irqs_disabled()) from panic codepath · 8fd7675c
      Satyam Sharma authored
      > ------------[ cut here ]------------
      > Badness at arch/powerpc/kernel/smp.c:202
      
      comes when smp_call_function_map() has been called with irqs disabled,
      which is illegal. However, there is a special case, the panic() codepath,
      when we do not want to warn about this -- warning at that time is pointless
      anyway, and only serves to scroll away the *real* cause of the panic and
      distracts from the real bug.
      
      * So let's extract the WARN_ON() from smp_call_function_map() into all its
        callers -- smp_call_function() and smp_call_function_single()
      
      * Also, introduce another caller of smp_call_function_map(), namely
        __smp_call_function() (and make smp_call_function() a wrapper over this)
        which does *not* warn about disabled irqs
      
      * Use this __smp_call_function() from the panic codepath's smp_send_stop()
      
      We also end having to move code of smp_send_stop() below the definition
      of __smp_call_function().
      Signed-off-by: default avatarSatyam Sharma <satyam@infradead.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      8fd7675c
    • Olof Johansson's avatar
      [POWERPC] Support setting affinity for U3/U4 MSI sources · 17b5ee04
      Olof Johansson authored
      Hook up affinity-setting for U3/U4 MSI interrupt sources.
      
      Tested on Quad G5 with myri10ge.
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      17b5ee04
    • Arnd Bergmann's avatar
      [POWERPC] add Kconfig option for optimizing for cell · 3164cccd
      Arnd Bergmann authored
      Since the PPE on cell is an in-order core, it suffers significantly
      from wrong instruction scheduling.  This adds a Kconfig option that
      enables passing -mtune=cell to gcc in order to generate object
      code that runs well on cell.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      3164cccd
    • Jeremy Kerr's avatar
      [POWERPC] cell: Don't cast the result of of_get_property() · fb8299ed
      Jeremy Kerr authored
      The cast to u32 * isn't required, of_get_property returns a void *.
      Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      fb8299ed
    • Tony Breeds's avatar
      [POWERPC] Convert define_machine(mpc885_ads) to C99 initializer syntax · 408e83a6
      Tony Breeds authored
      Make the define_machine() block for mpc885_ads more greppable and
      consistent with other examples in tree.
      Signed-off-by: default avatarTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      408e83a6