Permalink
Commits on Jul 21, 2010
  1. Merge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/brodo/pcmcia-2.6
    
    * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
      pcmcia: fix 'driver ... did not release config properly' warning
    torvalds committed Jul 21, 2010
  2. Merge branch 'shrinker' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/dgc/xfsdev
    
    * 'shrinker' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/xfsdev:
      mm: add context argument to shrinker callback to remaining shrinkers
    torvalds committed Jul 21, 2010
  3. Merge branch 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/tiwai/sound-2.6
    
    * 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
      ASoC: Select wm_hubs automatically for WM8994
      ASoC: Remove duplicate AUX definition from WM8776
      ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_register
      ASoC: wm8727: add a missing return in wm8727_platform_probe
      ASoC: fsi: fixup wrong value setting order of TDM
      ASoC: fsi: fixup clock inversion operation
    torvalds committed Jul 21, 2010
  4. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
      math-emu: correct test for downshifting fraction in _FP_FROM_INT()
      perf: Add DWARF register lookup for sparc
      MAINTAINERS: Add SBUS driver path to sparc entry.
      drivers/sbus: Remove unnecessary casts of private_data
      sparc: remove homegrown L1_CACHE_ALIGN macro
      sparc64: fix the build error due to smp_kgdb_capture_client()
      sparc64: Fix maybe_change_configuration() PCR setting.
      arch/sparc/kernel: Eliminate what looks like a NULL pointer dereference
      sparc64: Update defconfig.
      sunsu: Fix use after free in su_remove().
      sunserial: Don't call add_preferred_console() when console= is specified.
      sparc32: Kill none_mask, it's bogus.
    torvalds committed Jul 21, 2010
  5. Fix up trivial spelling errors ('taht' -> 'that')

    Pointed out by Lucas who found the new one in a comment in
    setup_percpu.c. And then I fixed the others that I grepped
    for.
    
    Reported-by: Lucas <canolucas@gmail.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Jul 21, 2010
  6. pcmcia: fix 'driver ... did not release config properly' warning

    Up to 2.6.34 pcmcia_release_irq() reset p_dev->_irq to 0 after releasing
    the irq.  The IRQ is now released in pcmcia_disable_device(), however
    p_dev->_irq is not reset, triggering a warning in pcmcia_device_remove().
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
    kaber committed with Dominik Brodowski Jul 20, 2010
  7. mm: add context argument to shrinker callback to remaining shrinkers

    Add the shrinkers missed in the first conversion of the API in
    commit 7f8275d ("mm: add context argument to
    shrinker callback").
    
    Signed-off-by: Dave Chinner <dchinner@redhat.com>
    Dave Chinner committed with dchinner Jul 21, 2010
  8. math-emu: correct test for downshifting fraction in _FP_FROM_INT()

    The kernel's math-emu code contains a macro _FP_FROM_INT() which is
    used to convert an integer to a raw normalized floating-point value.
    It does this basically in three steps:
    
    1. Compute the exponent from the number of leading zero bits.
    2. Downshift large fractions to put the MSB in the right position
       for normalized fractions.
    3. Upshift small fractions to put the MSB in the right position.
    
    There is an boundary error in step 2, causing a fraction with its
    MSB exactly one bit above the normalized MSB position to not be
    downshifted.  This results in a non-normalized raw float, which when
    packed becomes a massively inaccurate representation for that input.
    
    The impact of this depends on a number of arch-specific factors,
    but it is known to have broken emulation of FXTOD instructions
    on UltraSPARC III, which was originally reported as GCC bug 44631
    <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44631>.
    
    Any arch which uses math-emu to emulate conversions from integers to
    same-size floats may be affected.
    
    The fix is simple: the exponent comparison used to determine if the
    fraction should be downshifted must be "<=" not "<".
    
    I'm sending a kernel module to test this as a reply to this message.
    There are also SPARC user-space test cases in the GCC bug entry.
    
    Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Mikael Pettersson committed with davem330 Jul 21, 2010
  9. Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/airlied/drm-2.6
    
    * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
      drm/r600: fix possible NULL pointer derefernce
      drm/radeon/kms: add quirk for ASUS HD 3600 board
      include/linux/vgaarb.h: add missing part of include guard
      drm/nouveau: Fix crashes during fbcon init on single head cards.
      drm/nouveau: fix pcirom vbios shadow breakage from acpi rom patch
      drm/radeon/kms: fix shared ddc harder
      drm/i915: enable low power render writes on GEN3 hardware.
      drm/i915: Define MI_ARB_STATE bits
      vmwgfx: return -EFAULT if copy_to_user fails
      fb: handle allocation failure in alloc_apertures()
      drm: radeon: check kzalloc() result
      drm/ttm: Fix build on architectures without AGP
      drm/radeon/kms: fix gtt MC base alignment on rs4xx/rs690/rs740 asics
      drm/radeon/kms: fix possible mis-detection of sideport on rs690/rs740
      drm/radeon/kms: fix legacy tv-out pal mode
    torvalds committed Jul 21, 2010
  10. drm/r600: fix possible NULL pointer derefernce

    Reported-by: Alexander Y. Fomichev <git.user@gmail.com>
    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Alex Deucher committed with Dave Airlie Jul 21, 2010
Commits on Jul 20, 2010
  1. drm/radeon/kms: add quirk for ASUS HD 3600 board

    Connector is actually DVI rather than HDMI.
    
    Reported-by: trapDoor <trapdoor6@gmail.com>
    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Alex Deucher committed with Dave Airlie Jul 20, 2010
  2. include/linux/vgaarb.h: add missing part of include guard

    vgaarb.h was missing the #define of the #ifndef at the top for the guard
    to prevent multiple #include's from causing re-define errors
    
    Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
    Cc: Dave Airlie <airlied@redhat.com>
    Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    cardoe committed with Dave Airlie Jul 20, 2010
  3. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/sage/ceph-client
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
      ceph: do not include cap/dentry releases in replayed messages
      ceph: reuse request message when replaying against recovering mds
      ceph: fix creation of ipv6 sockets
      ceph: fix parsing of ipv6 addresses
      ceph: fix printing of ipv6 addrs
      ceph: add kfree() to error path
      ceph: fix leak of mon authorizer
      ceph: fix message revocation
    torvalds committed Jul 20, 2010
  4. Merge branch 'linuxdocs' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/rdunlap/linux-docs
    
    * 'linuxdocs' of git://git.kernel.org/pub/scm/linux/kernel/git/rdunlap/linux-docs:
      documentation: fix almost duplicate filenames (IO/io-mapping.txt)
    torvalds committed Jul 20, 2010
  5. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
      bridge: Partially disable netpoll support
      tcp: fix crash in tcp_xmit_retransmit_queue
      IPv6: fix CoA check in RH2 input handler (mip6_rthdr_input())
      ibmveth: lost IRQ while closing/opening device leads to service loss
      rt2x00: Fix lockdep warning in rt2x00lib_probe_dev()
      vhost: avoid pr_err on condition guest can trigger
      ipmr: Don't leak memory if fib lookup fails.
      vhost-net: avoid flush under lock
      net: fix problem in reading sock TX queue
      net/core: neighbour update Oops
      net: skb_tx_hash() fix relative to skb_orphan_try()
      rfs: call sock_rps_record_flow() in tcp_splice_read()
      xfrm: do not assume that template resolving always returns xfrms
      hostap_pci: set dev->base_addr during probe
      axnet_cs: use spin_lock_irqsave in ax_interrupt
      dsa: Fix Kconfig dependencies.
      act_nat: not all of the ICMP packets need an IP header payload
      r8169: incorrect identifier for a 8168dp
      Phonet: fix skb leak in pipe endpoint accept()
      Bluetooth: Update sec_level/auth_type for already existing connections
      ...
    torvalds committed Jul 20, 2010
  6. vfs: fix RCU-lockdep false positive due to /proc

    If a single-threaded process does a file-descriptor operation, and some
    other process accesses that same file descriptor via /proc, the current
    rcu_dereference_check_fdtable() can give a false-positive RCU-lockdep
    splat due to the reference count being increased by the /proc access after
    the reference-count check in fget_light() but before the check in
    rcu_dereference_check_fdtable().
    
    This commit prevents this false positive by checking for a single-threaded
    process.  To avoid #include hell, this commit uses the wrapper for
    thread_group_empty(current) defined by rcu_my_thread_group_empty()
    provided in a separate commit.
    
    Located-by: Miles Lane <miles.lane@gmail.com>
    Located-by: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Al Viro <viro@ZenIV.linux.org.uk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    paulmck committed with torvalds Jul 20, 2010
  7. sdhci-s3c: add missing remove function

    System will crash sooner or later once the memory with the code of the
    s3c-sdhci.ko module is reused for something else. I really have no idea
    how the lack of remove function went unnoticed into the mainline code.
    
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Marek Szyprowski committed with torvalds Jul 20, 2010
  8. Andres has moved

    My Collabora address is no longer enabled - update the MODULE_AUTHOR
    fields of drivers to my current email address.
    
    Signed-off-by: Andres Salomon <dilinger@queued.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    dilinger committed with torvalds Jul 20, 2010
  9. x86,nobootmem: make alloc_bootmem_node fall back to other node when 3…

    …2bit numa is used
    
    Borislav Petkov reported his 32bit numa system has problem:
    
    [    0.000000] Reserving total of 4c00 pages for numa KVA remap
    [    0.000000] kva_start_pfn ~ 32800 max_low_pfn ~ 375fe
    [    0.000000] max_pfn = 238000
    [    0.000000] 8202MB HIGHMEM available.
    [    0.000000] 885MB LOWMEM available.
    [    0.000000]   mapped low ram: 0 - 375fe000
    [    0.000000]   low ram: 0 - 375fe000
    [    0.000000] alloc (nid=8 100000 - 7ee00000) (1000000 - ffffffff) 1000 1000 => 34e7000
    [    0.000000] alloc (nid=8 100000 - 7ee00000) (1000000 - ffffffff) 200 40 => 34c9d80
    [    0.000000] alloc (nid=0 100000 - 7ee00000) (1000000 - ffffffffffffffff) 180 40 => 34e6140
    [    0.000000] alloc (nid=1 80000000 - c7e60000) (1000000 - ffffffffffffffff) 240 40 => 80000000
    [    0.000000] BUG: unable to handle kernel paging request at 40000000
    [    0.000000] IP: [<c2c8cff1>] __alloc_memory_core_early+0x147/0x1d6
    [    0.000000] *pdpt = 0000000000000000 *pde = f000ff53f000ff00
    ...
    [    0.000000] Call Trace:
    [    0.000000]  [<c2c8b4f8>] ? __alloc_bootmem_node+0x216/0x22f
    [    0.000000]  [<c2c90c9b>] ? sparse_early_usemaps_alloc_node+0x5a/0x10b
    [    0.000000]  [<c2c9149e>] ? sparse_init+0x1dc/0x499
    [    0.000000]  [<c2c79118>] ? paging_init+0x168/0x1df
    [    0.000000]  [<c2c780ff>] ? native_pagetable_setup_start+0xef/0x1bb
    
    looks like it allocates too much high address for bootmem.
    
    Try to cut limit with get_max_mapped()
    
    Reported-by: Borislav Petkov <borislav.petkov@amd.com>
    Tested-by: Conny Seidel <conny.seidel@amd.com>
    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    Cc: <stable@kernel.org>		[2.6.34.x]
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Yinghai Lu committed with torvalds Jul 20, 2010
  10. x86, numa: fix boot without RAM on node0 again

    Commit e534c7c ("numa: x86_64: use generic percpu var
    numa_node_id() implementation") broke numa systems that don't have ram
    on node0 when MEMORY_HOTPLUG is enabled, because cpu_up() will call
    cpu_to_node() before per_cpu(numa_node) is setup for APs.
    
    When Node0 doesn't have RAM, on x86, cpus already round it to nearest
    node with RAM in x86_cpu_to_node_map.  and per_cpu(numa_node) is not set
    up until in c_init for APs.
    
    When later cpu_up() calling cpu_to_node() will get 0 again, and make it
    online even there is no RAM on node0.  so later all APs can not booted up,
    and later will have panic.
    
    [    1.611101] On node 0 totalpages: 0
    .........
    [    2.608558] On node 0 totalpages: 0
    [    2.612065] Brought up 1 CPUs
    [    2.615199] Total of 1 processors activated (3990.31 BogoMIPS).
    ...
       93.225341] calling  loop_init+0x0/0x1a4 @ 1
    [   93.229314] PERCPU: allocation failed, size=80 align=8, failed to populate
    [   93.246539] Pid: 1, comm: swapper Tainted: G        W   2.6.35-rc4-tip-yh-04371-gd64e6c4-dirty #354
    [   93.264621] Call Trace:
    [   93.266533]  [<ffffffff81125e43>] pcpu_alloc+0x83a/0x8e7
    [   93.270710]  [<ffffffff81125f15>] __alloc_percpu+0x10/0x12
    [   93.285849]  [<ffffffff8140786c>] alloc_disk_node+0x94/0x16d
    [   93.291811]  [<ffffffff81407956>] alloc_disk+0x11/0x13
    [   93.306157]  [<ffffffff81503e51>] loop_alloc+0xa7/0x180
    [   93.310538]  [<ffffffff8277ef48>] loop_init+0x9b/0x1a4
    [   93.324909]  [<ffffffff8277eead>] ? loop_init+0x0/0x1a4
    [   93.329650]  [<ffffffff810001f2>] do_one_initcall+0x57/0x136
    [   93.345197]  [<ffffffff827486d0>] kernel_init+0x184/0x20e
    [   93.348146]  [<ffffffff81034954>] kernel_thread_helper+0x4/0x10
    [   93.365194]  [<ffffffff81c7cc3c>] ? restore_args+0x0/0x30
    [   93.369305]  [<ffffffff8274854c>] ? kernel_init+0x0/0x20e
    [   93.386011]  [<ffffffff81034950>] ? kernel_thread_helper+0x0/0x10
    [   93.392047] loop: out of memory
    ...
    
    Try to assign per_cpu(numa_node) early
    
    [akpm@linux-foundation.org: tidy up code comment]
    Signed-off-by: Yinghai <yinghai@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Tejun Heo <tj@kernel.org>
    Cc: Denys Vlasenko <vda.linux@googlemail.com>
    Acked-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Yinghai Lu committed with torvalds Jul 20, 2010
  11. edac: mpc85xx: add support for MPC8569 EDAC controllers

    Simply add a proper ID into the device table.
    
    Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
    Cc: Doug Thompson <dougthompson@xmission.com>
    Cc: Peter Tyser <ptyser@xes-inc.com>
    Cc: Dave Jiang <djiang@mvista.com>
    Cc: Kumar Gala <galak@kernel.crashing.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Anton Vorontsov committed with torvalds Jul 20, 2010
  12. edac: mpc85xx: fix MPC85xx dependency

    Since commit 5753c08 ("powerpc/85xx:
    Kconfig cleanup"), there is no MPC85xx Kconfig symbol anymore, so the
    driver became non-selectable.
    
    This patch fixes the issue by switching to PPC_85xx symbol.
    
    Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
    Cc: Doug Thompson <dougthompson@xmission.com>
    Cc: Peter Tyser <ptyser@xes-inc.com>
    Cc: Dave Jiang <djiang@mvista.com>
    Cc: Kumar Gala <galak@kernel.crashing.org>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Anton Vorontsov committed with torvalds Jul 20, 2010
  13. mm/vmscan.c: fix mapping use after free

    We need lock_page_nosync() here because we have no reference to the
    mapping when taking the page lock.
    
    Signed-off-by: Nick Piggin <npiggin@suse.de>
    Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Nick Piggin committed with torvalds Jul 20, 2010
  14. ipc/sem.c: bugfix for semop() not reporting successful operation

    The last change to improve the scalability moved the actual wake-up out of
    the section that is protected by spin_lock(sma->sem_perm.lock).
    
    This means that IN_WAKEUP can be in queue.status even when the spinlock is
    acquired by the current task.  Thus the same loop that is performed when
    queue.status is read without the spinlock acquired must be performed when
    the spinlock is acquired.
    
    Thanks to kamezawa.hiroyu@jp.fujitsu.com for noticing lack of the memory
    barrier.
    
    Addresses https://bugzilla.kernel.org/show_bug.cgi?id=16255
    
    [akpm@linux-foundation.org: clean up kerneldoc, checkpatch warning and whitespace]
    Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
    Reported-by: Luca Tettamanti <kronos.it@gmail.com>
    Tested-by: Luca Tettamanti <kronos.it@gmail.com>
    Reported-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Maciej Rutecki <maciej.rutecki@gmail.com>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    manfred-colorfu committed with torvalds Jul 20, 2010
  15. drm/nouveau: Fix crashes during fbcon init on single head cards.

    this fixes a regression since the fbcon rework.
    
    Signed-off-by: Francisco Jerez <currojerez@riseup.net>
    Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    curro committed with Dave Airlie Jul 10, 2010
  16. drm/nouveau: fix pcirom vbios shadow breakage from acpi rom patch

    On nv50 it became impossible to attempt a PCI ROM shadow of the VBIOS,
    which will break some setups.
    
    This patch also removes the different ordering of shadow methods for
    pre-nv50 chipsets.  The reason for the different ordering was paranoia,
    but it should hopefully be OK to try shadowing PRAMIN first.
    
    Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    skeggsb committed with Dave Airlie Jul 12, 2010
  17. drm/radeon/kms: fix shared ddc harder

    This fixes a regression caused by b2ea4aa
    due to the way shared ddc with multiple digital connectors was handled.
    
    You generally have two cases where DDC lines are shared:
    - HDMI + VGA
    - HDMI + DVI-D
    
    HDMI + VGA is easy to deal with because you can check the EDID for the
    to see if the attached monitor is digital.  A shared DDC line with two
    digital connectors is more complex.  You can't use the hdmi bits in the
    EDID since they may not be there with DVI<->HDMI adapters.  In this case
    all we can do is check the HPD pins to see which is connected as we have
    no way of knowing using the EDID.
    
    Reported-by: trapdoor6@gmail.com
    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Alex Deucher committed with Dave Airlie Jul 20, 2010
  18. documentation: fix almost duplicate filenames (IO/io-mapping.txt)

    Having both IO-mapping.txt and io-mapping.txt in Documentation/
    was confusing and/or bothersome to some people, so rename
    IO-mapping.txt to bus-virt-phys-mapping.txt.  Also update
    Documentation/00-INDEX for both of these files.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Kees Bakker <kees.bakker@xs4all.nl>
    Cc: Keith Packard <keithp@keithp.com>
    Randy Dunlap committed Jul 19, 2010
  19. Merge git://git.infradead.org/users/cbou/battery-2.6.35

    * git://git.infradead.org/users/cbou/battery-2.6.35:
      ds2782_battery: Fix ds2782_get_capacity return value
    torvalds committed Jul 20, 2010
  20. ASoC: Select wm_hubs automatically for WM8994

    Otherwise all machine drivers need to do so.
    
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
    Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Chanwoo Choi committed with broonie Jul 20, 2010
  21. bridge: Partially disable netpoll support

    The new netpoll code in bridging contains use-after-free bugs
    that are non-trivial to fix.
    
    This patch fixes this by removing the code that uses skbs after
    they're freed.
    
    As a consequence, this means that we can no longer call bridge
    from the netpoll path, so this patch also removes the controller
    function in order to disable netpoll.
    
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    
    Thanks,
    Signed-off-by: David S. Miller <davem@davemloft.net>
    herbertx committed with davem330 Jul 19, 2010
  22. drm/i915: enable low power render writes on GEN3 hardware.

    A lot of 945GMs have had stability issues for a long time, this manifested as X hangs, blitter engine hangs, and lots of crashes.
    
    one such report is at:
    https://bugs.freedesktop.org/show_bug.cgi?id=20560
    
    along with numerous distro bugzillas.
    
    This only took a week of digging and hair ripping to figure out.
    
    Tracked down and tested on a 945GM Lenovo T60,
    previously running
    x11perf -copypixwin500
    or
    x11perf -copywinpix500
    repeatedly would cause the GPU to wedge within 4 or 5 tries, with random busy bits set.
    
    After this patch no hangs were observed.
    
    cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Dave Airlie committed Jul 20, 2010
  23. drm/i915: Define MI_ARB_STATE bits

    The i915 memory arbiter has a register full of configuration
    bits which are currently not defined in the driver header file.
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    keith-packard committed with Dave Airlie Jul 20, 2010
  24. vmwgfx: return -EFAULT if copy_to_user fails

    copy_to_user() returns the number of bytes remaining to be copied, but
    we want to return a negative error code.  This gets copied to user
    space.
    
    Signed-off-by: Dan Carpenter <error27@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    error27 committed with Dave Airlie Jul 10, 2010
  25. fb: handle allocation failure in alloc_apertures()

    If the kzalloc() fails we should return NULL.  All the places that call
    alloc_apertures() check for this already.
    
    Signed-off-by: Dan Carpenter <error27@gmail.com>
    Acked-by: James Simmons <jsimmons@infradead.org>
    Acked-by: Marcin Slusarz <marcin.slusarz@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    error27 committed with Dave Airlie Jul 15, 2010