1. 12 Dec, 2014 5 commits
  2. 11 Dec, 2014 5 commits
  3. 10 Dec, 2014 1 commit
  4. 05 Dec, 2014 2 commits
  5. 02 Dec, 2014 3 commits
    • Ping Cheng's avatar
      HID: wacom: add defines for new Cintiq and DTU outbound tracking · fa770340
      Ping Cheng authored
      There are screen to tablet offsets for newer Cintiq and DTU models.
      These offsets serve as outbound tracking for those display tablets.
      
      Use defines instead of hardcoded numbers for the offsets.
      Signed-off-by: default avatarPing Cheng <pingc@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      fa770340
    • Benjamin Tissoires's avatar
      HID: wacom: fix freeze on open when autosuspend is on · dff67416
      Benjamin Tissoires authored
      Since the conversion from USB to HID (in v3.17), some people reported a
      freeze on boot with the wacom driver. Hans managed to get a stacktrace:
      
      [  240.272331] Call Trace:
      [  240.272338]  [<ffffffff813de7b9>] ? usb_hcd_submit_urb+0xa9/0xb10
      [  240.272347]  [<ffffffff81555579>] schedule+0x29/0x70
      [  240.272355]  [<ffffffff815559e6>] schedule_preempt_disabled+0x16/0x20
      [  240.272363]  [<ffffffff81557365>] __mutex_lock_slowpath+0xe5/0x230
      [  240.272372]  [<ffffffff815574c7>] mutex_lock+0x17/0x30
      [  240.272380]  [<ffffffffa063c1d2>] wacom_resume+0x22/0x50 [wacom]
      [  240.272396]  [<ffffffffa01aea8a>] hid_resume_common+0xba/0x110 [usbhid]
      [  240.272404]  [<ffffffff813e5890>] ? usb_runtime_suspend+0x80/0x80
      [  240.272417]  [<ffffffffa01aeb1d>] hid_resume+0x3d/0x70 [usbhid]
      [  240.272425]  [<ffffffff813e44a6>] usb_resume_interface.isra.6+0xb6/0x120
      [  240.272432]  [<ffffffff813e4774>] usb_resume_both+0x74/0x140
      [  240.272439]  [<ffffffff813e58aa>] usb_runtime_resume+0x1a/0x20
      [  240.272446]  [<ffffffff813b1912>] __rpm_callback+0x32/0x70
      [  240.272453]  [<ffffffff813b1976>] rpm_callback+0x26/0xa0
      [  240.272460]  [<ffffffff813b2d71>] rpm_resume+0x4b1/0x690
      [  240.272468]  [<ffffffff812ab992>] ? radix_tree_lookup_slot+0x22/0x50
      [  240.272475]  [<ffffffff813b2c1a>] rpm_resume+0x35a/0x690
      [  240.272482]  [<ffffffff8116e9c9>] ? zone_statistics+0x89/0xa0
      [  240.272489]  [<ffffffff813b2f90>] __pm_runtime_resume+0x40/0x60
      [  240.272497]  [<ffffffff813e4272>] usb_autopm_get_interface+0x22/0x60
      [  240.272509]  [<ffffffffa01ae8d9>] usbhid_open+0x59/0xe0 [usbhid]
      [  240.272517]  [<ffffffffa063ac85>] wacom_open+0x35/0x50 [wacom]
      [  240.272525]  [<ffffffff813f37b9>] input_open_device+0x79/0xa0
      [  240.272534]  [<ffffffffa048d1c1>] evdev_open+0x1b1/0x200 [evdev]
      [  240.272543]  [<ffffffff811c899e>] chrdev_open+0xae/0x1f0
      [  240.272549]  [<ffffffff811c88f0>] ? cdev_put+0x30/0x30
      [  240.272556]  [<ffffffff811c17e2>] do_dentry_open+0x1d2/0x320
      [  240.272562]  [<ffffffff811c1cd1>] finish_open+0x31/0x50
      [  240.272571]  [<ffffffff811d2202>] do_last.isra.36+0x652/0xe50
      [  240.272579]  [<ffffffff811d2ac7>] path_openat+0xc7/0x6f0
      [  240.272586]  [<ffffffff811cf012>] ? final_putname+0x22/0x50
      [  240.272594]  [<ffffffff811d42d2>] ? user_path_at_empty+0x72/0xd0
      [  240.272602]  [<ffffffff811d43fd>] do_filp_open+0x4d/0xc0
      [...]
      
      So here, wacom_open is called, and then wacom_resume is called by the
      PM system. However, wacom_open already took the lock when wacom_resume
      tries to get it. Freeze.
      
      A little bit of history shows that this already happened in the past
      - commit f6cd3783 ("Input: wacom - fix runtime PM related deadlock"),
      and the solution was to call first the PM function before taking the lock.
      
      The lock was introduced in commit commit e7224094 ("Input: wacom -
      implement suspend and autosuspend") when the autosuspend feature has
      been added. Given that usbhid already takes care of this very same
      locking between suspend/resume, I think we can simply kill the lock
      in open/close.
      
      The lock is now used also with LEDs, so we can not remove it completely.
      Reported-by: default avatarHans Spath <inbox-546@hans-spath.de>
      Tested-by: default avatarHans Spath <inbox-546@hans-spath.de>
      CC: stable@vger.kernel.org # v3.17+
      Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      dff67416
    • Benjamin Tissoires's avatar
      HID: wacom: re-add accidentally dropped Lenovo PID · 00d6f227
      Benjamin Tissoires authored
      Dropped in the following commit:
      
      commit a3e6f654 ("Input: wacom - keep wacom_ids ordered")
      Reported-by: default avatarHans Spath <inbox-546@hans-spath.de>
      CC: stable@vger.kernel.org    # v3.17+
      Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      00d6f227
  6. 01 Dec, 2014 1 commit
  7. 27 Nov, 2014 1 commit
  8. 26 Nov, 2014 1 commit
  9. 25 Nov, 2014 2 commits
  10. 21 Nov, 2014 2 commits
    • Jason Gerecke's avatar
      HID: wacom: Add angular resolution data to some ABS axes · 26fe4124
      Jason Gerecke authored
      Provide the resolution of several angular axes (tilt, pen rotation, puck
      rotation) to userspace. Because these values are natively degree-based, we
      need to convert them to into units/radian as required by the input_absinfo
      struct. To ensure wraparound behaves properly for the rotation axes, the
      converted value was rounded up rather than rounded nearest.
      
      Notably, the touchring axes (ABS_WHEEL and ABS_THROTTLE) are left without a
      a declared resolution because the their low resolution cannot be accurately
      represented (the worst-case rounding-induced error would be ~16 degrees).
      Pre-scaling the values and range by at least 10x would reduce the error in
      the resolution to acceptable levels, but the xf86-input-wacom driver is not
      able to use pre-scaled values for these axes at this time.
      Signed-off-by: default avatarJason Gerecke <killertofu@gmail.com>
      Reviewed-by: default avatarPing Cheng <pingc@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      26fe4124
    • Jason Gerecke's avatar
      HID: wacom: Report ABS_TILT_{X,Y} as signed values · ec5fc1c1
      Jason Gerecke authored
      Centers the ABS_TILT_{X,Y} axes so that a value of zero is reported when
      the pen is vertical. Combined with resolution information in the next
      patch, this makes it possible for userspace to calculate the pen angle
      without needing hardware-specific knowledge. The xf86-input-wacom driver
      was updated to support signed tilt values in late-2012 (2f2acec).
      Signed-off-by: default avatarJason Gerecke <killertofu@gmail.com>
      Reviewed-by: default avatarPing Cheng <pingc@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      ec5fc1c1
  11. 20 Nov, 2014 4 commits
  12. 19 Nov, 2014 2 commits
  13. 18 Nov, 2014 1 commit
  14. 14 Nov, 2014 1 commit
  15. 13 Nov, 2014 6 commits
  16. 12 Nov, 2014 3 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 04689e74
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "Two fixes --- one of them not exactly a one liner, but things are
        calming down on the KVM front at last"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: x86: Fix uninitialized op->type for some immediate values
        KVM: s390: virtio_ccw: remove unused variable
      04689e74
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20141109' of git://github.com/czankel/xtensa-linux · 74b60ef7
      Linus Torvalds authored
      Pull Xtensa fixes from Chris Zankel:
       - fix umount syscall
       - fix ISS and xtfpga Kconfig dependencies so that more randconfigs are
         buildable
       - add seccomp, getrandom, and memfd_create syscalls
       - add defconfigs for KC705 and SMP LX200
       - implement pgprot_noncached
      
      * tag 'xtensa-20141109' of git://github.com/czankel/xtensa-linux:
        xtensa: xtfpga: add lx200 SMP DTS and defconfig
        xtensa: xtfpga: add generic KC705 board config
        xtensa: re-wire umount syscall to sys_oldumount
        xtensa: xtfpga: only select ethoc when ethernet is available
        xtensa: add seccomp, getrandom, and memfd_create syscalls
        xtensa: ISS: add BLOCK dependency to BLK_DEV_SIMDISK
        xtensa: implement pgprot_noncached
        xtensa/uapi: Add definition of TIOC[SG]RS485
      74b60ef7
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 0a6cb34f
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       - stack corruption fix for pseries hwrng driver
       - add missing DMA unmap in caam crypto driver
       - fix NUMA crash in qat crypto driver
       - fix buggy mapping of zero-length associated data in qat crypto driver
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        hwrng: pseries - port to new read API and fix stack corruption
        crypto: caam - fix missing dma unmap on error path
        crypto: qat - Enforce valid numa configuration
        crypto: qat - Prevent dma mapping zero length assoc data
      0a6cb34f