1. 08 Jul, 2010 9 commits
    • Johannes Berg's avatar
      powerpc: Fix logic error in fixup_irqs · 3cd85192
      Johannes Berg authored
      When SPARSE_IRQ is set, irq_to_desc() can
      return NULL. While the code here has a
      check for NULL, it's not really correct.
      Fix it by separating the check for it.
      
      This fixes CPU hot unplug for me.
      Reported-by: default avatarAlastair Bridgewater <alastair.bridgewater@gmail.com>
      Cc: stable@kernel.org [2.6.32+]
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3cd85192
    • Denis Kirjanov's avatar
      powerpc/iseries: Fix possible null pointer dereference in iSeries_pcibios_fixup_resources · d3005fbc
      Denis Kirjanov authored
      I don't know if this is a right fix for the problem
      since of_get_property can return NULL.
      Since iseries_device_information is used only for informational purpose,
      we can skip this function without valid HvSubBusNumber number.
      Signed-off-by: default avatarDenis Kirjanov <dkirjanov@kernel.org>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d3005fbc
    • Anton Blanchard's avatar
      powerpc: Linux cannot run with 0 cores · 33ad5e4b
      Anton Blanchard authored
      If we configure with CONFIG_SMP=n or set NR_CPUS less than the number of
      SMT threads we will set the max cores property to 0 in the
      ibm,client-architecture-support structure. On new versions of firmware that
      understand this property it obliges and terminates our partition.
      
      Use DIV_ROUND_UP so we handle not only the CONFIG_SMP=n case but also the
      case where NR_CPUS isn't a multiple of the number of SMT threads.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      33ad5e4b
    • Stephen Rothwell's avatar
      powerpc: Fix feature-fixup tests for gcc 4.5 · 3880ecb0
      Stephen Rothwell authored
      The feature-fixup test declare some extern void variables and then take
      their addresses.  Fix this by declaring them as extern u8 instead.
      
      Fixes these warnings (treated as errors):
      
        CC      arch/powerpc/lib/feature-fixups.o
      cc1: warnings being treated as errors
      arch/powerpc/lib/feature-fixups.c: In function 'test_cpu_macros':
      arch/powerpc/lib/feature-fixups.c:293:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:294:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c: In function 'test_fw_macros':
      arch/powerpc/lib/feature-fixups.c:306:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:307:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c: In function 'test_lwsync_macros':
      arch/powerpc/lib/feature-fixups.c:321:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:322:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3880ecb0
    • Yang Li's avatar
      powerpc: Disable SPARSE_IRQ by default · 9ce91685
      Yang Li authored
      The SPARSE_IRQ considerably adds overhead to critical path of IRQ
      handling.  However it doesn't benefit much in space for most systems with
      limited IRQ_NR.  Should be disabled unless really necessary.
      Signed-off-by: default avatarLi Yang <leoli@freescale.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      9ce91685
    • Stephen Rothwell's avatar
      powerpc: Fix compile errors in prom_init_check for gcc 4.5 · 5afd878a
      Stephen Rothwell authored
      Just whitelist these extra compiler generated symbols.
      Fixes these errors:
      
      Error: External symbol '_restgpr0_14' referenced from prom_init.c
      Error: External symbol '_restgpr0_20' referenced from prom_init.c
      Error: External symbol '_restgpr0_22' referenced from prom_init.c
      Error: External symbol '_restgpr0_24' referenced from prom_init.c
      Error: External symbol '_restgpr0_25' referenced from prom_init.c
      Error: External symbol '_restgpr0_26' referenced from prom_init.c
      Error: External symbol '_restgpr0_27' referenced from prom_init.c
      Error: External symbol '_restgpr0_28' referenced from prom_init.c
      Error: External symbol '_restgpr0_29' referenced from prom_init.c
      Error: External symbol '_restgpr0_31' referenced from prom_init.c
      Error: External symbol '_savegpr0_14' referenced from prom_init.c
      Error: External symbol '_savegpr0_20' referenced from prom_init.c
      Error: External symbol '_savegpr0_22' referenced from prom_init.c
      Error: External symbol '_savegpr0_24' referenced from prom_init.c
      Error: External symbol '_savegpr0_25' referenced from prom_init.c
      Error: External symbol '_savegpr0_26' referenced from prom_init.c
      Error: External symbol '_savegpr0_27' referenced from prom_init.c
      Error: External symbol '_savegpr0_28' referenced from prom_init.c
      Error: External symbol '_savegpr0_29' referenced from prom_init.c
      Error: External symbol '_savegpr0_31' referenced from prom_init.c
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Acked-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      5afd878a
    • Stephen Rothwell's avatar
      powerpc: Fix module building for gcc 4.5 and 64 bit · 7fca5dc8
      Stephen Rothwell authored
      Gcc 4.5 is now generating out of line register save and restore
      in the function prefix and postfix when we use -Os.
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      7fca5dc8
    • Matt Evans's avatar
      powerpc/perf_event: Fix for power_pmu_disable() · 219a92a4
      Matt Evans authored
      When power_pmu_disable() removes the given event from a particular index into
      cpuhw->event[], it shuffles down higher event[] entries.  But, this array is
      paired with cpuhw->events[] and cpuhw->flags[] so should shuffle them
      similarly.
      
      If these arrays get out of sync, code such as power_check_constraints() will
      fail.  This caused a bug where events were temporarily disabled and then failed
      to be re-enabled; subsequent code tried to write_pmc() with its (disabled) idx
      of 0, causing a message "oops trying to write PMC0".  This triggers this bug on
      POWER7, running a miss-heavy test:
      
        perf record -e L1-dcache-load-misses -e L1-dcache-store-misses ./misstest
      Signed-off-by: default avatarMatt Evans <matt@ozlabs.org>
      Acked-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      219a92a4
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 2aa72f61
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (35 commits)
        NET: SB1250: Initialize .owner
        vxge: show startup message with KERN_INFO
        ll_temac: Fix missing iounmaps
        bridge: Clear IPCB before possible entry into IP stack
        bridge br_multicast: BUG: unable to handle kernel NULL pointer dereference
        net: Fix definition of netif_vdbg() when VERBOSE_DEBUG is defined
        net/ne: fix memory leak in ne_drv_probe()
        xfrm: fix xfrm by MARK logic
        virtio_net: fix oom handling on tx
        virtio_net: do not reschedule rx refill forever
        s2io: resolve statistics issues
        linux/net.h: fix kernel-doc warnings
        net: decreasing real_num_tx_queues needs to flush qdisc
        sched: qdisc_reset_all_tx is calling qdisc_reset without qdisc_lock
        qlge: fix a eeh handler to not add a pending timer
        qlge: Replacing add_timer() to mod_timer()
        usbnet: Set parent device early for netdev_printk()
        net: Revert "rndis_host: Poll status channel before control channel"
        netfilter: ip6t_REJECT: fix a dst leak in ipv6 REJECT
        drivers: bluetooth: bluecard_cs.c: Fixed include error, changed to linux/io.h
        ...
      2aa72f61
  2. 07 Jul, 2010 14 commits
  3. 06 Jul, 2010 3 commits
  4. 05 Jul, 2010 14 commits