Skip to content
Snippets Groups Projects
  1. Mar 05, 2025
  2. Mar 02, 2025
  3. Mar 01, 2025
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 9d20040d
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "Ryan's been hard at work finding and fixing mm bugs in the arm64 code,
        so here's a small crop of fixes for -rc5.
      
        The main changes are to fix our zapping of non-present PTEs for
        hugetlb entries created using the contiguous bit in the page-table
        rather than a block entry at the level above. Prior to these fixes, we
        were pulling the contiguous bit back out of the PTE in order to
        determine the size of the hugetlb page but this is clearly bogus if
        the thing isn't present and consequently both the clearing of the
        PTE(s) and the TLB invalidation were unreliable.
      
        Although the problem was found by code inspection, we really don't
        want this sitting around waiting to trigger and the changes are CC'd
        to stable accordingly.
      
        Note that the diffstat looks a lot worse than it really is;
        huge_ptep_get_and_clear() now takes a size argument from the core code
        and so all the arch implementations of that have been updated in a
        pretty mechanical fashion.
      
         - Fix a sporadic boot failure due to incorrect randomization of the
           linear map on systems that support it
      
         - Fix the zapping (both clearing the entries *and* invalidating the
           TLB) of hugetlb PTEs constructed using the contiguous bit"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: hugetlb: Fix flush_hugetlb_tlb_range() invalidation level
        arm64: hugetlb: Fix huge_ptep_get_and_clear() for non-present ptes
        mm: hugetlb: Add huge page size param to huge_ptep_get_and_clear()
        arm64/mm: Fix Boot panic on Ampere Altra
      9d20040d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · b4b215cf
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "All driver fixes this time:
      
         - fix interrupt initialization sequence (npcm)
      
         - fix frequency setting (ls2x)
      
         - re-enable interrupts properly at irq handler's exit (amd-asf)"
      
      * tag 'i2c-for-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: amd-asf: Fix EOI register write to enable successive interrupts
        i2c: ls2x: Fix frequency division register access
        i2c: npcm: disable interrupt enable bit before devm_request_irq
      b4b215cf
    • Linus Torvalds's avatar
      Merge tag 'ata-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · df87d843
      Linus Torvalds authored
      Pull ata fixes from Niklas Cassel:
      
       - Fix a regression where the enablement of the PHYs would be skipped
         for device trees without any port child nodes (me)
      
       - Revert ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives, as it stops
         systems from entering lower package states. LPM works on newer
         firmware versions. We will need a more refined quirk that only
         targets the older firmware versions (me)
      
      * tag 'ata-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        Revert "ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives"
        ata: ahci: Make ahci_ignore_port() handle empty mask_port_map
      df87d843
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 209cd6f2
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
      
         - Fix TCR_EL2 configuration to not use the ASID in TTBR1_EL2 and not
           mess-up T1SZ/PS by using the HCR_EL2.E2H==0 layout.
      
         - Bring back the VMID allocation to the vcpu_load phase, ensuring
           that we only setup VTTBR_EL2 once on VHE. This cures an ugly race
           that would lead to running with an unallocated VMID.
      
        RISC-V:
      
         - Fix hart status check in SBI HSM extension
      
         - Fix hart suspend_type usage in SBI HSM extension
      
         - Fix error returned by SBI IPI and TIME extensions for unsupported
           function IDs
      
         - Fix suspend_type usage in SBI SUSP extension
      
         - Remove unnecessary vcpu kick after injecting interrupt via IMSIC
           guest file
      
        x86:
      
         - Fix an nVMX bug where KVM fails to detect that, after nested
           VM-Exit, L1 has a pending IRQ (or NMI).
      
         - To avoid freeing the PIC while vCPUs are still around, which would
           cause a NULL pointer access with the previous patch, destroy vCPUs
           before any VM-level destruction.
      
         - Handle failures to create vhost_tasks"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: retry nx_huge_page_recovery_thread creation
        vhost: return task creation error instead of NULL
        KVM: nVMX: Process events on nested VM-Exit if injectable IRQ or NMI is pending
        KVM: x86: Free vCPUs before freeing VM state
        riscv: KVM: Remove unnecessary vcpu kick
        KVM: arm64: Ensure a VMID is allocated before programming VTTBR_EL2
        KVM: arm64: Fix tcr_el2 initialisation in hVHE mode
        riscv: KVM: Fix SBI sleep_type use
        riscv: KVM: Fix SBI TIME error generation
        riscv: KVM: Fix SBI IPI error generation
        riscv: KVM: Fix hart suspend_type use
        riscv: KVM: Fix hart suspend status check
      209cd6f2
    • Niklas Cassel's avatar
      Revert "ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives" · a2f925a2
      Niklas Cassel authored
      This reverts commit cc77e2ce.
      
      It was reported that adding ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives
      breaks entering lower package states for certain systems.
      
      It turns out that Samsung SSD 870 QVO actually has working LPM when using
      a recent SSD firmware version.
      
      The author of commit cc77e2ce ("ata: libata-core: Add ATA_QUIRK_NOLPM
      for Samsung SSD 870 QVO drives") reported himself that only older SSD
      firmware versions have broken LPM:
      https://lore.kernel.org/stable/93c10d38-718c-459d-84a5-4d87680b4da7@debian.org/
      
      
      
      Unfortunately, he did not specify which older firmware version he was using
      which had broken LPM.
      
      Let's revert this quirk, which has FW version field specified as NULL
      (which means that it applies for all Samsung SSD 870 QVO firmware versions)
      for now. Once the author reports which older firmware version(s) that are
      broken, we can create a more fine grained quirk, which populates the FW
      version field accordingly.
      
      Fixes: cc77e2ce ("ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives")
      Reported-by: default avatarDieter Mummenschanz <dmummenschanz@web.de>
      Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219747
      Link: https://lore.kernel.org/r/20250228122603.91814-2-cassel@kernel.org
      
      
      Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
      a2f925a2
    • Keith Busch's avatar
      kvm: retry nx_huge_page_recovery_thread creation · 916b7f42
      Keith Busch authored
      
      A VMM may send a non-fatal signal to its threads, including vCPU tasks,
      at any time, and thus may signal vCPU tasks during KVM_RUN.  If a vCPU
      task receives the signal while its trying to spawn the huge page recovery
      vhost task, then KVM_RUN will fail due to copy_process() returning
      -ERESTARTNOINTR.
      
      Rework call_once() to mark the call complete if and only if the called
      function succeeds, and plumb the function's true error code back to the
      call_once() invoker.  This provides userspace with the correct, non-fatal
      error code so that the VMM doesn't terminate the VM on -ENOMEM, and allows
      subsequent KVM_RUN a succeed by virtue of retrying creation of the NX huge
      page task.
      
      Co-developed-by: default avatarSean Christopherson <seanjc@google.com>
      Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
      [implemented the kvm user side]
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Message-ID: <20250227230631.303431-3-kbusch@meta.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      916b7f42
    • Keith Busch's avatar
      vhost: return task creation error instead of NULL · cb380909
      Keith Busch authored
      
      Lets callers distinguish why the vhost task creation failed. No one
      currently cares why it failed, so no real runtime change from this
      patch, but that will not be the case for long.
      
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Message-ID: <20250227230631.303431-2-kbusch@meta.com>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      cb380909
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 03d38806
      Linus Torvalds authored
      Pull thermal control fixes from Rafael Wysocki:
       "These fix the processing of DT thermal properties and the Power
        Allocator thermal governor:
      
         - Fix parsing cooling-maps in DT for trip points with more than one
           cooling device (Rafael Wysocki)
      
         - Fix granted_power computation in the Power Allocator thermal
           governor and make it update total_weight on configuration changes
           after the thermal zone has been registered (Yu-Che Cheng)"
      
      * tag 'thermal-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: gov_power_allocator: Update total_weight on bind and cdev updates
        thermal/of: Fix cdev lookup in thermal_of_should_bind()
        thermal: gov_power_allocator: Fix incorrect calculation in divvy_up_power()
      03d38806
    • Linus Torvalds's avatar
      Merge tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 14ebe690
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix the handling of processors that stop the TSC in deeper C-states in
        the intel_idle driver (Thomas Gleixner)"
      
      * tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        intel_idle: Handle older CPUs, which stop the TSC in deeper C states, correctly
      14ebe690
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7a566889
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
      
       - Fix conflicts between devicetree and ACPI SMP discovery & setup
      
       - Fix a warm-boot lockup on AMD SC1100 SoC systems
      
       - Fix a W=1 build warning related to x86 IRQ trace event setup
      
       - Fix a kernel-doc warning
      
      * tag 'x86-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/entry: Fix kernel-doc warning
        x86/irq: Define trace events conditionally
        x86/CPU: Fix warm boot hang regression on AMD SC1100 SoC systems
        x86/of: Don't use DTB for SMP setup if ACPI is enabled
      7a566889
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d203484f
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Prevent cond_resched() based preemption when interrupts are disabled,
        on PREEMPT_NONE and PREEMPT_VOLUNTARY kernels"
      
      * tag 'sched-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Prevent rescheduling when interrupts are disabled
      d203484f
Loading