1. 21 Dec, 2019 11 commits
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-fix-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 4746104a
      Linus Torvalds authored
      Pull libnvdimm fix from Dan Williams:
       "A minor regression fix.
      
        The libnvdimm unit tests were expecting to mock calls to
        ioremap_nocache() which disappeared in v5.5-rc1. This fix has appeared
        in -next and collided with some cleanups that Christoph has planned
        for v5.6, but he will fix up his branch once this goes in.
      
        Summary:
      
         - Restore the operation of the libnvdimm unit tests after the removal
           of ioremap_nocache()"
      
      * tag 'libnvdimm-fix-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        tools/testing/nvdimm: Fix mock support for ioremap
      4746104a
    • Linus Torvalds's avatar
      Merge tag 's390-5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 60b04df6
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
      
       - Fix unwinding from irq context of interrupted user process.
      
       - Add purgatory build missing symbols check. That helped to uncover and
         fix missing symbols when built with kasan support enabled.
      
       - Couple of ftrace fixes. Avoid broken stack trace and fix recursion
         loop in function_graph tracer.
      
      * tag 's390-5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/ftrace: save traced function caller
        s390/unwind: stop gracefully at user mode pt_regs in irq stack
        s390/purgatory: do not build purgatory with kcov, kasan and friends
        s390/purgatory: Make sure we fail the build if purgatory has missing symbols
        s390/ftrace: fix endless recursion in function_graph tracer
      60b04df6
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · fd7a6d2b
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Misc fixes: a (rare) PSI crash fix, a CPU affinity related balancing
        fix, and a toning down of active migration attempts"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/cfs: fix spurious active migration
        sched/fair: Fix find_idlest_group() to handle CPU affinity
        psi: Fix a division error in psi poll()
        sched/psi: Fix sampling error and rare div0 crashes with cgroups and high uptime
      fd7a6d2b
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c4ff10ef
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Misc fixes: a BTS fix, a PT NMI handling fix, a PMU sysfs fix and an
        SRCU annotation"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Add SRCU annotation for pmus list walk
        perf/x86/intel: Fix PT PMI handling
        perf/x86/intel/bts: Fix the use of page_private()
        perf/x86: Fix potential out-of-bounds access
      c4ff10ef
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.5' of... · 6c1c79a5
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - fix warning in out-of-tree 'make clean'
      
       - add READELF variable to the top Makefile
      
       - fix broken builds when LINUX_COMPILE_BY contains a backslash
      
       - fix build warning in kallsyms
      
       - fix NULL pointer access in expr_eq() in Kconfig
      
       - fix missing dependency on rsync in deb-pkg build
      
       - remove ---help--- from documentation
      
       - fix misleading documentation about directory descending
      
      * tag 'kbuild-fixes-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: clarify the difference between obj-y and obj-m w.r.t. descending
        kconfig: remove ---help--- from documentation
        scripts: package: mkdebian: add missing rsync dependency
        kconfig: don't crash on NULL expressions in expr_eq()
        scripts/kallsyms: fix offset overflow of kallsyms_relative_base
        mkcompile_h: use printf for LINUX_COMPILE_BY
        mkcompile_h: git rid of UTS_TRUNCATE from LINUX_COMPILE_{BY,HOST}
        x86/boot: kbuild: allow readelf executable to be specified
        kbuild: fix 'No such file or directory' warning when cleaning
      6c1c79a5
    • Masahiro Yamada's avatar
      kbuild: clarify the difference between obj-y and obj-m w.r.t. descending · 28f94a44
      Masahiro Yamada authored
      Kbuild descends into a directory by either 'y' or 'm', but there is an
      important difference.
      
      Kbuild combines the built-in objects into built-in.a in each directory.
      The built-in.a in the directory visited by obj-y is merged into the
      built-in.a in the parent directory. This merge happens recursively
      when Kbuild is ascending back towards the top directory, then built-in
      objects are linked into vmlinux eventually. This works properly only
      when the Makefile specifying obj-y is reachable by the chain of obj-y.
      
      On the other hand, Kbuild does not take built-in.a from the directory
      visited by obj-m. This it, all the objects in that directory are
      supposed to be modular. If Kbuild descends into a directory by obj-m,
      but the Makefile in the sub-directory specifies obj-y, those objects
      are just left orphan.
      
      The current statement "Kbuild only uses this information to decide that
      it needs to visit the directory" is misleading. Clarify the difference.
      Reported-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
      28f94a44
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 62104694
      Linus Torvalds authored
      Pul parisc fixes from Helge Deller:
       "Two build error fixes, one for the soft_offline_page() parameter
        change and one for a specific KEXEC/KEXEC_FILE configuration, as well
        as a compiler and a linker warning fix"
      
      * 'parisc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Fix compiler warnings in debug_core.c
        parisc: soft_offline_page() now takes the pfn
        parisc: add missing __init annotation
        parisc: fix compilation when KEXEC=n and KEXEC_FILE=y
      62104694
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.5b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 62af608b
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "This contains two cleanup patches and a small series for supporting
        reloading the Xen block backend driver"
      
      * tag 'for-linus-5.5b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/grant-table: remove multiple BUG_ON on gnttab_interface
        xen-blkback: support dynamic unbind/bind
        xen/interface: re-define FRONT/BACK_RING_ATTACH()
        xenbus: limit when state is forced to closed
        xenbus: move xenbus_dev_shutdown() into frontend code...
        xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk
      62af608b
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 6d04182d
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Two weeks worth of accumulated fixes:
      
         - A fix for a performance regression seen on PowerVM LPARs using
           dedicated CPUs, caused by our vcpu_is_preempted() returning true
           even for idle CPUs.
      
         - One of the ultravisor support patches broke KVM on big endian hosts
           in v5.4.
      
         - Our KUAP (Kernel User Access Prevention) code missed allowing
           access in __clear_user(), which could lead to an oops or erroneous
           SEGV when triggered via PTRACE_GETREGSET.
      
         - Two fixes for the ocxl driver, an open/remove race, and a memory
           leak in an error path.
      
         - A handful of other small fixes.
      
        Thanks to: Andrew Donnellan, Christian Zigotzky, Christophe Leroy,
        Christoph Hellwig, Daniel Axtens, David Hildenbrand, Frederic Barrat,
        Gautham R. Shenoy, Greg Kurz, Ihor Pasichnyk, Juri Lelli, Marcus
        Comstedt, Mike Rapoport, Parth Shah, Srikar Dronamraju, Vaidyanathan
        Srinivasan"
      
      * tag 'powerpc-5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        KVM: PPC: Book3S HV: Fix regression on big endian hosts
        powerpc: Fix __clear_user() with KUAP enabled
        powerpc/pseries/cmm: fix managed page counts when migrating pages between zones
        powerpc/8xx: fix bogus __init on mmu_mapin_ram_chunk()
        ocxl: Fix potential memory leak on context creation
        powerpc/irq: fix stack overflow verification
        powerpc: Ensure that swiotlb buffer is allocated from low memory
        powerpc/shared: Use static key to detect shared processor
        powerpc/vcpu: Assume dedicated processors as non-preempt
        ocxl: Fix concurrent AFU open and device removal
      6d04182d
    • Linus Torvalds's avatar
      Merge branch 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5c741e25
      Linus Torvalds authored
      Pull x86 RAS fixes from Borislav Petkov:
       "Three urgent RAS fixes for the AMD side of things:
      
         - initialize struct mce.bank so that calculated error severity on AMD
           SMCA machines is correct
      
         - do not send IPIs early during bank initialization, when interrupts
           are disabled
      
         - a fix for when only a subset of MCA banks are enabled, which led to
           boot hangs on some new AMD CPUs"
      
      * 'ras-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mce: Fix possibly incorrect severity calculation on AMD
        x86/MCE/AMD: Allow Reserved types to be overwritten in smca_banks[]
        x86/MCE/AMD: Do not use rdmsr_safe_on_cpu() in smca_configure()
      5c741e25
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 12ac9a08
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "One core framework fix to walk the orphan list and match up clks to
        parents when clk providers register the DT provider after registering
        all their clks (as they should).
      
        Then a handful of driver fixes for the qcom, imx, and at91 drivers.
      
        The driver fixes are relatively small fixes for incorrect register
        settings or missing locks causing race conditions"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: qcom: Avoid SMMU/cx gdsc corner cases
        clk: qcom: gcc-sc7180: Fix setting flag for votable GDSCs
        clk: Move clk_core_reparent_orphans() under CONFIG_OF
        clk: at91: fix possible deadlock
        clk: walk orphan list on clock provider registration
        clk: imx: pll14xx: fix clk_pll14xx_wait_lock
        clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table
        clk: imx: clk-composite-8m: add lock to gate/mux
      12ac9a08
  2. 20 Dec, 2019 29 commits
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · f1fd1610
      Linus Torvalds authored
      Pull Devicetree fix from Rob Herring:
       "Add missing 'properties' keyword enclosing 'snps,tso' in snps,dwmac
        binding"
      
      * tag 'devicetree-fixes-for-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: Add missing 'properties' keyword enclosing 'snps,tso'
      f1fd1610
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 3939f2c8
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Leftover put_cpu() in the perf/smmuv3 error path.
      
       - Add Hisilicon TSV110 to spectre-v2 safe list
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list
        perf/smmuv3: Remove the leftover put_cpu() in error path
      3939f2c8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-12-21' of git://anongit.freedesktop.org/drm/drm · a7c88728
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Probably the last one before Christmas, I'll see if there is much
        demand over next few weeks for more fixes, I expect it'll be quiet
        enough.
      
        This has one exynos fix, and a bunch of i915 core and i915 GVT fixes.
      
        Summary:
      
        exynos:
         - component delete fix
      
        i915:
         - Fix to drop an unused and harmful display W/A
         - Fix to define EHL power wells independent of ICL
         - Fix for priority inversion on bonded requests
         - Fix in mmio offset calculation of DSB instance
         - Fix memory leak from get_task_pid when banning clients
         - Fixes to avoid dereference of uninitialized ops in dma_fence
           tracing and keep reference to execbuf object until submitted.
         - vGPU state setting locking fix (Zhenyu)
         - Fix vGPU display dmabuf as read-only (Zhenyu)
         - Properly handle vGPU display dmabuf page pin when rendering (Tina)
         - Fix one guest boot warning to handle guc reset state (Fred)"
      
      * tag 'drm-fixes-2019-12-21' of git://anongit.freedesktop.org/drm/drm:
        drm/exynos: gsc: add missed component_del
        drm/i915: Fix pid leak with banned clients
        drm/i915/gem: Keep request alive while attaching fences
        drm/i915: Fix WARN_ON condition for cursor plane ddb allocation
        drm/i915/gvt: Fix guest boot warning
        drm/i915/tgl: Drop Wa#1178
        drm/i915/ehl: Define EHL powerwells independently of ICL
        drm/i915: Set fence_work.ops before dma_fence_init
        drm/i915: Copy across scheduler behaviour flags across submit fences
        drm/i915/dsb: Fix in mmio offset calculation of DSB instance
        drm/i915/gvt: Pin vgpu dma address before using
        drm/i915/gvt: set guest display buffer as readonly
        drm/i915/gvt: use vgpu lock for active state setting
      a7c88728
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.5-20191220' of git://git.kernel.dk/linux-block · f8f04d08
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Here's a set of fixes that should go into 5.5-rc3 for io_uring.
      
        This is bigger than I'd like it to be, mainly because we're fixing the
        case where an application reuses sqe data right after issue. This
        really must work, or it's confusing. With 5.5 we're flagging us as
        submit stable for the actual data, this must also be the case for
        SQEs.
      
        Honestly, I'd really like to add another series on top of this, since
        it cleans it up considerable and prevents any SQE reuse by design. I
        posted that here:
      
          https://lore.kernel.org/io-uring/20191220174742.7449-1-axboe@kernel.dk/T/#u
      
        and may still send it your way early next week once it's been looked
        at and had some more soak time (does pass all regression tests). With
        that series, we've unified the prep+issue handling, and only the prep
        phase even has access to the SQE.
      
        Anyway, outside of that, fixes in here for a few other issues that
        have been hit in testing or production"
      
      * tag 'io_uring-5.5-20191220' of git://git.kernel.dk/linux-block:
        io_uring: io_wq_submit_work() should not touch req->rw
        io_uring: don't wait when under-submitting
        io_uring: warn about unhandled opcode
        io_uring: read opcode and user_data from SQE exactly once
        io_uring: make IORING_OP_TIMEOUT_REMOVE deferrable
        io_uring: make IORING_OP_CANCEL_ASYNC deferrable
        io_uring: make IORING_POLL_ADD and IORING_POLL_REMOVE deferrable
        io_uring: make HARDLINK imply LINK
        io_uring: any deferred command must have stable sqe data
        io_uring: remove 'sqe' parameter to the OP helpers that take it
        io_uring: fix pre-prepped issue with force_nonblock == true
        io-wq: re-add io_wq_current_is_worker()
        io_uring: fix sporadic -EFAULT from IORING_OP_RECVMSG
        io_uring: fix stale comment and a few typos
      f8f04d08
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2019-12-19' of... · 0c517e6c
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2019-12-19' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix to drop an unused and harmful display W/A
      - Fix to define EHL power wells independent of ICL
      - Fix for priority inversion on bonded requests
      - Fix in mmio offset calculation of DSB instance
      - Fix memory leak from get_task_pid when banning clients
      - Fixes to avoid dereference of uninitialized ops in dma_fence tracing
        and keep reference to execbuf object until submitted.
      
      - Includes gvt-fixes-2019-12-18
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191219124635.GA16068@jlahtine-desk.ger.corp.intel.com
      0c517e6c
    • Dave Airlie's avatar
      Merge tag 'exynos-drm-fixes-for-v5.5-rc3' of... · 39b7f58f
      Dave Airlie authored
      Merge tag 'exynos-drm-fixes-for-v5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes
      
      Just one bug fixup
      . Make sure to unregister a component for Exynos gscaler driver
        when the driver is removed.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Inki Dae <inki.dae@samsung.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1576714013-3788-1-git-send-email-inki.dae@samsung.com
      39b7f58f
    • Helge Deller's avatar
      parisc: Fix compiler warnings in debug_core.c · 75cf9797
      Helge Deller authored
      Fix this compiler warning:
      kernel/debug/debug_core.c: In function ‘kgdb_cpu_enter’:
      arch/parisc/include/asm/cmpxchg.h:48:3: warning: value computed is not used [-Wunused-value]
         48 |  ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
      arch/parisc/include/asm/atomic.h:78:30: note: in expansion of macro ‘xchg’
         78 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
            |                              ^~~~
      kernel/debug/debug_core.c:596:4: note: in expansion of macro ‘atomic_xchg’
        596 |    atomic_xchg(&kgdb_active, cpu);
            |    ^~~~~~~~~~~
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      75cf9797
    • Helge Deller's avatar
      parisc: soft_offline_page() now takes the pfn · 36257d55
      Helge Deller authored
      Switch page deallocation table (pdt) driver to use pfn instead of a page
      pointer in soft_offline_page().
      
      Fixes: feec24a6 ("mm, soft-offline: convert parameter to pfn")
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      36257d55
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · b371ddb9
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Fix kmemleak warning in IOVA code
      
       - Fix compile warnings on ARM32/64 in dma-iommu code due to dma_mask
         type mismatches
      
       - Make ISA reserved regions relaxable, so that VFIO can assign devices
         which have such regions defined
      
       - Fix mapping errors resulting in IO page-faults in the VT-d driver
      
       - Make sure direct mappings for a domain are created after the default
         domain is updated
      
       - Map ISA reserved regions in the VT-d driver with correct permissions
      
       - Remove unneeded check for PSI capability in the IOTLB flush code of
         the VT-d driver
      
       - Lockdep fix iommu_dma_prepare_msi()
      
      * tag 'iommu-fixes-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/dma: Relax locking in iommu_dma_prepare_msi()
        iommu/vt-d: Remove incorrect PSI capability check
        iommu/vt-d: Allocate reserved region for ISA with correct permission
        iommu: set group default domain before creating direct mappings
        iommu/vt-d: Fix dmar pte read access not set error
        iommu/vt-d: Set ISA bridge reserved region as relaxable
        iommu/dma: Rationalise types for DMA masks
        iommu/iova: Init the struct iova to fix the possible memleak
      b371ddb9
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.5-2' of git://git.infradead.org/linux-platform-drivers-x86 · fce34dec
      Linus Torvalds authored
      Pull x86 platform driver fixes from Andy Shevchenko:
       "Bucket of fixes for PDx86. Note, that there is no ABI breakage in
        Mellanox driver because it has been introduced in v5.5-rc1, so we can
        change it.
      
        Summary:
      
         - Add support of APUv4 and fix an assignment of simswap GPIO
      
         - Add Siemens CONNECT X300 to DMI table to avoid stuck during boot
      
         - Correct arguments of WMI call on HP Envy x360 15-cp0xxx model
      
         - Fix the mlx-bootctl sysfs attributes to be device related"
      
      * tag 'platform-drivers-x86-v5.5-2' of git://git.infradead.org/linux-platform-drivers-x86:
        platform/x86: pcengines-apuv2: Spelling fixes in the driver
        platform/x86: pcengines-apuv2: detect apuv4 board
        platform/x86: pcengines-apuv2: fix simswap GPIO assignment
        platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table
        platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes
        platform/mellanox: fix the mlx-bootctl sysfs
      fce34dec
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · d2944d53
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - mtk-sd: Fix tuning for MT8173 HS200/HS400 mode
      
       - sdhci: Revert a fix for incorrect switch to HS mode
      
       - sdhci-msm: Fixup accesses to the DDR_CONFIG register
      
       - sdhci-of-esdhc: Revert a bad fix for erratum A-009204
      
       - sdhci-of-esdhc: Re-implement fix for erratum A-009204
      
       - sdhci-of-esdhc: Fixup P2020 errata handling
      
       - sdhci-pci: Disable broken CMDQ on Intel GLK based Lenovo systems
      
      * tag 'mmc-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
        mmc: sdhci: Add a quirk for broken command queuing
        mmc: sdhci: Workaround broken command queuing on Intel GLK
        mmc: sdhci-of-esdhc: fix P2020 errata handling
        mmc: sdhci: Update the tuning failed messages to pr_debug level
        mmc: sdhci-of-esdhc: Revert "mmc: sdhci-of-esdhc: add erratum A-009204 support"
        mmc: mediatek: fix CMD_TA to 2 for MT8173 HS200/HS400 mode
        mmc: sdhci-msm: Correct the offset and value for DDR_CONFIG register
        Revert "mmc: sdhci: Fix incorrect switch to HS mode"
      d2944d53
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 6398b9fc
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char and other driver fixes for 5.5-rc3.
      
        The most noticable one is a much-reported fix for a random driver
        issue that came up from 5.5-rc1 compat_ioctl cleanups. The others are
        a chunk of habanalab driver fixes and intel_th driver fixes and new
        device ids.
      
        All have been in linux-next with no reported issues"
      
      * tag 'char-misc-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        random: don't forget compat_ioctl on urandom
        intel_th: msu: Fix window switching without windows
        intel_th: Fix freeing IRQs
        intel_th: pci: Add Elkhart Lake SOC support
        intel_th: pci: Add Comet Lake PCH-V support
        habanalabs: remove variable 'val' set but not used
        habanalabs: rate limit error msg on waiting for CS
      6398b9fc
    • Linus Torvalds's avatar
      Merge tag 'staging-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 107aff96
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes for a number of reported
        issues.
      
        The majority here are some fixes for the wfx driver, but also in here
        is a comedi driver fix found during some code review, and an axis-fifo
        build dependancy issue to resolve some reported testing problems.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: wfx: fix wrong error message
        staging: wfx: fix hif_set_mfp() with big endian hosts
        staging: wfx: detect race condition in WEP authentication
        staging: wfx: ensure that retry policy always fallbacks to MCS0 / 1Mbps
        staging: wfx: fix rate control handling
        staging: wfx: firmware does not support more than 32 total retries
        staging: wfx: use boolean appropriately
        staging: wfx: fix counter overflow
        staging: wfx: fix case of lack of tx_retry_policies
        staging: wfx: fix the cache of rate policies on interface reset
        staging: axis-fifo: add unspecified HAS_IOMEM dependency
        staging: comedi: gsc_hpdi: check dma_alloc_coherent() return value
      107aff96
    • Wei Li's avatar
      arm64: cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list · aa638cfe
      Wei Li authored
      HiSilicon Taishan v110 CPUs didn't implement CSV2 field of the
      ID_AA64PFR0_EL1, but spectre-v2 is mitigated by hardware, so
      whitelist the MIDR in the safe list.
      Signed-off-by: default avatarWei Li <liwei391@huawei.com>
      [hanjun: re-write the commit log]
      Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      aa638cfe
    • Linus Torvalds's avatar
      Merge tag 'tty-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 1a4ee867
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are some small tty and serial driver fixes for 5.5-rc3.
      
        Only four small patches here:
      
         - atmel serial driver fix
      
         - msm_serial driver fix
      
         - sprd serial driver fix
      
         - tty core port fix
      
        The last tty core fix should resolve a long-standing bug with a race
        at port creation time that some people would see, and Sudip finally
        tracked down.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'tty-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty/serial: atmel: fix out of range clock divider handling
        tty: link tty and port before configuring it as console
        serial: sprd: Add clearing break interrupt operation
        tty: serial: msm_serial: Fix lockup for sysrq and oops
      1a4ee867
    • Linus Torvalds's avatar
      Merge tag 'usb-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 7181aba1
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for some reported issues.
      
        Included in here are:
      
         - xhci build warning fix
      
         - ehci disconnect warning fix
      
         - usbip lockup fix and error cleanup fix
      
         - typec build fix
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: xhci: Fix build warning seen with CONFIG_PM=n
        usbip: Fix error path of vhci_recv_ret_submit()
        usbip: Fix receive error in vhci-hcd when using scatter-gather
        USB: EHCI: Do not return -EPIPE when hub is disconnected
        usb: typec: fusb302: Fix an undefined reference to 'extcon_get_state'
      7181aba1
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 7190a23a
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Sorry that this fixes pull request took a while. Too much christmas
        business going on.
      
        This contains a few really important Intel fixes and some odd fixes:
      
         - A host of fixes for the Intel baytrail and cherryview: properly
           serialize all register accesses and add the irqchip with the
           gpiochip as we need to, fix some pin lists and initialize the
           hardware in the right order.
      
         - Fix the Aspeed G6 LPC configuration.
      
         - Handle a possible NULL pointer exception in the core.
      
         - Fix the Kconfig dependencies for the Equilibrium driver"
      
      * tag 'pinctrl-v5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: ingenic: Fixup PIN_CONFIG_OUTPUT config
        pinctrl: Modify Kconfig to fix linker error
        pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio
        pinctrl: aspeed-g6: Fix LPC/eSPI mux configuration
        pinctrl: cherryview: Pass irqchip when adding gpiochip
        pinctrl: cherryview: Add GPIO <-> pin mapping ranges via callback
        pinctrl: cherryview: Split out irq hw-init into a separate helper function
        pinctrl: baytrail: Pass irqchip when adding gpiochip
        pinctrl: baytrail: Add GPIO <-> pin mapping ranges via callback
        pinctrl: baytrail: Update North Community pin list
        pinctrl: baytrail: Really serialize all register accesses
      7190a23a
    • Andy Shevchenko's avatar
      platform/x86: pcengines-apuv2: Spelling fixes in the driver · 02abbda1
      Andy Shevchenko authored
      Mainly does:
       - capitalize gpio and bios to GPIO and BIOS
       - capitalize beginning of comments
       - add periods in multi-line comments
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      02abbda1
    • Enrico Weigelt, metux IT consult's avatar
      platform/x86: pcengines-apuv2: detect apuv4 board · 3d00da1d
      Enrico Weigelt, metux IT consult authored
      GPIO stuff on APUv4 seems to be the same as on APUv2, so we just
      need to match on DMI data.
      Signed-off-by: default avatarEnrico Weigelt, metux IT consult <info@metux.net>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      3d00da1d
    • Enrico Weigelt, metux IT consult's avatar
      platform/x86: pcengines-apuv2: fix simswap GPIO assignment · d4ac8f83
      Enrico Weigelt, metux IT consult authored
      The mapping entry has to hold the GPIO line index instead of
      controller's register number.
      
      Fixes: 5037d4dd ("platform/x86: pcengines-apuv2: wire up simswitch gpio as led")
      Signed-off-by: default avatarEnrico Weigelt, metux IT consult <info@metux.net>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      d4ac8f83
    • Michael Haener's avatar
      platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table · e8796c6c
      Michael Haener authored
      The CONNECT X300 uses the PMC clock for on-board components and gets
      stuck during boot if the clock is disabled. Therefore, add this
      device to the critical systems list.
      Tested on CONNECT X300.
      
      Fixes: 648e9218 ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL")
      Signed-off-by: default avatarMichael Haener <michael.haener@siemens.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      e8796c6c
    • Hans de Goede's avatar
      platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes · 133b2ace
      Hans de Goede authored
      At least on the HP Envy x360 15-cp0xxx model the WMI interface
      for HPWMI_FEATURE2_QUERY requires an outsize of at least 128 bytes,
      otherwise it fails with an error code 5 (HPWMI_RET_INVALID_PARAMETERS):
      
      Dec 06 00:59:38 kernel: hp_wmi: query 0xd returned error 0x5
      
      We do not care about the contents of the buffer, we just want to know
      if the HPWMI_FEATURE2_QUERY command is supported.
      
      This commits bumps the buffer size, fixing the error.
      
      Fixes: 8a1513b4 ("hp-wmi: limit hotkey enable")
      Cc: stable@vger.kernel.org
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1520703Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      133b2ace
    • Liming Sun's avatar
      platform/mellanox: fix the mlx-bootctl sysfs · 77dcc95e
      Liming Sun authored
      This is a follow-up commit for the sysfs attributes to change
      from DRIVER_ATTR to DEVICE_ATTR according to some initial comments.
      In such case, it's better to point the sysfs path to the device
      itself instead of the driver. The ABI document is also updated.
      
      Fixes: 79e29cb8 ("platform/mellanox: Add bootctl driver for Mellanox BlueField Soc")
      Signed-off-by: default avatarLiming Sun <lsun@mellanox.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      77dcc95e
    • Aditya Pakki's avatar
      xen/grant-table: remove multiple BUG_ON on gnttab_interface · d6bd6cf9
      Aditya Pakki authored
      gnttab_request_version() always sets the gnttab_interface variable
      and the assertions to check for empty gnttab_interface is unnecessary.
      The patch eliminates multiple such assertions.
      Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      d6bd6cf9
    • Paul Durrant's avatar
      xen-blkback: support dynamic unbind/bind · f4eef1b6
      Paul Durrant authored
      By simply re-attaching to shared rings during connect_ring() rather than
      assuming they are freshly allocated (i.e assuming the counters are zero)
      it is possible for vbd instances to be unbound and re-bound from and to
      (respectively) a running guest.
      
      This has been tested by running:
      
      while true;
        do fio --name=randwrite --ioengine=libaio --iodepth=16 \
        --rw=randwrite --bs=4k --direct=1 --size=1G --verify=crc32;
        done
      
      in a PV guest whilst running:
      
      while true;
        do echo vbd-$DOMID-$VBD >unbind;
        echo unbound;
        sleep 5;
        echo vbd-$DOMID-$VBD >bind;
        echo bound;
        sleep 3;
        done
      
      in dom0 from /sys/bus/xen-backend/drivers/vbd to continuously unbind and
      re-bind its system disk image.
      
      This is a highly useful feature for a backend module as it allows it to be
      unloaded and re-loaded (i.e. updated) without requiring domUs to be halted.
      This was also tested by running:
      
      while true;
        do echo vbd-$DOMID-$VBD >unbind;
        echo unbound;
        sleep 5;
        rmmod xen-blkback;
        echo unloaded;
        sleep 1;
        modprobe xen-blkback;
        echo bound;
        cd $(pwd);
        sleep 3;
        done
      
      in dom0 whilst running the same loop as above in the (single) PV guest.
      
      Some (less stressful) testing has also been done using a Windows HVM guest
      with the latest 9.0 PV drivers installed.
      Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarRoger Pau Monné <roger.pau@citrix.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      f4eef1b6
    • Paul Durrant's avatar
      xen/interface: re-define FRONT/BACK_RING_ATTACH() · 1ee54195
      Paul Durrant authored
      Currently these macros are defined to re-initialize a front/back ring
      (respectively) to values read from the shared ring in such a way that any
      requests/responses that are added to the shared ring whilst the front/back
      is detached will be skipped over. This, in general, is not a desirable
      semantic since most frontend implementations will eventually block waiting
      for a response which would either never appear or never be processed.
      
      Since the macros are currently unused, take this opportunity to re-define
      them to re-initialize a front/back ring using specified values. This also
      allows FRONT/BACK_RING_INIT() to be re-defined in terms of
      FRONT/BACK_RING_ATTACH() using a specified value of 0.
      
      NOTE: BACK_RING_ATTACH() will be used directly in a subsequent patch.
      Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      1ee54195
    • Paul Durrant's avatar
      xenbus: limit when state is forced to closed · 672b7763
      Paul Durrant authored
      If a driver probe() fails then leave the xenstore state alone. There is no
      reason to modify it as the failure may be due to transient resource
      allocation issues and hence a subsequent probe() may succeed.
      
      If the driver supports re-binding then only force state to closed during
      remove() only in the case when the toolstack may need to clean up. This can
      be detected by checking whether the state in xenstore has been set to
      closing prior to device removal.
      
      NOTE: Re-bind support is indicated by new boolean in struct xenbus_driver,
            which defaults to false. Subsequent patches will add support to
            some backend drivers.
      Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      672b7763
    • Paul Durrant's avatar
      xenbus: move xenbus_dev_shutdown() into frontend code... · c534374e
      Paul Durrant authored
      ...and make it static
      
      xenbus_dev_shutdown() is seemingly intended to cause clean shutdown of PV
      frontends when a guest is rebooted. Indeed the function waits for a
      conpletion which is only set by a call to xenbus_frontend_closed().
      
      This patch removes the shutdown() method from backends and moves
      xenbus_dev_shutdown() from xenbus_probe.c into xenbus_probe_frontend.c,
      renaming it appropriately and making it static.
      
      NOTE: In the case where the backend is running in a driver domain, the
            toolstack should have already terminated any frontends that may be
            using it (since Xen does not support re-startable PV driver domains)
            so xenbus_dev_shutdown() should never be called.
      Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      c534374e
    • Nathan Chancellor's avatar
      xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk · 589b7289
      Nathan Chancellor authored
      Clang warns:
      
      ../drivers/block/xen-blkfront.c:1117:4: warning: misleading indentation;
      statement is not part of the previous 'if' [-Wmisleading-indentation]
                      nr_parts = PARTS_PER_DISK;
                      ^
      ../drivers/block/xen-blkfront.c:1115:3: note: previous statement is here
                      if (err)
                      ^
      
      This is because there is a space at the beginning of this line; remove
      it so that the indentation is consistent according to the Linux kernel
      coding style and clang no longer warns.
      
      While we are here, the previous line has some trailing whitespace; clean
      that up as well.
      
      Fixes: c80a4209 ("xen-blkfront: handle Xen major numbers other than XENVBD")
      Link: https://github.com/ClangBuiltLinux/linux/issues/791Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Acked-by: default avatarRoger Pau Monné <roger.pau@citrix.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      589b7289