1. 15 Jul, 2019 32 commits
  2. 14 Jul, 2019 8 commits
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.3-1' of git://git.infradead.org/linux-platform-drivers-x86 · 55167453
      Linus Torvalds authored
      Pull x86 platform driver updates from Andy Shevchenko:
       "Gathered a bunch of x86 platform driver changes. It's rather big,
        since includes two big refactors and completely new driver:
      
         - ASUS WMI driver got a big refactoring in order to support the TUF
           Gaming laptops. Besides that, the regression with backlight being
           permanently off on various EeePC laptops has been fixed.
      
         - Accelerometer on HP ProBook 450 G0 shows wrong measurements due to
           X axis being inverted. This has been fixed.
      
         - Intel PMC core driver has been extended to be ACPI enumerated if
           the DSDT provides device with _HID "INT33A1". This allows to
           convert the driver to be pure platform and support new hardware
           purely based on ACPI DSDT.
      
         - From now on the Intel Speed Select Technology is supported thru a
           corresponding driver. This driver provides an access to the
           features of the ISST, such as Performance Profile, Core Power, Base
           frequency and Turbo Frequency.
      
         - Mellanox platform drivers has been refactored and now extended to
           support more systems, including new coming ones.
      
         - The OLPC XO-1.75 platform is now supported.
      
         - CB4063 Beckhoff Automation board is using PMC clocks, provided via
           pmc_atom driver, for ethernet controllers in a way that they can't
           be managed by the clock driver. The quirk has been extended to
           cover this case.
      
         - Touchscreen on Chuwi Hi10 Plus tablet has been enabled. Meanwhile
           the information of Chuwi Hi10 Air has been fixed to cover more
           models based on the same platform.
      
         - Xiaomi notebooks have WMI interface enabled. Thus, the driver to
           support it has been provided. It required some extension of the
           generic WMI library, which allows to propagate opaque context to
           the ->probe() of the individual drivers.
      
        This release includes debugfs clean up from Greg KH for several
        drivers that drop return code check and make debugfs absence or
        failure non-fatal.
      
        Also miscellaneous fixes here and there, mostly for Acer WMI and
        various Intel drivers"
      
      * tag 'platform-drivers-x86-v5.3-1' of git://git.infradead.org/linux-platform-drivers-x86: (74 commits)
        platform/x86: Fix PCENGINES_APU2 Kconfig warning
        tools/power/x86/intel-speed-select: Add .gitignore file
        platform/x86: mlx-platform: Fix error handling in mlxplat_init()
        platform/x86: intel_pmc_core: Attach using APCI HID "INT33A1"
        platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds
        platform/x86: asus-wmi: Use dev_get_drvdata()
        Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces
        platform/x86: mlx-platform: Add more reset cause attributes
        platform/x86: mlx-platform: Modify DMI matching order
        platform/x86: mlx-platform: Add regmap structure for the next generation systems
        platform/x86: mlx-platform: Change API for i2c-mlxcpld driver activation
        platform/x86: mlx-platform: Move regmap initialization before all drivers activation
        MAINTAINERS: Update for Intel Speed Select Technology
        tools/power/x86: A tool to validate Intel Speed Select commands
        platform/x86: ISST: Restore state on resume
        platform/x86: ISST: Add Intel Speed Select PUNIT MSR interface
        platform/x86: ISST: Add Intel Speed Select mailbox interface via MSRs
        platform/x86: ISST: Add Intel Speed Select mailbox interface via PCI
        platform/x86: ISST: Add Intel Speed Select mmio interface
        platform/x86: ISST: Add IOCTL to Translate Linux logical CPU to PUNIT CPU number
        ...
      55167453
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v5.3' of git://git.linaro.org/landing-teams/working/fujitsu/integration · fde7dc63
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
      
       - stm32: race fix by adding a spinlock
      
       - mhu: trim included headers
      
       - omap: add support for K3 SoCs
      
       - imx: Irq disable fix
      
       - bcm: tidy up extracting driver data
      
       - tegra: make resume 'noirq'
      
       - api: fix error handling
      
      * tag 'mailbox-v5.3' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
        mailbox: handle failed named mailbox channel request
        mailbox: tegra: avoid resume NULL mailboxes
        mailbox: tegra: hsp: add noirq resume
        mailbox: bcm-flexrm-mailbox: using dev_get_drvdata directly
        mailbox: imx: Clear GIEn bit at shutdown
        mailbox: omap: Add support for TI K3 SoCs
        dt-bindings: mailbox: omap: Update bindings for TI K3 SoCs
        mailbox: arm_mhu: reorder header inclusion and drop unneeded ones
        mailbox: stm32_ipcc: add spinlock to fix channels concurrent access
      fde7dc63
    • Linus Torvalds's avatar
      Merge branch 'for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu · a1240cf7
      Linus Torvalds authored
      Pull percpu updates from Dennis Zhou:
       "This includes changes to let percpu_ref release the backing percpu
        memory earlier after it has been switched to atomic in cases where the
        percpu ref is not revived.
      
        This will help recycle percpu memory earlier in cases where the
        refcounts are pinned for prolonged periods of time"
      
      * 'for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
        percpu_ref: release percpu memory early without PERCPU_REF_ALLOW_REINIT
        md: initialize percpu refcounters using PERCU_REF_ALLOW_REINIT
        io_uring: initialize percpu refcounters using PERCU_REF_ALLOW_REINIT
        percpu_ref: introduce PERCPU_REF_ALLOW_REINIT flag
      a1240cf7
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1d039859
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "A number of PMU driver corner case fixes, a race fix, an event
        grouping fix, plus a bunch of tooling fixes/updates"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (30 commits)
        perf/x86/intel: Fix spurious NMI on fixed counter
        perf/core: Fix exclusive events' grouping
        perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs
        perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs
        perf/core: Fix race between close() and fork()
        perf intel-pt: Fix potential NULL pointer dereference found by the smatch tool
        perf intel-bts: Fix potential NULL pointer dereference found by the smatch tool
        perf script: Assume native_arch for pipe mode
        perf scripts python: export-to-sqlite.py: Fix DROP VIEW power_events_view
        perf scripts python: export-to-postgresql.py: Fix DROP VIEW power_events_view
        perf hists browser: Fix potential NULL pointer dereference found by the smatch tool
        perf cs-etm: Fix potential NULL pointer dereference found by the smatch tool
        perf parse-events: Remove unused variable: error
        perf parse-events: Remove unused variable 'i'
        perf metricgroup: Add missing list_del_init() when flushing egroups list
        perf tools: Use list_del_init() more thorougly
        perf tools: Use zfree() where applicable
        tools lib: Adopt zalloc()/zfree() from tools/perf
        perf tools: Move get_current_dir_name() cond prototype out of util.h
        perf namespaces: Move the conditional setns() prototype to namespaces.h
        ...
      1d039859
    • Linus Torvalds's avatar
      Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0c85ce13
      Linus Torvalds authored
      Pull locking fix from Ingo Molnar:
       "A single fix for a locking statistics bug"
      
      * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Fix lock used or unused stats error
      0c85ce13
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 577d9460
      Linus Torvalds authored
      Pull x86 fix from Ingo Molnar:
       "A single build system bugfix"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/vdso: Fix flip/flop vdso build bug
      577d9460
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 50ec1881
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Fix a sched statistics related bug that would trigger a kernel warning
        on certain configs"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Fix preempt warning in ttwu
      50ec1881
    • Kirill Smelkov's avatar
      *: convert stream-like files -> stream_open, even if they use noop_llseek · 3975b097
      Kirill Smelkov authored
      This patch continues 10dce8af (fs: stream_open - opener for
      stream-like files so that read and write can run simultaneously without
      deadlock) and c5bf68fe (*: convert stream-like files from
      nonseekable_open -> stream_open) and teaches steam_open.cocci to
      consider files as being stream-like not only if they have
      .llseek=no_llseek, but also if they have .llseek=noop_llseek.
      
      This is safe to do: the comment about noop_llseek says
      
      	This is an implementation of ->llseek useable for the rare special case when
      	userspace expects the seek to succeed but the (device) file is actually not
      	able to perform the seek. In this case you use noop_llseek() instead of
      	falling back to the default implementation of ->llseek.
      
      and in general noop_llseek was massively added to drivers in 6038f373
      (llseek: automatically add .llseek fop) when changing default for NULL .llseek
      from NOP to no_llseek with the idea to avoid breaking compatibility, if
      maybe some user-space program was using lseek on a device without caring
      about the result, but caring if it was an error or not.
      
      Amended semantic patch produces two changes when applied tree-wide:
      
              drivers/hid/hid-sensor-custom.c:690:8-24: WARNING: hid_sensor_custom_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.
              drivers/input/mousedev.c:564:1-17: ERROR: mousedev_fops: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix.
      
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jan Blunck <jblunck@suse.de>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: Kirill Smelkov's avatarKirill Smelkov <kirr@nexedi.com>
      3975b097