1. 05 Jun, 2024 15 commits
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 55335259
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix the ACPI EC and AC drivers, the ACPI APEI error injection
        driver and build issues related to the dev_is_pnp() macro referring to
        pnp_bus_type that is not exported to modules.
      
        Specifics:
      
         - Fix error handling during EC operation region accesses in the ACPI
           EC driver (Armin Wolf)
      
         - Fix a memory leak in the APEI error injection driver introduced
           during its converion to a platform driver (Dan Williams)
      
         - Fix build failures related to the dev_is_pnp() macro by redefining
           it as a proper function and exporting it to modules as appropriate
           and unexport pnp_bus_type which need not be exported any more (Andy
           Shevchenko)
      
         - Update the ACPI AC driver to use power_supply_changed() to let the
           power supply core handle configuration changes properly (Thomas
           Weißschuh)"
      
      * tag 'acpi-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: AC: Properly notify powermanagement core about changes
        PNP: Hide pnp_bus_type from the non-PNP code
        PNP: Make dev_is_pnp() to be a function and export it for modules
        ACPI: EC: Avoid returning AE_OK on errors in address space handler
        ACPI: EC: Abort address space access upon error
        ACPI: APEI: EINJ: Fix einj_dev release leak
      55335259
    • Linus Torvalds's avatar
      Merge tag 'pm-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 64c6a36d
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix the intel_pstate and amd-pstate cpufreq drivers and the
        cpupower utility.
      
        Specifics:
      
         - Fix a recently introduced unchecked HWP MSR access in the
           intel_pstate driver (Srinivas Pandruvada)
      
         - Add missing conversion from MHz to KHz to amd_pstate_set_boost() to
           address sysfs inteface inconsistency and fix P-state frequency
           reporting on AMD Family 1Ah CPUs in the cpupower utility (Dhananjay
           Ugwekar)
      
         - Get rid of an excess global header file used by the amd-pstate
           cpufreq driver (Arnd Bergmann)"
      
      * tag 'pm-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: intel_pstate: Fix unchecked HWP MSR access
        cpufreq: amd-pstate: Fix the inconsistency in max frequency units
        cpufreq: amd-pstate: remove global header file
        tools/power/cpupower: Fix Pstate frequency reporting on AMD Family 1Ah CPUs
      64c6a36d
    • Linus Torvalds's avatar
      Merge tag 'for-6.10-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 19ca0d8a
      Linus Torvalds authored
      Pull btrfs fix from David Sterba:
       "A fix for fast fsync that needs to handle errors during writes after
        some COW failure so it does not lead to an inconsistent state"
      
      * tag 'for-6.10-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: ensure fast fsync waits for ordered extents after a write failure
      19ca0d8a
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-06-05' of https://evilpiepirate.org/git/bcachefs · e20b269d
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "Just a few small fixes"
      
      * tag 'bcachefs-2024-06-05' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: Fix trans->locked assert
        bcachefs: Rereplicate now moves data off of durability=0 devices
        bcachefs: Fix GFP_KERNEL allocation in break_cycle()
      e20b269d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 558dc49a
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "This should have been my second pull request during the merge window
        but one dependency in the drm subsystem fell through the cracks and
        was only applied for rc2.
      
        Now we can finally remove I2C_CLASS_SPD"
      
      * tag 'i2c-for-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: Remove I2C_CLASS_SPD
        i2c: synquacer: Remove a clk reference from struct synquacer_i2c
      558dc49a
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd · 208d9b65
      Linus Torvalds authored
      Pull tpm fixes from Jarkko Sakkinen:
       "The bug fix for tpm_tis_core_init() is not that critical but still
        makes sense to get into release for the sake of better quality.
      
        I included the Intel CPU model define change mainly to help Tony just
        a bit, as for this subsystem it cannot realistically speaking cause
        any possible harm"
      
      * tag 'tpmdd-next-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        tpm: Switch to new Intel CPU model defines
        tpm_tis: Do *not* flush uninitialized work
      208d9b65
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 71d7b52c
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "This is dominated by a couple large series for ARM and x86
        respectively, but apart from that things are calm.
      
        ARM:
      
         - Large set of FP/SVE fixes for pKVM, addressing the fallout from the
           per-CPU data rework and making sure that the host is not involved
           in the FP/SVE switching any more
      
         - Allow FEAT_BTI to be enabled with NV now that FEAT_PAUTH is
           completely supported
      
         - Fix for the respective priorities of Failed PAC, Illegal Execution
           state and Instruction Abort exceptions
      
         - Fix the handling of AArch32 instruction traps failing their
           condition code, which was broken by the introduction of
           ESR_EL2.ISS2
      
         - Allow vcpus running in AArch32 state to be restored in System mode
      
         - Fix AArch32 GPR restore that would lose the 64 bit state under some
           conditions
      
        RISC-V:
      
         - No need to use mask when hart-index-bits is 0
      
         - Fix incorrect reg_subtype labels in
           kvm_riscv_vcpu_set_reg_isa_ext()
      
        x86:
      
         - Fixes and debugging help for the #VE sanity check.
      
           Also disable it by default, even for CONFIG_DEBUG_KERNEL, because
           it was found to trigger spuriously (most likely a processor erratum
           as the exact symptoms vary by generation).
      
         - Avoid WARN() when two NMIs arrive simultaneously during an
           NMI-disabled situation (GIF=0 or interrupt shadow) when the
           processor supports virtual NMI.
      
           While generally KVM will not request an NMI window when virtual
           NMIs are supported, in this case it *does* have to single-step over
           the interrupt shadow or enable the STGI intercept, in order to
           deliver the latched second NMI.
      
         - Drop support for hand tuning APIC timer advancement from userspace.
      
           Since we have adaptive tuning, and it has proved to work well, drop
           the module parameter for manual configuration and with it a few
           stupid bugs that it had"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (32 commits)
        KVM: x86/mmu: Don't save mmu_invalidate_seq after checking private attr
        KVM: arm64: Ensure that SME controls are disabled in protected mode
        KVM: arm64: Refactor CPACR trap bit setting/clearing to use ELx format
        KVM: arm64: Consolidate initializing the host data's fpsimd_state/sve in pKVM
        KVM: arm64: Eagerly restore host fpsimd/sve state in pKVM
        KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM
        KVM: arm64: Specialize handling of host fpsimd state on trap
        KVM: arm64: Abstract set/clear of CPTR_EL2 bits behind helper
        KVM: arm64: Fix prototype for __sve_save_state/__sve_restore_state
        KVM: arm64: Reintroduce __sve_save_state
        KVM: x86: Drop support for hand tuning APIC timer advancement from userspace
        KVM: SEV-ES: Delegate LBR virtualization to the processor
        KVM: SEV-ES: Disallow SEV-ES guests when X86_FEATURE_LBRV is absent
        KVM: SEV-ES: Prevent MSR access post VMSA encryption
        RISC-V: KVM: Fix incorrect reg_subtype labels in kvm_riscv_vcpu_set_reg_isa_ext function
        RISC-V: KVM: No need to use mask when hart-index-bit is 0
        KVM: arm64: nv: Expose BTI and CSV_frac to a guest hypervisor
        KVM: arm64: nv: Fix relative priorities of exceptions generated by ERETAx
        KVM: arm64: AArch32: Fix spurious trapping of conditional instructions
        KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
        ...
      71d7b52c
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · 9b7e7ff0
      Rafael J. Wysocki authored
      Merge cpufreq fixes for 6.10-rc3:
      
       - Fix a recently introduced unchecked HWP MSR access in the
         intel_pstate driver (Srinivas Pandruvada).
      
       - Add missing conversion from MHz to KHz to amd_pstate_set_boost()
         to address sysfs inteface inconsistency (Dhananjay Ugwekar).
      
       - Get rid of an excess global header file used by the amd-pstate
         cpufreq driver (Arnd Bergmann).
      
      * pm-cpufreq:
        cpufreq: intel_pstate: Fix unchecked HWP MSR access
        cpufreq: amd-pstate: Fix the inconsistency in max frequency units
        cpufreq: amd-pstate: remove global header file
      9b7e7ff0
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-ec', 'acpi-apei' and 'pnp' · 1bfc0835
      Rafael J. Wysocki authored
      Merge ACPI EC driver fixes, an ACPI APEI fix and PNP fixes for
      6.10-rc3:
      
       - Fix error handling during EC operation region accesses in the ACPI EC
         driver (Armin Wolf).
      
       - Fix a memory leak in the APEI error injection driver introduced
         during its converion to a platform driver (Dan Williams).
      
       - Fix build failures related to the dev_is_pnp() macro by redefining it
         as a proper function and exporting it to modules as appropriate and
         unexport pnp_bus_type which need not be exported any more (Andy
         Shevchenko).
      
      * acpi-ec:
        ACPI: EC: Avoid returning AE_OK on errors in address space handler
        ACPI: EC: Abort address space access upon error
      
      * acpi-apei:
        ACPI: APEI: EINJ: Fix einj_dev release leak
      
      * pnp:
        PNP: Hide pnp_bus_type from the non-PNP code
        PNP: Make dev_is_pnp() to be a function and export it for modules
      1bfc0835
    • Kent Overstreet's avatar
      bcachefs: Fix trans->locked assert · 319fef29
      Kent Overstreet authored
      in bch2_move_data_btree, we might start with the trans unlocked from a
      previous loop iteration - we need a trans_begin() before iter_init().
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      319fef29
    • Kent Overstreet's avatar
      bcachefs: Rereplicate now moves data off of durability=0 devices · fdccb243
      Kent Overstreet authored
      This fixes an issue where setting a device to durability=0 after it's
      been used makes it impossible to remove.
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      fdccb243
    • Kent Overstreet's avatar
    • Tao Su's avatar
      KVM: x86/mmu: Don't save mmu_invalidate_seq after checking private attr · db574f2f
      Tao Su authored
      Drop the second snapshot of mmu_invalidate_seq in kvm_faultin_pfn().
      Before checking the mismatch of private vs. shared, mmu_invalidate_seq is
      saved to fault->mmu_seq, which can be used to detect an invalidation
      related to the gfn occurred, i.e. KVM will not install a mapping in page
      table if fault->mmu_seq != mmu_invalidate_seq.
      
      Currently there is a second snapshot of mmu_invalidate_seq, which may not
      be same as the first snapshot in kvm_faultin_pfn(), i.e. the gfn attribute
      may be changed between the two snapshots, but the gfn may be mapped in
      page table without hindrance. Therefore, drop the second snapshot as it
      has no obvious benefits.
      
      Fixes: f6adeae8 ("KVM: x86/mmu: Handle no-slot faults at the beginning of kvm_faultin_pfn()")
      Signed-off-by: default avatarTao Su <tao1.su@linux.intel.com>
      Message-ID: <20240528102234.2162763-1-tao1.su@linux.intel.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      db574f2f
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-6.10-1' of... · 45ce0314
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
      
      KVM/arm64 fixes for 6.10, take #1
      
      - Large set of FP/SVE fixes for pKVM, addressing the fallout
        from the per-CPU data rework and making sure that the host
        is not involved in the FP/SVE switching any more
      
      - Allow FEAT_BTI to be enabled with NV now that FEAT_PAUTH
        is copletely supported
      
      - Fix for the respective priorities of Failed PAC, Illegal
        Execution state and Instruction Abort exceptions
      
      - Fix the handling of AArch32 instruction traps failing their
        condition code, which was broken by the introduction of
        ESR_EL2.ISS2
      
      - Allow vpcus running in AArch32 state to be restored in
        System mode
      
      - Fix AArch32 GPR restore that would lose the 64 bit state
        under some conditions
      45ce0314
    • Tony Luck's avatar
      tpm: Switch to new Intel CPU model defines · f071d02e
      Tony Luck authored
      New CPU #defines encode vendor and family as well as model.
      
      Link: https://lore.kernel.org/all/20240520224620.9480-4-tony.luck@intel.com/Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      f071d02e
  2. 04 Jun, 2024 12 commits
  3. 03 Jun, 2024 13 commits