1. 23 Apr, 2020 3 commits
    • Alan Stern's avatar
      usb-storage: Add unusual_devs entry for JMicron JMS566 · 94f9c8c3
      Alan Stern authored
      Cyril Roelandt reports that his JMicron JMS566 USB-SATA bridge fails
      to handle WRITE commands with the FUA bit set, even though it claims
      to support FUA.  (Oddly enough, a later version of the same bridge,
      version 2.03 as opposed to 1.14, doesn't claim to support FUA.  Also
      oddly, the bridge _does_ support FUA when using the UAS transport
      instead of the Bulk-Only transport -- but this device was blacklisted
      for uas in commit bc3bdb12 ("usb-storage: Disable UAS on JMicron
      SATA enclosure") for apparently unrelated reasons.)
      
      This patch adds a usb-storage unusual_devs entry with the BROKEN_FUA
      flag.  This allows the bridge to work properly with usb-storage.
      Reported-and-tested-by: default avatarCyril Roelandt <tipecaml@gmail.com>
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: <stable@vger.kernel.org>
      
      Link: https://lore.kernel.org/r/Pine.LNX.4.44L0.2004221613110.11262-100000@iolanthe.rowland.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      94f9c8c3
    • Alan Stern's avatar
      USB: hub: Revert commit bd0e6c96 ("usb: hub: try old enumeration scheme... · 3155f4f4
      Alan Stern authored
      USB: hub: Revert commit bd0e6c96 ("usb: hub: try old enumeration scheme first for high speed devices")
      
      Commit bd0e6c96 ("usb: hub: try old enumeration scheme first for
      high speed devices") changed the way the hub driver enumerates
      high-speed devices.  Instead of using the "new" enumeration scheme
      first and switching to the "old" scheme if that doesn't work, we start
      with the "old" scheme.  In theory this is better because the "old"
      scheme is slightly faster -- it involves resetting the device only
      once instead of twice.
      
      However, for a long time Windows used only the "new" scheme.  Zeng Tao
      said that Windows 8 and later use the "old" scheme for high-speed
      devices, but apparently there are some devices that don't like it.
      William Bader reports that the Ricoh webcam built into his Sony Vaio
      laptop not only doesn't enumerate under the "old" scheme, it gets hung
      up so badly that it won't then enumerate under the "new" scheme!  Only
      a cold reset will fix it.
      
      Therefore we will revert the commit and go back to trying the "new"
      scheme first for high-speed devices.
      Reported-and-tested-by: default avatarWilliam Bader <williambader@hotmail.com>
      Ref: https://bugzilla.kernel.org/show_bug.cgi?id=207219Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Fixes: bd0e6c96 ("usb: hub: try old enumeration scheme first for high speed devices")
      CC: Zeng Tao <prime.zeng@hisilicon.com>
      CC: <stable@vger.kernel.org>
      
      Link: https://lore.kernel.org/r/Pine.LNX.4.44L0.2004221611230.11262-100000@iolanthe.rowland.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3155f4f4
    • Alan Stern's avatar
      USB: hub: Fix handling of connect changes during sleep · 9f952e26
      Alan Stern authored
      Commit 8099f58f ("USB: hub: Don't record a connect-change event
      during reset-resume") wasn't very well conceived.  The problem it
      tried to fix was that if a connect-change event occurred while the
      system was asleep (such as a device disconnecting itself from the bus
      when it is suspended and then reconnecting when it resumes)
      requiring a reset-resume during the system wakeup transition, the hub
      port's change_bit entry would remain set afterward.  This would cause
      the hub driver to believe another connect-change event had occurred
      after the reset-resume, which was wrong and would lead the driver to
      send unnecessary requests to the device (which could interfere with a
      firmware update).
      
      The commit tried to fix this by not setting the change_bit during the
      wakeup.  But this was the wrong thing to do; it means that when a
      device is unplugged while the system is asleep, the hub driver doesn't
      realize anything has happened: The change_bit flag which would tell it
      to handle the disconnect event is clear.
      
      The commit needs to be reverted and the problem fixed in a different
      way.  Fortunately an alternative solution was noted in the commit's
      Changelog: We can continue to set the change_bit entry in
      hub_activate() but then clear it when a reset-resume occurs.  That way
      the the hub driver will see the change_bit when a device is
      disconnected but won't see it when the device is still present.
      
      That's what this patch does.
      Reported-and-tested-by: default avatarPeter Chen <peter.chen@nxp.com>
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Fixes: 8099f58f ("USB: hub: Don't record a connect-change event during reset-resume")
      Tested-by: default avatarPaul Zimmerman <pauldzim@gmail.com>
      CC: <stable@vger.kernel.org>
      
      Link: https://lore.kernel.org/r/Pine.LNX.4.44L0.2004221602480.11262-100000@iolanthe.rowland.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9f952e26
  2. 22 Apr, 2020 1 commit
  3. 21 Apr, 2020 3 commits
  4. 20 Apr, 2020 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'fixes-for-v5.7-rc2' of... · 4dfb9ce8
      Greg Kroah-Hartman authored
      Merge tag 'fixes-for-v5.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-linus
      
      Felipe writes:
      
      USB: fixes for v5.7-rc2
      
      DWC3 learns how to properly set maxpacket limit and got a fix for a
      request completion bug. The raw gadget got a fix for
      copy_to/from_user() checks. Atmel got an improvement on vbus
      disconnect handling.
      
      We're also adding support for another SoC to the Renesas DRD driver.
      
      * tag 'fixes-for-v5.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb:
        usb: raw-gadget: Fix copy_to/from_user() checks
        usb: raw-gadget: fix raw_event_queue_fetch locking
        usb: gadget: udc: atmel: Fix vbus disconnect handling
        usb: dwc3: gadget: Fix request completion check
        usb: dwc3: gadget: Do link recovery for SS and SSP
        dt-bindings: usb: renesas,usb3-peri: add r8a77961 support
        dt-bindings: usb: renesas,usbhs: add r8a77961 support
        dt-bindings: usb: usb-xhci: add r8a77961 support
        docs: dt: qcom,dwc3.txt: fix cross-reference for a converted file
        usb: dwc3: gadget: Properly set maxpacket limit
        usb: dwc3: Fix GTXFIFOSIZ.TXFDEP macro name
        usb: gadget: udc: bdc: Remove unnecessary NULL checks in bdc_req_complete
      4dfb9ce8
  5. 17 Apr, 2020 4 commits
  6. 16 Apr, 2020 21 commits
  7. 12 Apr, 2020 7 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc1 · 8f3d9f35
      Linus Torvalds authored
      8f3d9f35
    • Linus Torvalds's avatar
      MAINTAINERS: sort field names for all entries · 3b50142d
      Linus Torvalds authored
      This sorts the actual field names too, potentially causing even more
      chaos and confusion at merge time if you have edited the MAINTAINERS
      file.  But the end result is a more consistent layout, and hopefully
      it's a one-time pain minimized by doing this just before the -rc1
      release.
      
      This was entirely scripted:
      
        ./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3b50142d
    • Linus Torvalds's avatar
      MAINTAINERS: sort entries by entry name · 4400b7d6
      Linus Torvalds authored
      They are all supposed to be sorted, but people who add new entries don't
      always know the alphabet.  Plus sometimes the entry names get edited,
      and people don't then re-order the entry.
      
      Let's see how painful this will be for merging purposes (the MAINTAINERS
      file is often edited in various different trees), but Joe claims there's
      relatively few patches in -next that touch this, and doing it just
      before -rc1 is likely the best time.  Fingers crossed.
      
      This was scripted with
      
        /scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS
      
      but then I also ended up manually upper-casing a few entry names that
      stood out when looking at the end result.
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4400b7d6
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4f8a3cc1
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of three patches to fix the fallout of the newly added split
        lock detection feature.
      
        It addressed the case where a KVM guest triggers a split lock #AC and
        KVM reinjects it into the guest which is not prepared to handle it.
      
        Add proper sanity checks which prevent the unconditional injection
        into the guest and handles the #AC on the host side in the same way as
        user space detections are handled. Depending on the detection mode it
        either warns and disables detection for the task or kills the task if
        the mode is set to fatal"
      
      * tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        KVM: VMX: Extend VMXs #AC interceptor to handle split lock #AC in guest
        KVM: x86: Emulate split-lock access as a write in emulator
        x86/split_lock: Provide handle_guest_split_lock()
      4f8a3cc1
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0785249f
      Linus Torvalds authored
      Pull time(keeping) updates from Thomas Gleixner:
      
       - Fix the time_for_children symlink in /proc/$PID/ so it properly
         reflects that it part of the 'time' namespace
      
       - Add the missing userns limit for the allowed number of time
         namespaces, which was half defined but the actual array member was
         not added. This went unnoticed as the array has an exessive empty
         member at the end but introduced a user visible regression as the
         output was corrupted.
      
       - Prevent further silent ucount corruption by adding a BUILD_BUG_ON()
         to catch half updated data.
      
      * tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ucount: Make sure ucounts in /proc/sys/user don't regress again
        time/namespace: Add max_time_namespaces ucount
        time/namespace: Fix time_for_children symlink
      0785249f
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 590680d1
      Linus Torvalds authored
      Pull scheduler fixes/updates from Thomas Gleixner:
      
       - Deduplicate the average computations in the scheduler core and the
         fair class code.
      
       - Fix a raise between runtime distribution and assignement which can
         cause exceeding the quota by up to 70%.
      
       - Prevent negative results in the imbalanace calculation
      
       - Remove a stale warning in the workqueue code which can be triggered
         since the call site was moved out of preempt disabled code. It's a
         false positive.
      
       - Deduplicate the print macros for procfs
      
       - Add the ucmap values to the SCHED_DEBUG procfs output for completness
      
      * tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/debug: Add task uclamp values to SCHED_DEBUG procfs
        sched/debug: Factor out printing formats into common macros
        sched/debug: Remove redundant macro define
        sched/core: Remove unused rq::last_load_update_tick
        workqueue: Remove the warning in wq_worker_sleeping()
        sched/fair: Fix negative imbalance in imbalance calculation
        sched/fair: Fix race between runtime distribution and assignment
        sched/fair: Align rq->avg_idle and rq->avg_scan_cost
      590680d1
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 20e2aa81
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Three fixes/updates for perf:
      
         - Fix the perf event cgroup tracking which tries to track the cgroup
           even for disabled events.
      
         - Add Ice Lake server support for uncore events
      
         - Disable pagefaults when retrieving the physical address in the
           sampling code"
      
      * tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Disable page faults when getting phys address
        perf/x86/intel/uncore: Add Ice Lake server uncore support
        perf/cgroup: Correct indirection in perf_less_group_idx()
        perf/core: Fix event cgroup tracking
      20e2aa81