1. 30 Sep, 2009 6 commits
    • 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 20 commits
  4. 27 Sep, 2009 4 commits
    • Linus Torvalds's avatar
      Linux 2.6.32-rc1 · 17d857be
      Linus Torvalds authored
      17d857be
    • Linus Torvalds's avatar
      alpha: Fix duplicate <asm/thread_info.h> include · b3b75cef
      Linus Torvalds authored
      .. duplicated by merging the same fix twice, for details see commit
      0d9df251 ("Merge
      git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes")
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b3b75cef
    • Dave Young's avatar
      tty: Fix regressions caused by commit b50989dc · f278a2f7
      Dave Young authored
      The following commit made console open fails while booting:
      
      	commit b50989dc
      	Author: Alan Cox <alan@linux.intel.com>
      	Date:   Sat Sep 19 13:13:22 2009 -0700
      
      	tty: make the kref destructor occur asynchronously
      
      Due to tty release routines run in a workqueue now, error like the
      following will be reported while booting:
      
      INIT open /dev/console Input/output error
      
      It also causes hibernation regression to appear as reported at
      http://bugzilla.kernel.org/show_bug.cgi?id=14229
      
      The reason is that now there's latency issue with closing, but when
      we open a "closing not finished" tty, -EIO will be returned.
      
      Fix it as per the following Alan's suggestion:
      
        Fun but it's actually not a bug and the fix is wrong in itself as
        the port may be closing but not yet being destructed, in which case
        it seems to do the wrong thing.  Opening a tty that is closing (and
        could be closing for long periods) is supposed to return -EIO.
      
        I suspect a better way to deal with this and keep the old console
        timing is to split tty->shutdown into two functions.
      
        tty->shutdown() - called synchronously just before we dump the tty
        onto the waitqueue for destruction
      
        tty->cleanup() - called when the destructor runs.
      
        We would then do the shutdown part which can occur in IRQ context
        fine, before queueing the rest of the release (from tty->magic = 0
        ...  the end) to occur asynchronously
      
        The USB update in -next would then need a call like
      
             if (tty->cleanup)
                     tty->cleanup(tty);
      
        at the top of the async function and the USB shutdown to be split
        between shutdown and cleanup as the USB resource cleanup and final
        tidy cannot occur synchronously as it needs to sleep.
      
        In other words the logic becomes
      
             final kref put
                     make object unfindable
      
             async
                     clean it up
      Signed-off-by: default avatarDave Young <hidave.darkstar@gmail.com>
      [ rjw: Rebased on top of 2.6.31-git, reworked the changelog. ]
      Signed-off-by: default avatar"Rafael J. Wysocki" <rjw@sisk.pl>
      [ Changed serial naming to match new rules, dropped tty_shutdown as per
        comments from Alan Stern  - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f278a2f7
    • Linus Torvalds's avatar
      ACPI: kill "unused variable ‘i’" warning · 569ec4cc
      Linus Torvalds authored
      Commit 3d5b6fb4 ("ACPI: Kill overly
      verbose "power state" log messages") removed the actual use of this
      variable, but didn't remove the variable itself, resulting in build
      warnings like
      
        drivers/acpi/processor_idle.c: In function ‘acpi_processor_power_init’:
        drivers/acpi/processor_idle.c:1169: warning: unused variable ‘i’
      
      Just get rid of the now unused variable.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      569ec4cc