1. 30 Sep, 2009 9 commits
    • David Teigland's avatar
      dlm: fix socket fd translation · 6861f350
      David Teigland authored
      The code to set up sctp sockets was not using the sockfd_lookup()
      and sockfd_put() routines to translate an fd to a socket.  The
      direct fget and fput calls were resulting in error messages from
      alloc_fd().
      
      Also clean up two log messages and remove a third, related to
      setting up sctp associations.
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      6861f350
    • David Teigland's avatar
      dlm: fix lowcomms_connect_node for sctp · 04bedd79
      David Teigland authored
      The recently added dlm_lowcomms_connect_node() from
      391fbdc5 does not work
      when using SCTP instead of TCP.  The sctp connection code
      has nothing to do without data to send.  Check for no data
      in the sctp connection code and do nothing instead of
      triggering a BUG.  Also have connect_node() do nothing
      when the protocol is sctp.
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      04bedd79
    • Linus Torvalds's avatar
      Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 9c1fe834
      Linus Torvalds authored
      * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM / yenta: Fix cardbus suspend/resume regression
        PM / PCMCIA: Drop second argument of pcmcia_socket_dev_suspend()
      9c1fe834
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 5a4c8d75
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (33 commits)
        sony-laptop: re-read the rfkill state when resuming from suspend
        sony-laptop: check for rfkill hard block at load time
        wext: add back wireless/ dir in sysfs for cfg80211 interfaces
        wext: Add bound checks for copy_from_user
        mac80211: improve/fix mlme messages
        cfg80211: always get BSS
        iwlwifi: fix 3945 ucode info retrieval after failure
        iwlwifi: fix memory leak in command queue handling
        iwlwifi: fix debugfs buffer handling
        cfg80211: don't set privacy w/o key
        cfg80211: wext: don't display BSSID unless associated
        net: Add explicit bound checks in net/socket.c
        bridge: Fix double-free in br_add_if.
        isdn: fix netjet/isdnhdlc build errors
        atm: dereference of he_dev->rbps_virt in he_init_group()
        ax25: Add missing dev_put in ax25_setsockopt
        Revert "sit: stateless autoconf for isatap"
        net: fix double skb free in dcbnl
        net: fix nlmsg len size for skb when error bit is set.
        net: fix vlan_get_size to include vlan_flags size
        ...
      5a4c8d75
    • Linus Torvalds's avatar
      Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · e15daf6c
      Linus Torvalds authored
      * 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (25 commits)
        drm/radeon/kms: Convert R520 to new init path and associated cleanup
        drm/radeon/kms: Convert RV515 to new init path and associated cleanup
        drm: fix radeon DRM warnings when !CONFIG_DEBUG_FS
        drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ
        drm/r600: fix memory leak introduced with 64k malloc avoidance fix.
        drm/kms: make fb helper work for all drivers.
        drm/radeon/r600: fix offset handling in CS parser
        drm/radeon/kms/r600: fix forcing pci mode on agp cards
        drm/radeon/kms: fix for the extra pages copying.
        drm/radeon/kms/r600: add support for vline relocs
        drm/radeon/kms: fix some bugs in vline reloc
        drm/radeon/kms/r600: clamp vram to aperture size
        drm/kms: protect against fb helper not being created.
        drm/r600: get values from the passed in IB not the copy.
        drm: create gitignore file for radeon
        drm/radeon/kms: remove unneeded master create/destroy functions.
        drm/kms: start adding command line interface using fb.
        fb: change rules for global rules match.
        drm/radeon/kms: don't require up to 64k allocations. (v2)
        drm/radeon/kms: enable dac load detection by default.
        ...
      
      Trivial conflicts in drivers/gpu/drm/radeon/radeon_asic.h due to adding
      '->vga_set_state' function pointers.
      e15daf6c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · 07892acf
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        percpu: make allocation failures more verbose
        percpu: make pcpu_setup_first_chunk() failures more verbose
        percpu: make embedding first chunk allocator check vmalloc space size
        sparc64: implement page mapping percpu first chunk allocator
        percpu: make pcpu_build_alloc_info() clear static buffers
        percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
      07892acf
    • Linus Torvalds's avatar
      Merge branch 'omap-fixes-for-linus' of... · 8c11499a
      Linus Torvalds authored
      Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
      
      * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
        omap: Fix wrong condition check in while loop for mailbox and iommu2
        omap: rng: Use resource_size instead of manual calculation
        omap: Fix MMC gpio_wp for BeagleBoard C2 and above
        omap: Fix matrix_keymap_data usage
        omap: Fix a OMAP_MPUIO_VBASE typo for 850
        omap: Fix wrong jtag_id for 850
        omap: iovmm: Fix compiler warning
        omap: mailbox: Flush posted write when acking mailbox irq
        omap: mailbox: Execute softreset at startup
        omap: Add missing mux pin for EHCI phy reset line
        omap: Fix 44xx compile
        omap: Fix mcspi compile for 2420
        omap: Fix compile for arch/arm/mach-omap2
      8c11499a
    • Linus Torvalds's avatar
      pty: reconnect the BSD TIOCSPTLCK handling to legacy ptys · 342a5971
      Linus Torvalds authored
      David Howells noticed (due to the compiler warning about an unused
      'pty_ops_bsd' variable) that we haven't actually been using the code
      that implements TIOCSPTLCK for legacy pty handling.  It's been that way
      since 2.6.26, commit 3e8e88ca to be
      exact ("pty: prepare for tty->ops changes").
      
      DavidH initially submitted a patch just removing the dead code entirely,
      and since nobody has apparently ever complained, I'm not entirely sure
      that wouldn't be the right thing to do.  But since the whole and only
      point of the legacy pty code is to be compatible with legacy distros
      that don't use the new unix98 pty model, let's just wire it up again.
      
      And clean it up a bit while we're at it.
      Acked-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      342a5971
    • Linus Torvalds's avatar
      Revert "x86, mce: do not compile mcelog message on AMD" · e207e143
      Linus Torvalds authored
      This reverts commit 22223c9b, as
      requested by Andi Kleen:
      
        "Obviously kernels compiled with AMD support can still run on non AMD
         systems, so messages like this can never be removed at compile time."
      Requsted-by: default avatarAndi Kleen <andi@firstfloor.org>
      Cc: Borislav Petkov <borislav.petkov@amd.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e207e143
  2. 29 Sep, 2009 10 commits
    • Jerome Glisse's avatar
      drm/radeon/kms: Convert R520 to new init path and associated cleanup · f0ed1f65
      Jerome Glisse authored
      Convert the r520 asic support to new init path, change are smaller than
      previous one as most of the architecture is now in place and more code
      sharing can happen btw various asics.
      Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      f0ed1f65
    • Jerome Glisse's avatar
      drm/radeon/kms: Convert RV515 to new init path and associated cleanup · d39c3b89
      Jerome Glisse authored
      Convert the rv515 asic support to new init path also add an explanation
      in radeon.h about the new init path. There is also few cleanups
      associated with this change (others asic calling rv515 helper
      functions).
      Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      d39c3b89
    • Mikael Pettersson's avatar
      drm: fix radeon DRM warnings when !CONFIG_DEBUG_FS · f4e45d02
      Mikael Pettersson authored
      Compiling the radeon DRM driver with !CONFIG_DEBUG_FS
      throws the following warnings:
      
      drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_ttm_debugfs_init':
      drivers/gpu/drm/radeon/radeon_ttm.c:714: warning: unused variable 'i'
      drivers/gpu/drm/radeon/radeon_ttm.c: At top level:
      drivers/gpu/drm/radeon/radeon_ttm.c:692: warning: 'radeon_mem_types_list' defined but not used
      drivers/gpu/drm/radeon/radeon_ttm.c:693: warning: 'radeon_mem_types_names' defined but not used
      
      Fix: move these variables inside the #if defined(CONFIG_DEBUG_FS)
      block in radeon_ttm_debugsfs_init(), which is the only place using them.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      f4e45d02
    • Mikael Pettersson's avatar
      drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ · bea1d35b
      Mikael Pettersson authored
      Compiling DRM throws the following warning if MAGIC_SYSRQ is disabled:
      
      drivers/gpu/drm/drm_fb_helper.c:101: warning: 'sysrq_drm_fb_helper_restore_op' defined but not used
      
      Fix: place sysrq_drm_fb_helper_restore_op and associated
      definitions inside #ifdef CONFIG_MAGIC_SYSRQ.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      bea1d35b
    • Tejun Heo's avatar
      percpu: make allocation failures more verbose · f2badb0c
      Tejun Heo authored
      Warn and dump stack when percpu allocation fails.  percpu allocator is
      still young and unchecked NULL percpu pointer usage can result in
      random memory corruption when combined with the pointer shifting in
      access macros.  Allocation failures should be rare and the warning
      message will be disabled after certain times.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      f2badb0c
    • Tejun Heo's avatar
      percpu: make pcpu_setup_first_chunk() failures more verbose · 635b75fc
      Tejun Heo authored
      The parameters to pcpu_setup_first_chunk() come from different sources
      depending on architecture and can be quite complex.  The function runs
      various sanity checks on the parameters and triggers BUG() if
      something isn't right.  However, this is very early during the boot
      and not reporting exactly what the problem is makes debugging even
      harder.
      
      Add PCPU_SETUP_BUG() macro which prints out enough information about
      the parameters.  As the macro still puts separate BUG() for each
      check, it won't lose any information even on the situations where only
      the program counter can be retrieved.
      
      While at it, also bump pcpu_dump_alloc_info() message to KERN_INFO so
      that it's visible on the console if boot fails to complete.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      635b75fc
    • Tejun Heo's avatar
      percpu: make embedding first chunk allocator check vmalloc space size · 6ea529a2
      Tejun Heo authored
      Embedding first chunk allocator maintains the distances between units
      in the vmalloc area and thus needs vmalloc space to be larger than the
      maximum distances between units; otherwise, it wouldn't be able to
      create any dynamic chunks.  This patch makes the embedding first chunk
      allocator check vmalloc space size and if the maximum distance between
      units is larger than 75% of it, print warning and, if page mapping
      allocator is available, fail initialization so that the system falls
      back onto it.
      
      This should work around percpu allocation failure problems on certain
      sparc64 configurations where distances between NUMA nodes are larger
      than the vmalloc area and makes percpu allocator more robust for
      future configurations.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      6ea529a2
    • Tejun Heo's avatar
      sparc64: implement page mapping percpu first chunk allocator · a70c6913
      Tejun Heo authored
      Implement page mapping percpu first chunk allocator as a fallback to
      the embedding allocator.  The next patch will make the embedding
      allocator check distances between units to determine whether it fits
      within the vmalloc area so that this fallback can be used on such
      cases.
      
      sparc64 currently has relatively small vmalloc area which makes it
      impossible to create any dynamic chunks on certain configurations
      leading to percpu allocation failures.  This and the next patch should
      allow those configurations to keep working until proper solution is
      found.
      
      While at it, mark pcpu_cpu_distance() with __init.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
      a70c6913
    • Tejun Heo's avatar
      percpu: make pcpu_build_alloc_info() clear static buffers · fb59e72e
      Tejun Heo authored
      pcpu_build_alloc_info() may be called multiple times when percpu is
      falling back to different first chunk allocator.  Make it clear static
      buffers so that they don't contain values from previous runs.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      fb59e72e
    • Tejun Heo's avatar
      percpu: fix unit_map[] verification in pcpu_setup_first_chunk() · ffe0d5a5
      Tejun Heo authored
      pcpu_setup_first_chunk() incorrectly used NR_CPUS as the impossible
      unit number while unit number can equal and go over NR_CPUS with
      sparse unit map.  This triggers BUG_ON() spuriously on machines which
      have non-power-of-two number of cpus.  Use UINT_MAX instead.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Reported-and-tested-by: default avatarTony Vroon <tony@linx.net>
      ffe0d5a5
  3. 28 Sep, 2009 21 commits