1. 13 Nov, 2021 5 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 4d6fe79f
      Linus Torvalds authored
      Pull more kvm updates from Paolo Bonzini:
       "New x86 features:
      
         - Guest API and guest kernel support for SEV live migration
      
         - SEV and SEV-ES intra-host migration
      
        Bugfixes and cleanups for x86:
      
         - Fix misuse of gfn-to-pfn cache when recording guest steal time /
           preempted status
      
         - Fix selftests on APICv machines
      
         - Fix sparse warnings
      
         - Fix detection of KVM features in CPUID
      
         - Cleanups for bogus writes to MSR_KVM_PV_EOI_EN
      
         - Fixes and cleanups for MSR bitmap handling
      
         - Cleanups for INVPCID
      
         - Make x86 KVM_SOFT_MAX_VCPUS consistent with other architectures
      
        Bugfixes for ARM:
      
         - Fix finalization of host stage2 mappings
      
         - Tighten the return value of kvm_vcpu_preferred_target()
      
         - Make sure the extraction of ESR_ELx.EC is limited to architected
           bits"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (34 commits)
        KVM: SEV: unify cgroup cleanup code for svm_vm_migrate_from
        KVM: x86: move guest_pv_has out of user_access section
        KVM: x86: Drop arbitrary KVM_SOFT_MAX_VCPUS
        KVM: Move INVPCID type check from vmx and svm to the common kvm_handle_invpcid()
        KVM: VMX: Add a helper function to retrieve the GPR index for INVPCID, INVVPID, and INVEPT
        KVM: nVMX: Clean up x2APIC MSR handling for L2
        KVM: VMX: Macrofy the MSR bitmap getters and setters
        KVM: nVMX: Handle dynamic MSR intercept toggling
        KVM: nVMX: Query current VMCS when determining if MSR bitmaps are in use
        KVM: x86: Don't update vcpu->arch.pv_eoi.msr_val when a bogus value was written to MSR_KVM_PV_EOI_EN
        KVM: x86: Rename kvm_lapic_enable_pv_eoi()
        KVM: x86: Make sure KVM_CPUID_FEATURES really are KVM_CPUID_FEATURES
        KVM: x86: Add helper to consolidate core logic of SET_CPUID{2} flows
        kvm: mmu: Use fast PF path for access tracking of huge pages when possible
        KVM: x86/mmu: Properly dereference rcu-protected TDP MMU sptep iterator
        KVM: x86: inhibit APICv when KVM_GUESTDBG_BLOCKIRQ active
        kvm: x86: Convert return type of *is_valid_rdpmc_ecx() to bool
        KVM: x86: Fix recording of guest steal time / preempted status
        selftest: KVM: Add intra host migration tests
        selftest: KVM: Add open sev dev helper
        ...
      4d6fe79f
    • Linus Torvalds's avatar
      Merge branch 'exit-cleanups-for-v5.16' of... · d4fa09e5
      Linus Torvalds authored
      Merge branch 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull vm86 fix from Eric Biederman:
       "Just the removal of an unnecessary (and incorrect) test from a BUG_ON"
      
      * 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        signal/vm86_32: Remove pointless test in BUG_ON
      d4fa09e5
    • Linus Torvalds's avatar
      Merge tag 's390-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · be427a88
      Linus Torvalds authored
      Pull more s390 updates from Vasily Gorbik:
      
       - Add PCI automatic error recovery.
      
       - Fix tape driver timer initialization broken during timers api
         cleanup.
      
       - Fix bogus CPU measurement counters values on CPUs offlining.
      
       - Check the validity of subchanel before reading other fields in the
         schib in cio code.
      
      * tag 's390-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/cio: check the subchannel validity for dev_busid
        s390/cpumf: cpum_cf PMU displays invalid value after hotplug remove
        s390/tape: fix timer initialization in tape_std_assign()
        s390/pci: implement minimal PCI error recovery
        PCI: Export pci_dev_lock()
        s390/pci: implement reset_slot for hotplug slot
        s390/pci: refresh function handle in iomap
      be427a88
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.16-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · b89f311d
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support for time namespaces in the VDSO, along with some associated
         cleanups.
      
       - Support for building rv32 randconfigs.
      
       - Improvements to the XIP port that allow larger kernels to function
      
       - Various device tree cleanups for both the SiFive and Microchip boards
      
       - A handful of defconfig updates, including enabling Nouveau.
      
      There are also various small cleanups.
      
      * tag 'riscv-for-linus-5.16-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: defconfig: enable DRM_NOUVEAU
        riscv/vdso: Drop unneeded part due to merge issue
        riscv: remove .text section size limitation for XIP
        riscv: dts: sifive: add missing compatible for plic
        riscv: dts: microchip: add missing compatibles for clint and plic
        riscv: dts: sifive: drop duplicated nodes and properties in sifive
        riscv: dts: sifive: fix Unleashed board compatible
        riscv: dts: sifive: use only generic JEDEC SPI NOR flash compatible
        riscv: dts: microchip: use vendor compatible for Cadence SD4HC
        riscv: dts: microchip: drop unused pinctrl-names
        riscv: dts: microchip: drop duplicated MMC/SDHC node
        riscv: dts: microchip: fix board compatible
        riscv: dts: microchip: drop duplicated nodes
        dt-bindings: mmc: cdns: document Microchip MPFS MMC/SDHCI controller
        riscv: add rv32 and rv64 randconfig build targets
        riscv: mm: don't advertise 1 num_asid for 0 asid bits
        riscv: set default pm_power_off to NULL
        riscv/vdso: Add support for time namespaces
      b89f311d
    • Linus Torvalds's avatar
      Merge tag 'mips_5.16_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 4218a96f
      Linus Torvalds authored
      Pull more MIPS updates from Thomas Bogendoerfer:
      
       - Config updates for BMIPS platform
      
       - Build fixes
      
       - Makefile cleanups
      
      * tag 'mips_5.16_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
        mips: decompressor: do not copy source files while building
        MIPS: boot/compressed/: add __bswapdi2() to target for ZSTD decompression
        MIPS: fix duplicated slashes for Platform file path
        MIPS: fix *-pkg builds for loongson2ef platform
        PCI: brcmstb: Allow building for BMIPS_GENERIC
        MIPS: BMIPS: Enable PCI Kconfig
        MIPS: VDSO: remove -nostdlib compiler flag
        mips: BCM63XX: ensure that CPU_SUPPORTS_32BIT_KERNEL is set
        MIPS: Update bmips_stb_defconfig
        MIPS: Allow modules to set board_be_handler
      4218a96f
  2. 12 Nov, 2021 16 commits
    • Eric W. Biederman's avatar
      signal/vm86_32: Remove pointless test in BUG_ON · c7a9b647
      Eric W. Biederman authored
      kernel test robot <oliver.sang@intel.com> writes[1]:
      >
      > Greeting,
      >
      > FYI, we noticed the following commit (built with gcc-9):
      >
      > commit: 1a4d21a2 ("signal/vm86_32: Replace open coded BUG_ON with an actual BUG_ON")
      > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
      >
      > in testcase: trinity
      > version: trinity-static-i386-x86_64-1c734c75-1_2020-01-06
      > with following parameters:
      >
      >
      > [ 70.645554][ T3747] kernel BUG at arch/x86/kernel/vm86_32.c:109!
      > [ 70.646185][ T3747] invalid opcode: 0000 [#1] SMP
      > [ 70.646682][ T3747] CPU: 0 PID: 3747 Comm: trinity-c6 Not tainted 5.15.0-rc1-00009-g1a4d21a2 #1
      > [ 70.647598][ T3747] EIP: save_v86_state (arch/x86/kernel/vm86_32.c:109 (discriminator 3))
      > [ 70.648113][ T3747] Code: 89 c3 64 8b 35 60 b8 25 c2 83 ec 08 89 55 f0 8b 96 10 19 00 00 89 55 ec e8 c6 2d 0c 00 fb 8b 55 ec 85 d2 74 05 83 3a 00 75 02 <0f> 0b 8b 86 10 19 00 00 8b 4b 38 8b 78 48 31 cf 89 f8 8b 7a 4c 81
      > [ 70.650136][ T3747] EAX: 00000001 EBX: f5f49fac ECX: 0000000b EDX: f610b600
      > [ 70.650852][ T3747] ESI: f5f79cc0 EDI: f5f79cc0 EBP: f5f49f04 ESP: f5f49ef0
      > [ 70.651593][ T3747] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010246
      > [ 70.652413][ T3747] CR0: 80050033 CR2: 00004000 CR3: 35fc7000 CR4: 000406d0
      > [ 70.653169][ T3747] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
      > [ 70.653897][ T3747] DR6: fffe0ff0 DR7: 00000400
      > [ 70.654382][ T3747] Call Trace:
      > [ 70.654719][ T3747] arch_do_signal_or_restart (arch/x86/kernel/signal.c:792 arch/x86/kernel/signal.c:867)
      > [ 70.655288][ T3747] exit_to_user_mode_prepare (kernel/entry/common.c:174 kernel/entry/common.c:209)
      > [ 70.655854][ T3747] irqentry_exit_to_user_mode (kernel/entry/common.c:126 kernel/entry/common.c:317)
      > [ 70.656450][ T3747] irqentry_exit (kernel/entry/common.c:406)
      > [ 70.656897][ T3747] exc_page_fault (arch/x86/mm/fault.c:1535)
      > [ 70.657369][ T3747] ? sysvec_kvm_asyncpf_interrupt (arch/x86/mm/fault.c:1488)
      > [ 70.657989][ T3747] handle_exception (arch/x86/entry/entry_32.S:1085)
      
      vm86_32.c:109 is: "BUG_ON(!vm86 || !vm86->user_vm86)"
      
      When trying to understand the failure Brian Gerst pointed out[2] that
      the code does not need protection against vm86->user_vm86 being NULL.
      The copy_from_user code will already handles that case if the address
      is going to fault.
      
      Looking futher I realized that if we care about not allowing struct
      vm86plus_struct at address 0 it should be do_sys_vm86 (the system
      call) that does the filtering.  Not way down deep when the emulation
      has completed in save_v86_state.
      
      So let's just remove the silly case of attempting to filter a
      userspace address with a BUG_ON.  Existing userspace can't break and
      it won't make the kernel any more attackable as the userspace access
      helpers will handle it, if it isn't a good userspace pointer.
      
      I have run the reproducer the fuzzer gave me before I made this change
      and it reproduced, and after I made this change and I have not seen
      the reported failure.  So it does looks like this fixes the reported
      issue.
      
      [1] https://lkml.kernel.org/r/20211112074030.GB19820@xsang-OptiPlex-9020
      [2] https://lkml.kernel.org/r/CAMzpN2jkK5sAv-Kg_kVnCEyVySiqeTdUORcC=AdG1gV6r8nUew@mail.gmail.comSuggested-by: default avatarBrian Gerst <brgerst@gmail.com>
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Tested-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
      c7a9b647
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-5.16-1' of... · 84886c26
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-5.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into kvm-master
      
      KVM/arm64 fixes for 5.16, take #1
      
      - Fix the host S2 finalization by solely iterating over the memblocks
        instead of the whole IPA space
      
      - Tighten the return value of kvm_vcpu_preferred_target() now that
        32bit support is long gone
      
      - Make sure the extraction of ESR_ELx.EC is limited to the architected
        bits
      
      - Comment fixups
      84886c26
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 66f4beaa
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "This fixes a boot crash regression"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: api - Fix boot-up crash when crypto manager is disabled
      66f4beaa
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 6cbcc7ab
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "This series is all the stragglers that didn't quite make the first
        merge window pull. It's mostly minor updates and bug fixes of merge
        window code but it also has two driver updates: ufs and qla2xxx"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (46 commits)
        scsi: scsi_debug: Don't call kcalloc() if size arg is zero
        scsi: core: Remove command size deduction from scsi_setup_scsi_cmnd()
        scsi: scsi_ioctl: Validate command size
        scsi: ufs: ufshpb: Properly handle max-single-cmd
        scsi: core: Avoid leaving shost->last_reset with stale value if EH does not run
        scsi: bsg: Fix errno when scsi_bsg_register_queue() fails
        scsi: sr: Remove duplicate assignment
        scsi: ufs: ufs-exynos: Introduce ExynosAuto v9 virtual host
        scsi: ufs: ufs-exynos: Multi-host configuration for ExynosAuto v9
        scsi: ufs: ufs-exynos: Support ExynosAuto v9 UFS
        scsi: ufs: ufs-exynos: Add pre/post_hce_enable drv callbacks
        scsi: ufs: ufs-exynos: Factor out priv data init
        scsi: ufs: ufs-exynos: Add EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR option
        scsi: ufs: ufs-exynos: Support custom version of ufs_hba_variant_ops
        scsi: ufs: ufs-exynos: Add setup_clocks callback
        scsi: ufs: ufs-exynos: Add refclkout_stop control
        scsi: ufs: ufs-exynos: Simplify drv_data retrieval
        scsi: ufs: ufs-exynos: Change pclk available max value
        scsi: ufs: Add quirk to enable host controller without PH configuration
        scsi: ufs: Add quirk to handle broken UIC command
        ...
      6cbcc7ab
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-5.16-rc1' of... · 030c28a0
      Linus Torvalds authored
      Merge tag 'pwm/for-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "This set is mostly small fixes and cleanups, so more of a janitorial
        update for this cycle"
      
      * tag 'pwm/for-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
        pwm: vt8500: Rename pwm_busy_wait() to make it obviously driver-specific
        dt-bindings: pwm: tpu: Add R-Car M3-W+ device tree bindings
        dt-bindings: pwm: tpu: Add R-Car V3U device tree bindings
        pwm: pwm-samsung: Trigger manual update when disabling PWM
        pwm: visconti: Simplify using devm_pwmchip_add()
        pwm: samsung: Describe driver in Kconfig
        pwm: Make it explicit that pwm_apply_state() might sleep
        pwm: Add might_sleep() annotations for !CONFIG_PWM API functions
        pwm: atmel: Drop unused header
      030c28a0
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 0d5d7463
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of fixes for 5.16-rc1, notably for a few regressions that
        were found in 5.15 and pre-rc1:
      
         - revert of the unification of SG-buffer helper functions on x86 and
           the relevant fix
      
         - regression fixes for mmap after the recent code refactoring
      
         - two NULL dereference fixes in HD-audio controller driver
      
         - UAF fixes in ALSA timer core
      
         - a few usual HD-audio and FireWire quirks"
      
      * tag 'sound-fix-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: fireworks: add support for Loud Onyx 1200f quirk
        ALSA: hda: fix general protection fault in azx_runtime_idle
        ALSA: hda: Free card instance properly at probe errors
        ALSA: hda/realtek: Add quirk for HP EliteBook 840 G7 mute LED
        ALSA: memalloc: Remove a stale comment
        ALSA: synth: missing check for possible NULL after the call to kstrdup
        ALSA: memalloc: Use proper SG helpers for noncontig allocations
        ALSA: pci: rme: Fix unaligned buffer addresses
        ALSA: firewire-motu: add support for MOTU Track 16
        ALSA: PCM: Fix NULL dereference at mmap checks
        ALSA: hda/realtek: Add quirk for ASUS UX550VE
        ALSA: timer: Unconditionally unlink slave instances, too
        ALSA: memalloc: Catch call with NULL snd_dma_buffer pointer
        Revert "ALSA: memalloc: Convert x86 SG-buffer handling with non-contiguous type"
        ALSA: hda/realtek: Add a quirk for Acer Spin SP513-54N
        ALSA: firewire-motu: add support for MOTU Traveler mk3
        ALSA: hda/realtek: Headset fixup for Clevo NH77HJQ
        ALSA: timer: Fix use-after-free problem
      0d5d7463
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2021-11-12' of git://anongit.freedesktop.org/drm/drm · 304ac803
      Linus Torvalds authored
      Pull more drm updates from Dave Airlie:
       "I missed a drm-misc-next pull for the main pull last week. It wasn't
        that major and isn't the bulk of this at all. This has a bunch of
        fixes all over, a lot for amdgpu and i915.
      
        bridge:
         - HPD improvments for lt9611uxc
         - eDP aux-bus support for ps8640
         - LVDS data-mapping selection support
      
        ttm:
         - remove huge page functionality (needs reworking)
         - fix a race condition during BO eviction
      
        panels:
         - add some new panels
      
        fbdev:
         - fix double-free
         - remove unused scrolling acceleration
         - CONFIG_FB dep improvements
      
        locking:
         - improve contended locking logging
         - naming collision fix
      
        dma-buf:
         - add dma_resv_for_each_fence iterator
         - fix fence refcounting bug
         - name locking fixesA
      
        prime:
         - fix object references during mmap
      
        nouveau:
         - various code style changes
         - refcount fix
         - device removal fixes
         - protect client list with a mutex
         - fix CE0 address calculation
      
        i915:
         - DP rates related fixes
         - Revert disabling dual eDP that was causing state readout problems
         - put the cdclk vtables in const data
         - Fix DVO port type for older platforms
         - Fix blankscreen by turning DP++ TMDS output buffers on encoder->shutdown
         - CCS FBs related fixes
         - Fix recursive lock in GuC submission
         - Revert guc_id from i915_request tracepoint
         - Build fix around dmabuf
      
        amdgpu:
         - GPU reset fix
         - Aldebaran fix
         - Yellow Carp fixes
         - DCN2.1 DMCUB fix
         - IOMMU regression fix for Picasso
         - DSC display fixes
         - BPC display calculation fixes
         - Other misc display fixes
         - Don't allow partial copy from user for DC debugfs
         - SRIOV fixes
         - GFX9 CSB pin count fix
         - Various IP version check fixes
         - DP 2.0 fixes
         - Limit DCN1 MPO fix to DCN1
      
        amdkfd:
         - SVM fixes
         - Fix gfx version for renoir
         - Reset fixes
      
        udl:
         - timeout fix
      
        imx:
         - circular locking fix
      
        virtio:
         - NULL ptr deref fix"
      
      * tag 'drm-next-2021-11-12' of git://anongit.freedesktop.org/drm/drm: (126 commits)
        drm/ttm: Double check mem_type of BO while eviction
        drm/amdgpu: add missed support for UVD IP_VERSION(3, 0, 64)
        drm/amdgpu: drop jpeg IP initialization in SRIOV case
        drm/amd/display: reject both non-zero src_x and src_y only for DCN1x
        drm/amd/display: Add callbacks for DMUB HPD IRQ notifications
        drm/amd/display: Don't lock connection_mutex for DMUB HPD
        drm/amd/display: Add comment where CONFIG_DRM_AMD_DC_DCN macro ends
        drm/amdkfd: Fix retry fault drain race conditions
        drm/amdkfd: lower the VAs base offset to 8KB
        drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly
        drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov
        drm/amdgpu: fix uvd crash on Polaris12 during driver unloading
        drm/i915/adlp/fb: Prevent the mapping of redundant trailing padding NULL pages
        drm/i915/fb: Fix rounding error in subsampled plane size calculation
        drm/i915/hdmi: Turn DP++ TMDS output buffers back on in encoder->shutdown()
        drm/locking: fix __stack_depot_* name conflict
        drm/virtio: Fix NULL dereference error in virtio_gpu_poll
        drm/amdgpu: fix SI handling in amdgpu_device_asic_has_dc_support()
        drm/amdgpu: Fix dangling kfd_bo pointer for shared BOs
        drm/amd/amdkfd: Don't sent command to HWS on kfd reset
        ...
      304ac803
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · f78e9de8
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
       "Just one new driver (Cypress StreetFighter touchkey), and no input
        core changes this time.
      
        Plus various fixes and enhancements to existing drivers"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (54 commits)
        Input: iforce - fix control-message timeout
        Input: wacom_i2c - use macros for the bit masks
        Input: ili210x - reduce sample period to 15ms
        Input: ili210x - improve polled sample spacing
        Input: ili210x - special case ili251x sample read out
        Input: elantench - fix misreporting trackpoint coordinates
        Input: synaptics-rmi4 - Fix device hierarchy
        Input: i8042 - Add quirk for Fujitsu Lifebook T725
        Input: cap11xx - add support for cap1206
        Input: remove unused header <linux/input/cy8ctmg110_pdata.h>
        Input: ili210x - add ili251x firmware update support
        Input: ili210x - export ili251x version details via sysfs
        Input: ili210x - use resolution from ili251x firmware
        Input: pm8941-pwrkey - respect reboot_mode for warm reset
        reboot: export symbol 'reboot_mode'
        Input: max77693-haptic - drop unneeded MODULE_ALIAS
        Input: cpcap-pwrbutton - do not set input parent explicitly
        Input: max8925_onkey - don't mark comment as kernel-doc
        Input: ads7846 - do not attempt IRQ workaround when deferring probe
        Input: ads7846 - use input_set_capability()
        ...
      f78e9de8
    • Linus Torvalds's avatar
      Merge tag 'rtc-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · 3b81bf78
      Linus Torvalds authored
      Pull RTC updates from Alexandre Belloni:
       "This includes new ioctls to get and set parameters and in particular
        the backup switch mode that is needed for some RTCs to actually enable
        the backup voltage (and have a useful RTC).
      
        The same interface can also be used to get the actual features
        supported by the RTC so userspace has a better way than trying and
        failing.
      
        Summary:
      
        Subsystem:
         - Add new ioctl to get and set extra RTC parameters, this includes
           backup switch mode
         - Expose available features to userspace, in particular, when alarmas
           have a resolution of one minute instead of a second.
         - Let the core handle those alarms with a minute resolution
      
        New driver:
         - MSTAR MSC313 RTC
      
        Drivers:
         - Add SPI ID table where necessary
         - Add BSM support for rv3028, rv3032 and pcf8523
         - s3c: set RTC range
         - rx8025: set range, implement .set_offset and .read_offset"
      
      * tag 'rtc-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (50 commits)
        rtc: rx8025: use .set_offset/.read_offset
        rtc: rx8025: use rtc_add_group
        rtc: rx8025: clear RTC_FEATURE_ALARM when alarm are not supported
        rtc: rx8025: set range
        rtc: rx8025: let the core handle the alarm resolution
        rtc: rx8025: switch to devm_rtc_allocate_device
        rtc: ab8500: let the core handle the alarm resolution
        rtc: ab-eoz9: support UIE when available
        rtc: ab-eoz9: use RTC_FEATURE_UPDATE_INTERRUPT
        rtc: rv3032: let the core handle the alarm resolution
        rtc: s35390a: let the core handle the alarm resolution
        rtc: handle alarms with a minute resolution
        rtc: pcf85063: silence cppcheck warning
        rtc: rv8803: fix writing back ctrl in flag register
        rtc: s3c: Add time range
        rtc: s3c: Extract read/write IO into separate functions
        rtc: s3c: Remove usage of devm_rtc_device_register()
        rtc: tps80031: Remove driver
        rtc: sun6i: Allow probing without an early clock provider
        rtc: pcf8523: add BSM support
        ...
      3b81bf78
    • Linus Torvalds's avatar
      Merge tag 'libata-5.16-rc1-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 204d32ef
      Linus Torvalds authored
      Pull more libata updates from Damien Le Moal:
       "Second round of updates for libata for 5.16:
      
         - Fix READ LOG EXT and READ LOG DMA EXT command timeouts during disk
           revalidation after a resume or a modprobe of the LLDD (me)
      
         - Remove unnecessary error message in sata_highbank driver (Xu)
      
         - Better handling of accesses to the IDENTIFY DEVICE data log for
           drives that do not support this log page (me)
      
         - Fix ahci_shost_attr_group declaration in ahci driver (me)"
      
      * tag 'libata-5.16-rc1-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        libata: libahci: declare ahci_shost_attr_group as static
        libata: add horkage for missing Identify Device log
        ata: sata_highbank: Remove unnecessary print function dev_err()
        libata: fix read log timeout value
      204d32ef
    • Sasha Levin's avatar
      tools/lib/lockdep: drop liblockdep · 7246f4dc
      Sasha Levin authored
      TL;DR: While a tool like liblockdep is useful, it probably doesn't
      belong within the kernel tree.
      
      liblockdep attempts to reuse kernel code both directly (by directly
      building the kernel's lockdep code) as well as indirectly (by using
      sanitized headers). This makes liblockdep an integral part of the
      kernel.
      
      It also makes liblockdep quite unique: while other userspace code might
      use sanitized headers, it generally doesn't attempt to use kernel code
      directly which means that changes on the kernel side of things don't
      affect (and break) it directly.
      
      All our workflows and tooling around liblockdep don't support this
      uniqueness. Changes that go into the kernel code aren't validated to not
      break in-tree userspace code.
      
      liblockdep ended up being very fragile, breaking over and over, to the
      point that living in the same tree as the lockdep code lost most of it's
      value.
      
      liblockdep should continue living in an external tree, syncing with
      the kernel often, in a controllable way.
      Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7246f4dc
    • Linus Torvalds's avatar
      thermal: int340x: fix build on 32-bit targets · d9c8e52f
      Linus Torvalds authored
      Commit aeb58c86 ("thermal/drivers/int340x: processor_thermal: Suppot
      64 bit RFIM responses") started using 'readq()' to read 64-bit status
      responses from the int340x hardware.
      
      That's all fine and good, but on 32-bit targets a 64-bit 'readq()' is
      ambiguous, since it's no longer an atomic access.  Some hardware might
      require 64-bit accesses, and other hardware might want low word first or
      high word first.
      
      It's quite likely that the driver isn't relevant in a 32-bit environment
      any more, and there's a patch floating around to just make it depend on
      X86_64, but let's make it buildable on x86-32 anyway.
      
      The driver previously just read the low 32 bits, so the hardware
      certainly is ok with 32-bit reads, and in a little-endian environment
      the low word first model is the natural one.
      
      So just add the include for the 'io-64-nonatomic-lo-hi.h' version.
      
      Fixes: aeb58c86 ("thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses")
      Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
      Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d9c8e52f
    • Paolo Bonzini's avatar
      KVM: SEV: unify cgroup cleanup code for svm_vm_migrate_from · 501cfe06
      Paolo Bonzini authored
      Use the same cleanup code independent of whether the cgroup to be
      uncharged and unref'd is the source or the destination cgroup.  Use a
      bool to track whether the destination cgroup has been charged, which also
      fixes a bug in the error case: the destination cgroup must be uncharged
      only if it does not match the source.
      
      Fixes: b5663931 ("KVM: SEV: Add support for SEV intra host migration")
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      501cfe06
    • Paolo Bonzini's avatar
      KVM: x86: move guest_pv_has out of user_access section · 3e067fd8
      Paolo Bonzini authored
      When UBSAN is enabled, the code emitted for the call to guest_pv_has
      includes a call to __ubsan_handle_load_invalid_value.  objtool
      complains that this call happens with UACCESS enabled; to avoid
      the warning, pull the calls to user_access_begin into both arms
      of the "if" statement, after the check for guest_pv_has.
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3e067fd8
    • Dmitry Torokhov's avatar
      Merge branch 'next' into for-linus · efe6f16c
      Dmitry Torokhov authored
      Prepare input updates for 5.16 merge window.
      efe6f16c
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2021-11-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · b6c24725
      Dave Airlie authored
       * dma-buf: name_lock fixes
       * prime: Keep object ref during mmap
       * nouveau: Fix a refcount issue; Fix device removal; Protect client
         list with dedicated mutex; Fix address CE0 address calculation
       * ttm: Fix race condition during BO eviction
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YYzY6jeox9EeI15i@linux-uq9g.fritz.box
      b6c24725
  3. 11 Nov, 2021 19 commits