1. 03 10月, 2009 1 次提交
    • A
      x86: Simplify bound checks in the MTRR code · 11879ba5
      Arjan van de Ven 提交于
      The current bound checks for copy_from_user in the MTRR driver are
      not as obvious as they could be, and gcc agrees with that.
      
      This patch simplifies the boundary checks to the point that gcc can
      now prove to itself that the copy_from_user() is never going past
      its bounds.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      LKML-Reference: <20090926205150.30797709@infradead.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      11879ba5
  2. 02 10月, 2009 3 次提交
    • B
      x86: EDAC: carve out AMD MCE decoding logic · 0d18b2e3
      Borislav Petkov 提交于
      This converts the MCE decoding logic into a standalone config
      option which can be built-in or a module, the first one being the
      default for MCEs happening early on in the boot process.
      
      This, beyond being separated in a cleaner way, also saves RAM by
      making the decoding logic modular.
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Andi Kleen <andi@firstfloor.org>
      LKML-Reference: <20091002133148.GD28682@aftab>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      0d18b2e3
    • B
      initcalls: Add early_initcall() for modules · 329bd411
      Borislav Petkov 提交于
      Complete the early_initcall() API by making it available in modules
      too. To be used by the EDAC/MCE code.
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Cc: Andi Kleen <andi@firstfloor.org>
      LKML-Reference: <20091002132321.GC28682@aftab>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      329bd411
    • I
      x86: EDAC: MCE: Fix MCE decoding callback logic · f436f8bb
      Ingo Molnar 提交于
      Make decoding of MCEs happen only on AMD hardware by registering a
      non-default callback only on CPU families which support it.
      
      While looking at the interaction of decode_mce() with the other MCE
      code i also noticed a few other things and made the following
      cleanups/fixes:
      
       - Fixed the mce_decode() weak alias - a weak alias is really not
         good here, it should be a proper callback. A weak alias will be
         overriden if a piece of code is built into the kernel - not
         good, obviously.
      
       - The patch initializes the callback on AMD family 10h and 11h.
      
       - Added the more correct fallback printk of:
      
      	No support for human readable MCE decoding on this CPU type.
      	Transcribe the message and run it through 'mcelog --ascii' to decode.
      
         On CPUs that dont have a decoder.
      
       - Made the surrounding code more readable.
      
      Note that the callback allows us to have a default fallback -
      without having to check the CPU versions during the printout
      itself. When an EDAC module registers itself, it can install the
      decode-print function.
      
      (there's no unregister needed as this is core code.)
      
      version -v2 by Borislav Petkov:
      
       - add K8 to the set of supported CPUs
      
       - always build in edac_mce_amd since we use an early_initcall now
      
       - fix checkpatch warnings
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Andi Kleen <andi@firstfloor.org>
      LKML-Reference: <20091001141432.GA11410@aftab>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      f436f8bb
  3. 01 10月, 2009 31 次提交
  4. 30 9月, 2009 5 次提交
    • L
      Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 9c1fe834
      Linus Torvalds 提交于
      * '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
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 5a4c8d75
      Linus Torvalds 提交于
      * 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
    • L
      Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · e15daf6c
      Linus Torvalds 提交于
      * '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
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · 07892acf
      Linus Torvalds 提交于
      * '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
    • L
      Merge branch 'omap-fixes-for-linus' of... · 8c11499a
      Linus Torvalds 提交于
      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