1. 25 Mar, 2020 3 commits
    • Marco Elver's avatar
      kcsan: Add current->state to implicitly atomic accesses · 44656d3d
      Marco Elver authored
      Add volatile current->state to list of implicitly atomic accesses. This
      is in preparation to eventually enable KCSAN on kernel/sched (which
      currently still has KCSAN_SANITIZE := n).
      
      Since accesses that match the special check in atomic.h are rare, it
      makes more sense to move this check to the slow-path, avoiding the
      additional compare in the fast-path. With the microbenchmark, a speedup
      of ~6% is measured.
      Signed-off-by: default avatarMarco Elver <elver@google.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      44656d3d
    • Marco Elver's avatar
      kcsan: Add option for verbose reporting · 2402d0ea
      Marco Elver authored
      Adds CONFIG_KCSAN_VERBOSE to optionally enable more verbose reports.
      Currently information about the reporting task's held locks and IRQ
      trace events are shown, if they are enabled.
      Signed-off-by: default avatarMarco Elver <elver@google.com>
      Suggested-by: default avatarQian Cai <cai@lca.pw>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      2402d0ea
    • Marco Elver's avatar
      kcsan: Add option to allow watcher interruptions · 48b1fc19
      Marco Elver authored
      Add option to allow interrupts while a watchpoint is set up. This can be
      enabled either via CONFIG_KCSAN_INTERRUPT_WATCHER or via the boot
      parameter 'kcsan.interrupt_watcher=1'.
      
      Note that, currently not all safe per-CPU access primitives and patterns
      are accounted for, which could result in false positives. For example,
      asm-generic/percpu.h uses plain operations, which by default are
      instrumented. On interrupts and subsequent accesses to the same
      variable, KCSAN would currently report a data race with this option.
      
      Therefore, this option should currently remain disabled by default, but
      may be enabled for specific test scenarios.
      
      To avoid new warnings, changes all uses of smp_processor_id() to use the
      raw version (as already done in kcsan_found_watchpoint()). The exact SMP
      processor id is for informational purposes in the report, and
      correctness is not affected.
      Signed-off-by: default avatarMarco Elver <elver@google.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      48b1fc19
  2. 21 Mar, 2020 28 commits
  3. 20 Mar, 2020 9 commits
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 5ad0ec0b
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
      
       - Fix panic() when it occurs during secondary CPU startup
      
       - Fix "kpti=off" when KASLR is enabled
      
       - Fix howler in compat syscall table for vDSO clock_getres() fallback
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: compat: Fix syscall number of compat_clock_getres
        arm64: kpti: Fix "kpti=off" when KASLR is enabled
        arm64: smp: fix crash_smp_send_stop() behaviour
        arm64: smp: fix smp_send_stop() behaviour
      5ad0ec0b
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f014d2b8
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small different driver fixes for 5.6-rc7:
      
         - binderfs fix, yet again
      
         - slimbus new device id added
      
         - hwtracing bugfixes for reported issues and a new device id
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'char-misc-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        intel_th: pci: Add Elkhart Lake CPU support
        intel_th: Fix user-visible error codes
        intel_th: msu: Fix the unexpected state warning
        stm class: sys-t: Fix the use of time_after()
        slimbus: ngd: add v2.1.0 compatible
        binderfs: use refcount for binder control devices too
      f014d2b8
    • Linus Torvalds's avatar
      Merge tag 'staging-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 3bd14829
      Linus Torvalds authored
      Pull staging/IIO fixes from Greg KH:
       "Here are a number of small staging and IIO driver fixes for 5.6-rc7
      
        Nothing major here, just resolutions for some reported problems:
         - iio bugfixes for a number of different drivers
         - greybus loopback_test fixes
         - wfx driver fixes
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: rtl8188eu: Add device id for MERCUSYS MW150US v2
        staging: greybus: loopback_test: fix potential path truncations
        staging: greybus: loopback_test: fix potential path truncation
        staging: greybus: loopback_test: fix poll-mask build breakage
        staging: wfx: fix RCU usage between hif_join() and ieee80211_bss_get_ie()
        staging: wfx: fix RCU usage in wfx_join_finalize()
        staging: wfx: make warning about pending frame less scary
        staging: wfx: fix lines ending with a comma instead of a semicolon
        staging: wfx: fix warning about freeing in-use mutex during device unregister
        staging/speakup: fix get_word non-space look-ahead
        iio: ping: set pa_laser_ping_cfg in of_ping_match
        iio: chemical: sps30: fix missing triggered buffer dependency
        iio: st_sensors: remap SMO8840 to LIS2DH12
        iio: light: vcnl4000: update sampling periods for vcnl4040
        iio: light: vcnl4000: update sampling periods for vcnl4200
        iio: accel: adxl372: Set iio_chan BE
        iio: magnetometer: ak8974: Fix negative raw values in sysfs
        iio: trigger: stm32-timer: disable master mode when stopping
        iio: adc: stm32-dfsdm: fix sleep in atomic context
        iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode
      3bd14829
    • Linus Torvalds's avatar
      Merge tag 'usb-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · b07c2e76
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for 5.6-rc7. And there's a thunderbolt
        driver fix thrown in for good measure as well.
      
        These fixes are:
         - new device ids for usb-serial drivers
         - thunderbolt error code fix
         - xhci driver fixes
         - typec fixes
         - cdc-acm driver fixes
         - chipidea driver fix
         - more USB quirks added for devices that need them.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        USB: cdc-acm: fix rounding error in TIOCSSERIAL
        USB: cdc-acm: fix close_delay and closing_wait units in TIOCSSERIAL
        usb: quirks: add NO_LPM quirk for RTL8153 based ethernet adapters
        usb: chipidea: udc: fix sleeping function called from invalid context
        USB: serial: pl2303: add device-id for HP LD381
        USB: serial: option: add ME910G1 ECM composition 0x110b
        usb: host: xhci-plat: add a shutdown
        usb: typec: ucsi: displayport: Fix a potential race during registration
        usb: typec: ucsi: displayport: Fix NULL pointer dereference
        USB: Disable LPM on WD19's Realtek Hub
        usb: xhci: apply XHCI_SUSPEND_DELAY to AMD XHCI controller 1022:145c
        xhci: Do not open code __print_symbolic() in xhci trace events
        thunderbolt: Fix error code in tb_port_is_width_supported()
      b07c2e76
    • Linus Torvalds's avatar
      Merge tag 'tty-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · fa91418b
      Linus Torvalds authored
      Pull tty fixes from Greg KH:
       "Here are three small tty_io bugfixes for reported issues that Eric has
        resolved for 5.6-rc7
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'tty-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: fix compat TIOCGSERIAL checking wrong function ptr
        tty: fix compat TIOCGSERIAL leaking uninitialized memory
        tty: drop outdated comments about release_tty() locking
      fa91418b
    • Linus Torvalds's avatar
      Merge tag 'sound-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 12bf19c9
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A few fixes covering the issues reported by syzkaller, a couple of
        fixes for the MIDI decoding bug, and a few usual HD-audio quirks.
      
        Some of them are about ALSA core stuff, but they are small fixes just
        for corner cases, and nothing thrilling"
      
      * tag 'sound-5.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek - Enable the headset of Acer N50-600 with ALC662
        ALSA: hda/realtek - Enable headset mic of Acer X2660G with ALC662
        ALSA: seq: oss: Fix running status after receiving sysex
        ALSA: seq: virmidi: Fix running status after receiving sysex
        ALSA: pcm: oss: Remove WARNING from snd_pcm_plug_alloc() checks
        ALSA: hda/realtek: Fix pop noise on ALC225
        ALSA: line6: Fix endless MIDI read loop
        ALSA: pcm: oss: Avoid plugin buffer overflow
      12bf19c9
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-03-20' of git://anongit.freedesktop.org/drm/drm · 69d3e5a5
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Hope you are well hiding out above the garage. A few amdgpu changes
        but nothing too major. I've had a wisdom tooth out this week so
        haven't been to on top of things, but all seems good.
      
        core:
         - fix lease warning
      
        i915:
         - Track active elements during dequeue
         - Fix failure to handle all MCR ranges
         - Revert unnecessary workaround
      
        amdgpu:
         - Pageflip fix
         - VCN clockgating fixes
         - GPR debugfs fix for umr
         - GPU reset fix
         - eDP fix for MBP
         - DCN2.x fix
      
        dw-hdmi:
         - fix AVI frame colorimetry
      
        komeda:
         - fix compiler warning
      
        bochs:
         - downgrade a binding failure to a warning"
      
      * tag 'drm-fixes-2020-03-20' of git://anongit.freedesktop.org/drm/drm:
        drm/amd/display: Fix pageflip event race condition for DCN.
        drm/amdgpu: fix typo for vcn2.5/jpeg2.5 idle check
        drm/amdgpu: fix typo for vcn2/jpeg2 idle check
        drm/amdgpu: fix typo for vcn1 idle check
        drm/lease: fix WARNING in idr_destroy
        drm/i915: Handle all MCR ranges
        Revert "drm/i915/tgl: Add extra hdc flush workaround"
        drm/i915/execlists: Track active elements during dequeue
        drm/bochs: downgrade pci_request_region failure from error to warning
        drm/amd/display: Add link_rate quirk for Apple 15" MBP 2017
        drm/amdgpu: add fbdev suspend/resume on gpu reset
        drm/amd/amdgpu: Fix GPR read from debugfs (v2)
        drm/amd/display: fix typos for dcn20_funcs and dcn21_funcs struct
        drm/komeda: mark PM functions as __maybe_unused
        drm/bridge: dw-hdmi: fix AVI frame colorimetry
      69d3e5a5
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2020-03-19' of... · 5366b96b
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2020-03-19' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      drm/i915 fixes for v5.6-rc7:
      - Track active elements during dequeue
      - Fix failure to handle all MCR ranges
      - Revert unnecessary workaround
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/877dzgepvu.fsf@intel.com
      5366b96b
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.6-2020-03-19' of... · 362b86a3
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-5.6-2020-03-19' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.6-2020-03-19:
      
      amdgpu:
      - Pageflip fix
      - VCN clockgating fixes
      - GPR debugfs fix for umr
      - GPU reset fix
      - eDP fix for MBP
      - DCN2.x fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200319204054.1036478-1-alexander.deucher@amd.com
      362b86a3