Skip to content
  1. Nov 01, 2012
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · ed48c06c
      Linus Torvalds authored
      Pull nouveau fixes from Dave Airlie:
       "Just a nouveau set, since we have a couple of reports on lkml and
        dri-devel of regressions that this should fix I sent it along on its
        own."
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/nouveau: headless mode by default if pci class != vga display
        drm/nouveau: resurrect headless mode since rework
        drm/nv50/fb: prevent oops on chipsets without compression tags
        drm/nouveau: allow creation of zero-sized mm
        drm/nouveau/i2c: fix typo when checking nvio i2c port validity
        drm/nouveau: silence modesetting spam on pre-gf8 chipsets
      ed48c06c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 296bac30
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
       "This contains fixes for two devices by Jiri Slaby and Xianhan Yu, new
        device IDs for MacBook Pro 10,2 from Dirk Hohndel and generic
        multitouch code fix from Alan Cox."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
        HID: Add support for the MacBook Pro 10,2 keyboard / touchpad
        HID: multitouch: fix maxcontacts problem on GeneralTouch
        HID: multitouch: put the case in the right switch statement
        HID: microsoft: fix invalid rdesc for 3k kbd
      296bac30
    • Linus Torvalds's avatar
      Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 33046957
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "This contains unexpectedly many changes in a wide range due to the
        fixes for races at disconnection of USB audio devices.  In the end, we
        end up covering fairly core parts of sound subsystem.
      
        Other than that, just a few usual small fixes."
      
      * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: ice1724: Fix rate setup after resume
        ALSA: Avoid endless sleep after disconnect
        ALSA: Add a reference counter to card instance
        ALSA: usb-audio: Fix races at disconnection in mixer_quirks.c
        ALSA: usb-audio: Use rwsem for disconnect protection
        ALSA: usb-audio: Fix races at disconnection
        ALSA: PCM: Fix some races at disconnection
        ASoC: omap-dmic: Correct functional clock name
        ASoC: zoom2: Fix compile error by including correct header files
        ALSA: hda - Fix mute-LED setup for HP dv5 laptop
      33046957
  2. Oct 31, 2012
    • Dirk Hohndel's avatar
      HID: Add support for the MacBook Pro 10,2 keyboard / touchpad · 8d80da90
      Dirk Hohndel authored
      
      
      This enables the existing drivers for keyboard and touchpad with the new
      USB IDs found on the MBP 13" Reasonable Resolution (also known as the
      Retina Display).
      
      Added entries to both keyboard and mouse ignore lists.
      
      Signed-off-by: default avatarDirk Hohndel <dirk@hohndel.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      8d80da90
    • Xianhan Yu's avatar
      HID: multitouch: fix maxcontacts problem on GeneralTouch · 58ad34bf
      Xianhan Yu authored
      
      
      Fix maxcontacts problem for PWT GeneralTouch multi-touchscreen.
      
      Our device didn't contain HID_DG_CONTACTMAX usage. This usage use to describe
      touchscreen's maxcontacts for hid-multitouch.c to get maxcontacts automatic. We
      fix the device that driver can get maxcontact from our device, hence it doesn't
      need .maxcontact=10. Now there is just one device class can fix all our PWT
      touchscreen.
      
      Signed-off-by: default avatarXianhan Yu <aroundight77@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      58ad34bf
    • Alan Cox's avatar
    • Jiri Slaby's avatar
      HID: microsoft: fix invalid rdesc for 3k kbd · 3ccc60f9
      Jiri Slaby authored
      
      
      Microsoft Digital Media Keyboard 3000 has two interfaces, and the
      second one has a report descriptor with a bug. The second collection
      says:
      05 01 -- global; usage page -- 01 -- Generic Desktop Controls
      09 80 -- local; usage -- 80 -- System Control
      a1 01 -- main; collection -- 01 -- application
      
      85 03 -- global; report ID -- 03
      19 00 -- local; Usage Minimum -- 00
      29 ff -- local; Usage Maximum -- ff
      15 00 -- global; Logical Minimum -- 0
      26 ff 00 -- global; Logical Maximum -- ff
      81 00 -- main; input
      
      c0 -- main; End Collection
      
      I.e. it makes us think that there are all kinds of usages of system
      control. That the keyboard is a not only a keyboard, but also a
      joystick, mouse, gamepad, keypad, etc. The same as for the Wireless
      Desktop Receiver, this should be Physical Min/Max. So fix that
      appropriately.
      
      References: https://bugzilla.novell.com/show_bug.cgi?id=776834
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      3ccc60f9
    • Takashi Iwai's avatar
      ALSA: ice1724: Fix rate setup after resume · 16c2e1fa
      Takashi Iwai authored
      
      
      The rate isn't restored properly after resume since it's only set up
      in hw_params, and not in prepare callback.  For fixing it, put the
      corresponding call to resume callback as well.
      
      Reported-and-tested-by: default avatarOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      16c2e1fa
    • Al Viro's avatar
      Return the right error value when dup[23]() newfd argument is too large · 08f05c49
      Al Viro authored
      Jack Lin reports that the error return from dup3() for the RLIMIT_NOFILE
      case changed incorrectly after 3.6.
      
      The culprit is commit f33ff992
      
       ("take rlimit check to callers of
      expand_files()") which when it moved the "return -EMFILE" out to the
      caller, didn't notice that the dup3() had special code to turn the
      EMFILE return into EBADF.
      
      The replace_fd() helper that got added later then inherited the bug too.
      
      Reported-by: default avatarJack Lin <linliangjie@huawei.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      [ Noted more bugs, wrote proper changelog, fixed up typos - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      08f05c49
    • Dave Airlie's avatar
      Merge branch 'drm-nouveau-fixes' of... · 4936b172
      Dave Airlie authored
      Merge branch 'drm-nouveau-fixes' of git://people.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes
      
      This covers all known nouveau regressions at the moment, along with a fix
      to not steal the console on headless GPUs.
      
      * 'drm-nouveau-fixes' of git://people.freedesktop.org/git/nouveau/linux-2.6:
        drm/nouveau: headless mode by default if pci class != vga display
        drm/nouveau: resurrect headless mode since rework
        drm/nv50/fb: prevent oops on chipsets without compression tags
        drm/nouveau: allow creation of zero-sized mm
        drm/nouveau/i2c: fix typo when checking nvio i2c port validity
        drm/nouveau: silence modesetting spam on pre-gf8 chipsets
      4936b172
    • Ben Skeggs's avatar
      drm/nouveau: headless mode by default if pci class != vga display · e412e95a
      Ben Skeggs authored
      
      
      This is to prevent nouveau from taking over the console on headless boards
      such as Tesla.
      
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      e412e95a
    • Linus Torvalds's avatar
      Merge tag 'md-3.7-fixes' of git://neil.brown.name/md · 2df4f261
      Linus Torvalds authored
      Pull md fixes from NeilBrown:
       "Some fixes for md in 3.7
         - one recently introduced crash for dm-raid10 with discard
         - one bug in new functionality that has been around for a few
           releases.
         - minor bug in md's 'faulty' personality
      
        and UAPI disintegration for md."
      
      * tag 'md-3.7-fixes' of git://neil.brown.name/md:
        MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c
        md/raid1: Fix assembling of arrays containing Replacements.
        md faulty: use disk_stack_limits()
        UAPI: (Scripted) Disintegrate include/linux/raid
      2df4f261
    • Ben Skeggs's avatar
      9430738d
    • Ben Skeggs's avatar
      drm/nv50/fb: prevent oops on chipsets without compression tags · 5cad16ac
      Ben Skeggs authored
      
      
      Unconditionally create the tagram mm, even if there's zero tags.
      
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      5cad16ac
    • Ben Skeggs's avatar
      drm/nouveau: allow creation of zero-sized mm · a7dbf004
      Ben Skeggs authored
      
      
      Useful for places where a given chipset may or may not have a given
      resource, and we want to avoid having to spray checks for the mm's
      existance around everywhere.
      
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      a7dbf004
    • Ben Skeggs's avatar
    • Ben Skeggs's avatar
      cee59f15
    • Jonathan Brassow's avatar
      MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c · ed30be07
      Jonathan Brassow authored
      Commit 2863b9eb didn't take into account the changes to add TRIM support to
      RAID10 (commit 532a2a3f
      
      ).  That is, when using dm-raid.c to create the
      RAID10 arrays, there is no mddev->gendisk or mddev->queue.  The code added
      to support TRIM simply assumes that mddev->queue is available without
      checking.  The result is an oops any time dm-raid.c attempts to create a
      RAID10 device.
      
      Signed-off-by: default avatarJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      ed30be07
    • NeilBrown's avatar
      md/raid1: Fix assembling of arrays containing Replacements. · 02b898f2
      NeilBrown authored
      setup_conf in raid1.c uses conf->raid_disks before assigning
      a value.  It is used when including 'Replacement' devices.
      
      The consequence is that assembling an array which contains a
      replacement will misbehave and either not include the replacement, or
      not include the device being replaced.
      
      Though this doesn't lead directly to data corruption, it could lead to
      reduced data safety.
      
      So use mddev->raid_disks, which is initialised, instead.
      
      Bug was introduced by commit c19d5798
      
      
            md/raid1: recognise replacements when assembling arrays.
      
      in 3.3, so fix is suitable for 3.3.y thru 3.6.y.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      02b898f2
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-v3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · bc909421
      Linus Torvalds authored
      Pull GPIO fixes from Linus Walleij:
       - Fix a potential bit wrap issue in the Timberdale driver
       - Fix up the buffer allocation size in the 74x164 driver
       - Set the value in direction_output() right in the mvebu driver
       - Return proper error codes for invalid GPIOs
       - Fix an off-mode bug for the OMAP
       - Don't initialize the mask_cach on the mvebu driver
      
      * tag 'gpio-fixes-v3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        GPIO: mvebu-gpio: Don't initialize the mask_cache
        gpio/omap: fix off-mode bug: clear debounce settings on free/reset
        gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios
        gpio: mvebu: correctly set the value in direction_output()
        gpio-74x164: Fix buffer allocation size
        gpio-timberdale: fix a potential wrapping issue
      bc909421
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 8c673cbc
      Linus Torvalds authored
      Pull ext4 bugfix from Ted Ts'o:
       "This fixes the root cause of the ext4 data corruption bug which raised
        a ruckus on LWN, Phoronix, and Slashdot.
      
        This bug only showed up when non-standard mount options
        (journal_async_commit and/or journal_checksum) were enabled, and when
        the file system was not cleanly unmounted, but the root cause was the
        inode bitmap modifications was not being properly journaled.
      
        This could potentially lead to minor file system corruptions (pass 5
        complaints with the inode allocation bitmap) after an unclean shutdown
        under the wrong/unlucky workloads, but it turned into major failure if
        the journal_checksum and/or jouaral_async_commit was enabled."
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix unjournaled inode bitmap modification
      8c673cbc
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 4476c0ee
      Linus Torvalds authored
      Pull block driver update from Jens Axboe:
       "Distilled down variant, the rest will pass over to 3.8.  I pulled it
        into the for-linus branch I had waiting for a pull request as well, in
        case you are wondering why there are new entries in here too.  This
        also got rid of two reverts and the ones of the mtip32xx patches that
        went in later in the 3.6 cycle, so the series looks a bit cleaner."
      
      * 'for-linus' of git://git.kernel.dk/linux-block:
        loop: Make explicit loop device destruction lazy
        mtip32xx:Added appropriate timeout value for secure erase
        xen/blkback: Change xen_vbd's flush_support and discard_secure to have type unsigned int, rather than bool
        cciss: select CONFIG_CHECK_SIGNATURE
        cciss: remove unneeded memset()
        xen/blkback: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
        pktcdvd: update MAINTAINERS
        floppy: remove dr, reuse drive on do_floppy_init
        floppy: use common function to check if floppies can be registered
        floppy: properly handle failure on add_disk loop
        floppy: do put_disk on current dr if blk_init_queue fails
        floppy: don't call alloc_ordered_workqueue inside the alloc_disk loop
        xen/blkback: Fix compile warning
        block: Add blk_rq_pos(rq) to sort rq when plushing
        drivers/block: remove CONFIG_EXPERIMENTAL
        block: remove CONFIG_EXPERIMENTAL
        vfs: fix: don't increase bio_slab_max if krealloc() fails
        blkcg: stop iteration early if root_rl is the only request list
        blkcg: Fix use-after-free of q->root_blkg and q->root_rl.blkg
      4476c0ee
    • Andrew Lunn's avatar
      GPIO: mvebu-gpio: Don't initialize the mask_cache · 8fcff5f1
      Andrew Lunn authored
      
      
      Due to the SMP nature of some of the chips, which have per CPU
      registers, the driver does not use the generic irq_gc_mask_set_bit() &
      irq_gc_mask_clr_bit() functions, which only support a single register.
      The driver has its own implementation of these functions, which can
      pick the correct register depending on the CPU being used. The
      functions do however use the gc->mask_cache value.
      
      The call to irq_setup_generic_chip() was passing
      IRQ_GC_INIT_MASK_CACHE, which caused the gc->mask_cache to be
      initialized to the contents of some random register. This resulted in
      unexpected interrupts been delivered from random GPIO lines.
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Tested-by: default avatarJamie Lentin <jm@lentin.co.uk>
      Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Tested-by: default avatarMichael Walle <michael@walle.cc>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      8fcff5f1
  3. Oct 30, 2012