Skip to content
  1. Oct 26, 2019
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 63cbb3b3
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "A slightly larger set of fixes have accrued in the last two weeks.
        Mostly a collection of the usual smaller fixes:
      
         - Marvell Armada: USB phy setup issues on Turris Mox
      
         - Broadcom: GPIO/pinmux DT mapping corrections for Stingray, MMC bus
           width fix for RPi Zero W, GPIO LED removal for RPI CM3. Also some
           maintainer updates.
      
         - OMAP: Fixlets for display config, interrupt settings for wifi, some
           clock/PM pieces. Also IOMMU regression fix and a ti-sysc
           no-watchdog regression fix.
      
         - i.MX: A few fixes around PM/settings, some devicetree fixlets and
           catching up with config option changes in DRM
      
         - Rockchip: RockRro64 misc DT fixups, Hugsun X99 USB-C, Kevin display
           panel settings
      
        ... and some smaller fixes for Davinci (backlight, McBSP DMA),
        Allwinner (phy regulators, PMU removal on A64, etc)"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (42 commits)
        ARM: dts: stm32: relax qspi pins slew-rate for stm32mp157
        MAINTAINERS: Update the Spreadtrum SoC maintainer
        MAINTAINERS: Remove Gregory and Brian for ARCH_BRCMSTB
        ARM: dts: bcm2837-rpi-cm3: Avoid leds-gpio probing issue
        bus: ti-sysc: Fix watchdog quirk handling
        ARM: OMAP2+: Add pdata for OMAP3 ISP IOMMU
        ARM: OMAP2+: Plug in device_enable/idle ops for IOMMUs
        ARM: davinci_all_defconfig: enable GPIO backlight
        ARM: davinci: dm365: Fix McBSP dma_slave_map entry
        ARM: dts: bcm2835-rpi-zero-w: Fix bus-width of sdhci
        ARM: imx_v6_v7_defconfig: Enable CONFIG_DRM_MSM
        arm64: dts: imx8mn: Use correct clock for usdhc's ipg clk
        arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk
        arm64: dts: imx8mq: Use correct clock for usdhc's ipg clk
        ARM: dts: imx7s: Correct GPT's ipg clock source
        ARM: dts: vf610-zii-scu4-aib: Specify 'i2c-mux-idle-disconnect'
        ARM: dts: imx6q-logicpd: Re-Enable SNVS power key
        arm64: dts: lx2160a: Correct CPU core idle state name
        mailmap: Add Simon Arlott (replacement for expired email address)
        arm64: dts: rockchip: Fix override mode for rk3399-kevin panel
        ...
      63cbb3b3
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 8c123380
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "Bugfixes for ARM, PPC and x86, plus selftest improvements"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: nVMX: Don't leak L1 MMIO regions to L2
        KVM: SVM: Fix potential wrong physical id in avic_handle_ldr_update
        kvm: clear kvmclock MSR on reset
        KVM: x86: fix bugon.cocci warnings
        KVM: VMX: Remove specialized handling of unexpected exit-reasons
        selftests: kvm: fix sync_regs_test with newer gccs
        selftests: kvm: vmx_dirty_log_test: skip the test when VMX is not supported
        selftests: kvm: consolidate VMX support checks
        selftests: kvm: vmx_set_nested_state_test: don't check for VMX support twice
        KVM: Don't shrink/grow vCPU halt_poll_ns if host side polling is disabled
        selftests: kvm: synchronize .gitignore to Makefile
        kvm: x86: Expose RDPID in KVM_GET_SUPPORTED_CPUID
        KVM: arm64: pmu: Reset sample period on overflow handling
        KVM: arm64: pmu: Set the CHAINED attribute before creating the in-kernel event
        arm64: KVM: Handle PMCR_EL0.LC as RES1 on pure AArch64 systems
        KVM: arm64: pmu: Fix cycle counter truncation
        KVM: PPC: Book3S HV: XIVE: Ensure VP isn't already in use
      8c123380
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-10-25' of git://anongit.freedesktop.org/drm/drm · 8caacaad
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Quiet week this week, which I suspect means some people just didn't
        get around to sending me fixes pulls in time. This has 2 komeda and a
        bunch of amdgpu fixes in it:
      
        komeda:
         - typo fixes
         - flushing pipes fix
      
        amdgpu:
         - Fix suspend/resume issue related to multi-media engines
         - Fix memory leak in user ptr code related to hmm conversion
         - Fix possible VM faults when allocating page table memory
         - Fix error handling in bo list ioctl"
      
      * tag 'drm-fixes-2019-10-25' of git://anongit.freedesktop.org/drm/drm:
        drm/komeda: Fix typos in komeda_splitter_validate
        drm/komeda: Don't flush inactive pipes
        drm/amdgpu/vce: fix allocation size in enc ring test
        drm/amdgpu: fix error handling in amdgpu_bo_list_create
        drm/amdgpu: fix potential VM faults
        drm/amdgpu: user pages array memory leak fix
        drm/amdgpu/vcn: fix allocation size in enc ring test
        drm/amdgpu/uvd7: fix allocation size in enc ring test (v2)
        drm/amdgpu/uvd6: fix allocation size in enc ring test (v2)
      8caacaad
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · f6492848
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC host fixes:
      
         - mxs: Fix flags passed to dmaengine_prep_slave_sg
      
         - cqhci: Add a missing memory barrier
      
         - sdhci-omap: Fix tuning procedure for temperatures < -20C"
      
      * tag 'mmc-v5.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: mxs: fix flags passed to dmaengine_prep_slave_sg
        mmc: cqhci: Commit descriptors before setting the doorbell
        mmc: sdhci-omap: Fix Tuning procedure for temperatures < -20C
      f6492848
  2. Oct 25, 2019
  3. Oct 24, 2019
  4. Oct 23, 2019
    • Olof Johansson's avatar
      Merge tag 'sunxi-fixes-for-5.4-1' of... · 21397ae0
      Olof Johansson authored
      Merge tag 'sunxi-fixes-for-5.4-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
      
      A number of fixes for this release, but mostly:
        - A fixup for the A10 CSI DT binding merged during the 5.4-rc1 window
        - A fix for a dt-binding error
        - Addition of phy regulator delays
        - The PMU on the A64 was found to be non-functional, so we've dropped it for now
      
      * tag 'sunxi-fixes-for-5.4-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        ARM: dts: sun7i: Drop the module clock from the device tree
        dt-bindings: media: sun4i-csi: Drop the module clock
        media: dt-bindings: Fix building error for dt_binding_check
        arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay
        arm64: dts: allwinner: a64: Drop PMU node
        arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay
      
      Link: https://lore.kernel.org/r/80085a57-c40f-4bed-a9c3-19858d87564e.lettre@localhost
      
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      21397ae0
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 13b86bc4
      Linus Torvalds authored
      :Pull ARM fixes from Russell King:
      
       - fix for alignment faults under high memory pressure
      
       - use u32 for ARM instructions in fault handler
      
       - mark functions that must always be inlined with __always_inline
      
       - fix for nommu XIP
      
       - fix ARMv7M switch to handler mode in reboot path
      
       - fix the recently introduced AMBA reset control error paths
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 8926/1: v7m: remove register save to stack before svc
        ARM: 8914/1: NOMMU: Fix exc_ret for XIP
        ARM: 8908/1: add __always_inline to functions called from __get_user_check()
        ARM: mm: alignment: use "u32" for 32-bit instructions
        ARM: mm: fix alignment handler faults under memory pressure
        drivers/amba: fix reset control error handling
      13b86bc4
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · e969c860
      Linus Torvalds authored
      Pull EDAC fix from Borislav Petkov:
       "Fix ghes_edac UAF case triggered by KASAN and DEBUG_TEST_DRIVER_REMOVE.
      
        Future pending rework of the ghes_edac instances registration will do
        away with the single memory controller per system model and that ugly
        hackery there.
      
        This is a minimal fix for stable@, courtesy of James Morse"
      
      * tag 'edac_urgent_for_5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/ghes: Fix Use after free in ghes_edac remove path
      e969c860
    • Linus Torvalds's avatar
      Merge tag 'for-5.4-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 54955e3b
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - fixes of error handling cleanup of metadata accounting with qgroups
         enabled
      
       - fix swapped values for qgroup tracepoints
      
       - fix race when handling full sync flag
      
       - don't start unused worker thread, functionality removed already
      
      * tag 'for-5.4-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        Btrfs: check for the full sync flag while holding the inode lock during fsync
        Btrfs: fix qgroup double free after failure to reserve metadata for delalloc
        btrfs: tracepoints: Fix bad entry members of qgroup events
        btrfs: tracepoints: Fix wrong parameter order for qgroup events
        btrfs: qgroup: Always free PREALLOC META reserve in btrfs_delalloc_release_extents()
        btrfs: don't needlessly create extent-refs kernel thread
        btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group()
        Btrfs: add missing extents release on file extent cluster relocation error
      54955e3b
    • Rafael J. Wysocki's avatar
      Merge branch 'opp/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 028db79c
      Rafael J. Wysocki authored
      Pull operating performance points (OPP) framework fixes for v5.4
      from Viresh Kumar:
      
      "This contains:
      
      - Patch to revert addition of regulator enable/disable in OPP core
        (Marek).
      - Remove incorrect lockdep assert (Viresh).
      - Fix a kref counting issue (Viresh)."
      
      * 'opp/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
        opp: Reinitialize the list_kref before adding the static OPPs again
        opp: core: Revert "add regulators enable and disable"
        opp: of: drop incorrect lockdep_assert_held()
      028db79c
    • Viresh Kumar's avatar
      opp: Reinitialize the list_kref before adding the static OPPs again · b19c2355
      Viresh Kumar authored
      The list_kref reaches a count of 0 when all the static OPPs are removed,
      for example when dev_pm_opp_of_cpumask_remove_table() is called, though
      the actual OPP table may not get freed as it may still be referenced by
      other parts of the kernel, like from a call to
      dev_pm_opp_set_supported_hw(). And if we call
      dev_pm_opp_of_cpumask_add_table() again at this point, we must
      reinitialize the list_kref otherwise the kernel will hit a WARN() in
      kref infrastructure for incrementing a kref with value 0.
      
      Fixes: 11e1a164
      
       ("opp: Don't decrement uninitialized list_kref")
      Reported-by: default avatarDmitry Osipenko <digetx@gmail.com>
      Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      b19c2355
    • Pan Xiuli's avatar
      ALSA: hda: Add Tigerlake/Jasperlake PCI ID · 4750c212
      Pan Xiuli authored
      
      
      Add HD Audio Device PCI ID for the Intel Tigerlake and Jasperlake
      platform.
      
      Signed-off-by: default avatarPan Xiuli <xiuli.pan@linux.intel.com>
      Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Link: https://lore.kernel.org/r/20191022194402.23178-1-pierre-louis.bossart@linux.intel.com
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      4750c212
    • Jim Mattson's avatar
      KVM: nVMX: Don't leak L1 MMIO regions to L2 · 671ddc70
      Jim Mattson authored
      If the "virtualize APIC accesses" VM-execution control is set in the
      VMCS, the APIC virtualization hardware is triggered when a page walk
      in VMX non-root mode terminates at a PTE wherein the address of the 4k
      page frame matches the APIC-access address specified in the VMCS. On
      hardware, the APIC-access address may be any valid 4k-aligned physical
      address.
      
      KVM's nVMX implementation enforces the additional constraint that the
      APIC-access address specified in the vmcs12 must be backed by
      a "struct page" in L1. If not, L0 will simply clear the "virtualize
      APIC accesses" VM-execution control in the vmcs02.
      
      The problem with this approach is that the L1 guest has arranged the
      vmcs12 EPT tables--or shadow page tables, if the "enable EPT"
      VM-execution control is clear in the vmcs12--so that the L2 guest
      physical address(es)--or L2 guest linear address(es)--that reference
      the L2 APIC map to the APIC-access address specified in the
      vmcs12. Without the "virtualize APIC accesses" VM-execution control in
      the vmcs02, the APIC accesses in the L2 guest will directly access the
      APIC-access page in L1.
      
      When there is no mapping whatsoever for the APIC-access address in L1,
      the L2 VM just loses the intended APIC virtualization. However, when
      the APIC-access address is mapped to an MMIO region in L1, the L2
      guest gets direct access to the L1 MMIO device. For example, if the
      APIC-access address specified in the vmcs12 is 0xfee00000, then L2
      gets direct access to L1's APIC.
      
      Since this vmcs12 configuration is something that KVM cannot
      faithfully emulate, the appropriate response is to exit to userspace
      with KVM_INTERNAL_ERROR_EMULATION.
      
      Fixes: fe3ef05c
      
       ("KVM: nVMX: Prepare vmcs02 from vmcs01 and vmcs12")
      Reported-by: default avatarDan Cross <dcross@google.com>
      Signed-off-by: default avatarJim Mattson <jmattson@google.com>
      Reviewed-by: default avatarPeter Shier <pshier@google.com>
      Reviewed-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      671ddc70
    • Miaohe Lin's avatar
      KVM: SVM: Fix potential wrong physical id in avic_handle_ldr_update · 5c94ac5d
      Miaohe Lin authored
      
      
      Guest physical APIC ID may not equal to vcpu->vcpu_id in some case.
      We may set the wrong physical id in avic_handle_ldr_update as we
      always use vcpu->vcpu_id. Get physical APIC ID from vAPIC page
      instead.
      Export and use kvm_xapic_id here and in avic_handle_apic_id_update
      as suggested by Vitaly.
      
      Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      5c94ac5d
    • Russell King's avatar
      Merge branch 'misc' into fixes · 39f4d441
      Russell King authored
      39f4d441
    • Sudeep Holla's avatar
      cpufreq: Cancel policy update work scheduled before freeing · 6941051d
      Sudeep Holla authored
      Scheduled policy update work may end up racing with the freeing of the
      policy and unregistering the driver.
      
      One possible race is as below, where the cpufreq_driver is unregistered,
      but the scheduled work gets executed at later stage when, cpufreq_driver
      is NULL (i.e. after freeing the policy and driver).
      
      Unable to handle kernel NULL pointer dereference at virtual address 0000001c
      pgd = (ptrval)
      [0000001c] *pgd=80000080204003, *pmd=00000000
      Internal error: Oops: 206 [#1] SMP THUMB2
      Modules linked in:
      CPU: 0 PID: 34 Comm: kworker/0:1 Not tainted 5.4.0-rc3-00006-g67f5a8081a4b #86
      Hardware name: ARM-Versatile Express
      Workqueue: events handle_update
      PC is at cpufreq_set_policy+0x58/0x228
      LR is at dev_pm_qos_read_value+0x77/0xac
      Control: 70c5387d  Table: 80203000  DAC: fffffffd
      Process kworker/0:1 (pid: 34, stack limit = 0x(ptrval))
      	(cpufreq_set_policy) from (refresh_frequency_limits.part.24+0x37/0x48)
      	(refresh_frequency_limits.part.24) from (handle_update+0x2f/0x38)
      	(handle_update) from (process_one_work+0x16d/0x3cc)
      	(process_one_work) from (worker_thread+0xff/0x414)
      	(worker_thread) from (kthread+0xff/0x100)
      	(kthread) from (ret_from_fork+0x11/0x28)
      
      Fixes: 67d874c3
      
       ("cpufreq: Register notifiers with the PM QoS framework")
      Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      [ rjw: Cancel the work before dropping the QoS requests ]
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6941051d
  5. Oct 22, 2019