1. 23 Feb, 2024 5 commits
    • WANG Xuerui's avatar
      LoongArch: KVM: Fix input validation of _kvm_get_cpucfg() & kvm_check_cpucfg() · 179af575
      WANG Xuerui authored
      The range check for the CPUCFG ID is wrong (should have been a ||
      instead of &&) and useless in effect, so fix the obvious mistake.
      
      Furthermore, the juggling of the temp return value is unnecessary,
      because it is semantically equivalent and more readable to just
      return at every switch case's end. This is done too to avoid potential
      bugs in the future related to the unwanted complexity.
      
      Also, the return value of _kvm_get_cpucfg is meant to be checked, but
      this was not done, so bad CPUCFG IDs wrongly fall back to the default
      case and 0 is incorrectly returned; check the return value to fix the
      UAPI behavior.
      
      While at it, also remove the redundant range check in kvm_check_cpucfg,
      because out-of-range CPUCFG IDs are already rejected by the -EINVAL
      as returned by _kvm_get_cpucfg().
      
      Fixes: db1ecca2 ("LoongArch: KVM: Add LSX (128bit SIMD) support")
      Fixes: 118e10cd ("LoongArch: KVM: Add LASX (256bit SIMD) support")
      Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      179af575
    • Krzysztof Kozlowski's avatar
      LoongArch: dts: Minor whitespace cleanup · f661ca40
      Krzysztof Kozlowski authored
      The DTS code coding style expects exactly one space before '{'
      character.
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      f661ca40
    • Huacai Chen's avatar
      LoongArch: Call early_init_fdt_scan_reserved_mem() earlier · 9fa304b9
      Huacai Chen authored
      The unflatten_and_copy_device_tree() function contains a call to
      memblock_alloc(). This means that memblock is allocating memory before
      any of the reserved memory regions are set aside in the arch_mem_init()
      function which calls early_init_fdt_scan_reserved_mem(). Therefore,
      there is a possibility for memblock to allocate from any of the
      reserved memory regions.
      
      Hence, move the call to early_init_fdt_scan_reserved_mem() to be earlier
      in the init sequence, so that the reserved memory regions are set aside
      before any allocations are done using memblock.
      
      Cc: stable@vger.kernel.org
      Fixes: 88d4d957 ("LoongArch: Add FDT booting support from efi system table")
      Signed-off-by: default avatarOreoluwa Babatunde <quic_obabatun@quicinc.com>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      9fa304b9
    • Huacai Chen's avatar
      LoongArch: Update cpu_sibling_map when disabling nonboot CPUs · 752cd08d
      Huacai Chen authored
      Update cpu_sibling_map when disabling nonboot CPUs by defining & calling
      clear_cpu_sibling_map(), otherwise we get such errors on SMT systems:
      
      jump label: negative count!
      WARNING: CPU: 6 PID: 45 at kernel/jump_label.c:263 __static_key_slow_dec_cpuslocked+0xec/0x100
      CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340
      pc 90000000004c302c ra 90000000004c302c tp 90000001005bc000 sp 90000001005bfd20
      a0 000000000000001b a1 900000000224c278 a2 90000001005bfb58 a3 900000000224c280
      a4 900000000224c278 a5 90000001005bfb50 a6 0000000000000001 a7 0000000000000001
      t0 ce87a4763eb5234a t1 ce87a4763eb5234a t2 0000000000000000 t3 0000000000000000
      t4 0000000000000006 t5 0000000000000000 t6 0000000000000064 t7 0000000000001964
      t8 000000000009ebf6 u0 9000000001f2a068 s9 0000000000000000 s0 900000000246a2d8
      s1 ffffffffffffffff s2 ffffffffffffffff s3 90000000021518c0 s4 0000000000000040
      s5 9000000002151058 s6 9000000009828e40 s7 00000000000000b4 s8 0000000000000006
         ra: 90000000004c302c __static_key_slow_dec_cpuslocked+0xec/0x100
        ERA: 90000000004c302c __static_key_slow_dec_cpuslocked+0xec/0x100
       CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
       PRMD: 00000004 (PPLV0 +PIE -PWE)
       EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
       ECFG: 00071c1c (LIE=2-4,10-12 VS=7)
      ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0)
       PRID: 0014d000 (Loongson-64bit, Loongson-3A6000-HV)
      CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340
      Stack : 0000000000000000 900000000203f258 900000000179afc8 90000001005bc000
              90000001005bf980 0000000000000000 90000001005bf988 9000000001fe0be0
              900000000224c280 900000000224c278 90000001005bf8c0 0000000000000001
              0000000000000001 ce87a4763eb5234a 0000000007f38000 90000001003f8cc0
              0000000000000000 0000000000000006 0000000000000000 4c206e6f73676e6f
              6f4c203a656d616e 000000000009ec99 0000000007f38000 0000000000000000
              900000000214b000 9000000001fe0be0 0000000000000004 0000000000000000
              0000000000000107 0000000000000009 ffffffffffafdabe 00000000000000b4
              0000000000000006 90000000004c302c 9000000000224528 00005555939a0c7c
              00000000000000b0 0000000000000004 0000000000000000 0000000000071c1c
              ...
      Call Trace:
      [<9000000000224528>] show_stack+0x48/0x1a0
      [<900000000179afc8>] dump_stack_lvl+0x78/0xa0
      [<9000000000263ed0>] __warn+0x90/0x1a0
      [<90000000017419b8>] report_bug+0x1b8/0x280
      [<900000000179c564>] do_bp+0x264/0x420
      [<90000000004c302c>] __static_key_slow_dec_cpuslocked+0xec/0x100
      [<90000000002b4d7c>] sched_cpu_deactivate+0x2fc/0x300
      [<9000000000266498>] cpuhp_invoke_callback+0x178/0x8a0
      [<9000000000267f70>] cpuhp_thread_fun+0xf0/0x240
      [<90000000002a117c>] smpboot_thread_fn+0x1dc/0x2e0
      [<900000000029a720>] kthread+0x140/0x160
      [<9000000000222288>] ret_from_kernel_thread+0xc/0xa4
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      752cd08d
    • Huacai Chen's avatar
      LoongArch: Disable IRQ before init_fn() for nonboot CPUs · 1001db6c
      Huacai Chen authored
      Disable IRQ before init_fn() for nonboot CPUs when hotplug, in order to
      silence such warnings (and also avoid potential errors due to unexpected
      interrupts):
      
      WARNING: CPU: 1 PID: 0 at kernel/rcu/tree.c:4503 rcu_cpu_starting+0x214/0x280
      CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198
      pc 90000000048e3334 ra 90000000047bd56c tp 900000010039c000 sp 900000010039fdd0
      a0 0000000000000001 a1 0000000000000006 a2 900000000802c040 a3 0000000000000000
      a4 0000000000000001 a5 0000000000000004 a6 0000000000000000 a7 90000000048e3f4c
      t0 0000000000000001 t1 9000000005c70968 t2 0000000004000000 t3 000000000005e56e
      t4 00000000000002e4 t5 0000000000001000 t6 ffffffff80000000 t7 0000000000040000
      t8 9000000007931638 u0 0000000000000006 s9 0000000000000004 s0 0000000000000001
      s1 9000000006356ac0 s2 9000000007244000 s3 0000000000000001 s4 0000000000000001
      s5 900000000636f000 s6 7fffffffffffffff s7 9000000002123940 s8 9000000001ca55f8
         ra: 90000000047bd56c tlb_init+0x24c/0x528
        ERA: 90000000048e3334 rcu_cpu_starting+0x214/0x280
       CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
       PRMD: 00000000 (PPLV0 -PIE -PWE)
       EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
       ECFG: 00071000 (LIE=12 VS=7)
      ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0)
       PRID: 0014c010 (Loongson-64bit, Loongson-3A5000)
      CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198
      Stack : 0000000000000000 9000000006375000 9000000005b61878 900000010039c000
              900000010039fa30 0000000000000000 900000010039fa38 900000000619a140
              9000000006456888 9000000006456880 900000010039f950 0000000000000001
              0000000000000001 cb0cb028ec7e52e1 0000000002b90000 9000000100348700
              0000000000000000 0000000000000001 ffffffff916d12f1 0000000000000003
              0000000000040000 9000000007930370 0000000002b90000 0000000000000004
              9000000006366000 900000000619a140 0000000000000000 0000000000000004
              0000000000000000 0000000000000009 ffffffffffc681f2 9000000002123940
              9000000001ca55f8 9000000006366000 90000000047a4828 00007ffff057ded8
              00000000000000b0 0000000000000000 0000000000000000 0000000000071000
              ...
      Call Trace:
      [<90000000047a4828>] show_stack+0x48/0x1a0
      [<9000000005b61874>] dump_stack_lvl+0x84/0xcc
      [<90000000047f60ac>] __warn+0x8c/0x1e0
      [<9000000005b0ab34>] report_bug+0x1b4/0x280
      [<9000000005b63110>] do_bp+0x2d0/0x480
      [<90000000047a2e20>] handle_bp+0x120/0x1c0
      [<90000000048e3334>] rcu_cpu_starting+0x214/0x280
      [<90000000047bd568>] tlb_init+0x248/0x528
      [<90000000047a4c44>] per_cpu_trap_init+0x124/0x160
      [<90000000047a19f4>] cpu_probe+0x494/0xa00
      [<90000000047b551c>] start_secondary+0x3c/0xc0
      [<9000000005b66134>] smpboot_entry+0x50/0x58
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      1001db6c
  2. 18 Feb, 2024 6 commits
    • Linus Torvalds's avatar
      Linux 6.8-rc5 · b401b621
      Linus Torvalds authored
      b401b621
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.8-2' of... · 6c160f16
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Reformat nested if-conditionals in Makefiles with 4 spaces
      
       - Fix CONFIG_DEBUG_INFO_BTF builds for big endian
      
       - Fix modpost for module srcversion
      
       - Fix an escape sequence warning in gen_compile_commands.py
      
       - Fix kallsyms to ignore ARMv4 thunk symbols
      
      * tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kallsyms: ignore ARMv4 thunks along with others
        modpost: trim leading spaces when processing source files list
        gen_compile_commands: fix invalid escape sequence warning
        kbuild: Fix changing ELF file type for output of gen_btf for big endian
        docs: kconfig: Fix grammar and formatting
        kbuild: use 4-space indentation when followed by conditionals
      6c160f16
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ddac3d8b
      Linus Torvalds authored
      Pull x86 fix from Borislav Petkov:
      
       - Use a GB page for identity mapping only when memory of this size is
         requested so that mapping of reserved regions is prevented which
         would otherwise lead to system crashes on UV machines
      
      * tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
      ddac3d8b
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cb7c32d
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Fix GICv4.1 affinity update
      
       - Restore a quirk for ACPI-based GICv4 systems
      
       - Handle non-coherent GICv4 redistributors properly
      
       - Prevent spurious interrupts on Broadcom devices using GIC v3
         architecture
      
       - Other minor fixes
      
      * tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
        irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
        irqchip/gic-v3-its: Handle non-coherent GICv4 redistributors
        irqchip/qcom-mpm: Fix IS_ERR() vs NULL check in qcom_mpm_init()
        irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
        irqchip/irq-brcmstb-l2: Add write memory barrier before exit
      7cb7c32d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 626721ed
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Two fixes for i801 and qcom-geni devices. Meanwhile, a fix from Arnd
        addresses a compilation error encountered during compile test on
        powerpc"
      
      * tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: i801: Fix block process call transactions
        i2c: pasemi: split driver into two separate modules
        i2c: qcom-geni: Correct I2C TRE sequence
      626721ed
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · c02197fc
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "This is a bit of a big batch for rc4, but just due to holiday hangover
        and because I didn't send any fixes last week due to a late revert
        request. I think next week should be back to normal.
      
         - Fix ftrace bug on boot caused by exit text sections with
           '-fpatchable-function-entry'
      
         - Fix accuracy of stolen time on pseries since the switch to
           VIRT_CPU_ACCOUNTING_GEN
      
         - Fix a crash in the IOMMU code when doing DLPAR remove
      
         - Set pt_regs->link on scv entry to fix BPF stack unwinding
      
         - Add missing PPC_FEATURE_BOOKE on 64-bit e5500/e6500, which broke
           gdb
      
         - Fix boot on some 6xx platforms with STRICT_KERNEL_RWX enabled
      
         - Fix build failures with KASAN enabled and 32KB stack size
      
         - Some other minor fixes
      
        Thanks to Arnd Bergmann, Benjamin Gray, Christophe Leroy, David
        Engraf, Gaurav Batra, Jason Gunthorpe, Jiangfeng Xiao, Matthias
        Schiffer, Nathan Lynch, Naveen N Rao, Nicholas Piggin, Nysal Jan K.A,
        R Nageswara Sastry, Shivaprasad G Bhat, Shrikanth Hegde, Spoorthy,
        Srikar Dronamraju, and Venkat Rao Bagalkote"
      
      * tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/iommu: Fix the missing iommu_group_put() during platform domain attach
        powerpc/pseries: fix accuracy of stolen time
        powerpc/ftrace: Ignore ftrace locations in exit text sections
        powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E
        powerpc/kasan: Limit KASAN thread size increase to 32KB
        Revert "powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add"
        powerpc: 85xx: mark local functions static
        powerpc: udbg_memcons: mark functions static
        powerpc/kasan: Fix addr error caused by page alignment
        powerpc/6xx: set High BAT Enable flag on G2_LE cores
        selftests/powerpc/papr_vpd: Check devfd before get_system_loc_code()
        powerpc/64: Set task pt_regs->link to the LR value on scv entry
        powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add
        powerpc/pseries/papr-sysparm: use u8 arrays for payloads
      c02197fc
  3. 17 Feb, 2024 12 commits
  4. 16 Feb, 2024 17 commits
    • Siddharth Vadapalli's avatar
      MAINTAINERS: Add Siddharth Vadapalli as PCI TI DRA7XX/J721E reviewer · 172c0cf5
      Siddharth Vadapalli authored
      Since I have been contributing to the driver for a while and wish to help
      with the review process, add myself as a reviewer.
      
      Link: https://lore.kernel.org/r/20240216065926.473805-1-s-vadapalli@ti.comSigned-off-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      172c0cf5
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · c1ca10ce
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Three fixes: the two fnic ones are a revert and a refix, which is why
        the diffstat is a bit big. The target one also extracts a function to
        add a check for configuration and so looks bigger than it is"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: fnic: Move fnic_fnic_flush_tx() to a work queue
        scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
        scsi: target: Fix unmap setup during configuration
      c1ca10ce
    • Linus Torvalds's avatar
      Merge tag 'wq-for-6.8-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 975b26ab
      Linus Torvalds authored
      Pull workqueue fix from Tejun Heo:
       "Just one patch to revert commit ca10d851 ("workqueue: Override
        implicit ordered attribute in workqueue_apply_unbound_cpumask()").
      
        This commit could break ordering guarantees for ordered workqueues.
        The problem that the commit tried to resolve partially - making
        ordered workqueues follow unbound cpumask - is fully solved in
        wq/for-6.9 branch"
      
      * tag 'wq-for-6.8-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        Revert "workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()"
      975b26ab
    • Linus Torvalds's avatar
      Merge tag 'block-6.8-2024-02-16' of git://git.kernel.dk/linux · 7edfe0aa
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Just an nvme pull request via Keith:
      
         - Fabrics connection error handling (Chaitanya)
      
         - Use relaxed effects to reduce unnecessary queue freezes (Keith)"
      
      * tag 'block-6.8-2024-02-16' of git://git.kernel.dk/linux:
        nvmet: remove superfluous initialization
        nvme: implement support for relaxed effects
        nvme-fabrics: fix I/O connect error handling
      7edfe0aa
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.8-2024-02-16' of git://git.kernel.dk/linux · 80960150
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single fix for a regression in how overflow is handled for
        multishot accept requests"
      
      * tag 'io_uring-6.8-2024-02-16' of git://git.kernel.dk/linux:
        io_uring/net: fix multishot accept overflow handling
      80960150
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.8-rc5' of https://github.com/ceph/ceph-client · 3f9c1b31
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "Additional cap handling fixes from Xiubo to avoid "client isn't
        responding to mclientcaps(revoke)" stalls on the MDS side"
      
      * tag 'ceph-for-6.8-rc5' of https://github.com/ceph/ceph-client:
        ceph: add ceph_cap_unlink_work to fire check_caps() immediately
        ceph: always queue a writeback when revoking the Fb caps
      3f9c1b31
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 683b783c
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "ARM:
      
         - Avoid dropping the page refcount twice when freeing an unlinked
           page-table subtree.
      
         - Don't source the VFIO Kconfig twice
      
         - Fix protected-mode locking order between kvm and vcpus
      
        RISC-V:
      
         - Fix steal-time related sparse warnings
      
        x86:
      
         - Cleanup gtod_is_based_on_tsc() to return "bool" instead of an "int"
      
         - Make a KVM_REQ_NMI request while handling KVM_SET_VCPU_EVENTS if
           and only if the incoming events->nmi.pending is non-zero. If the
           target vCPU is in the UNITIALIZED state, the spurious request will
           result in KVM exiting to userspace, which in turn causes QEMU to
           constantly acquire and release QEMU's global mutex, to the point
           where the BSP is unable to make forward progress.
      
         - Fix a type (u8 versus u64) goof that results in pmu->fixed_ctr_ctrl
           being incorrectly truncated, and ultimately causes KVM to think a
           fixed counter has already been disabled (KVM thinks the old value
           is '0').
      
         - Fix a stack leak in KVM_GET_MSRS where a failed MSR read from
           userspace that is ultimately ignored due to ignore_msrs=true
           doesn't zero the output as intended.
      
        Selftests cleanups and fixes:
      
         - Remove redundant newlines from error messages.
      
         - Delete an unused variable in the AMX test (which causes build
           failures when compiling with -Werror).
      
         - Fail instead of skipping tests if open(), e.g. of /dev/kvm, fails
           with an error code other than ENOENT (a Hyper-V selftest bug
           resulted in an EMFILE, and the test eventually got skipped).
      
         - Fix TSC related bugs in several Hyper-V selftests.
      
         - Fix a bug in the dirty ring logging test where a sem_post() could
           be left pending across multiple runs, resulting in incorrect
           synchronization between the main thread and the vCPU worker thread.
      
         - Relax the dirty log split test's assertions on 4KiB mappings to fix
           false positives due to the number of mappings for memslot 0 (used
           for code and data that is NOT being dirty logged) changing, e.g.
           due to NUMA balancing"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (25 commits)
        KVM: arm64: Fix double-free following kvm_pgtable_stage2_free_unlinked()
        RISC-V: KVM: Use correct restricted types
        RISC-V: paravirt: Use correct restricted types
        RISC-V: paravirt: steal_time should be static
        KVM: selftests: Don't assert on exact number of 4KiB in dirty log split test
        KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test
        KVM: x86: Fix KVM_GET_MSRS stack info leak
        KVM: arm64: Do not source virt/lib/Kconfig twice
        KVM: x86/pmu: Fix type length error when reading pmu->fixed_ctr_ctrl
        KVM: x86: Make gtod_is_based_on_tsc() return 'bool'
        KVM: selftests: Make hyperv_clock require TSC based system clocksource
        KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too
        KVM: selftests: Use generic sys_clocksource_is_tsc() in vmx_nested_tsc_scaling_test
        KVM: selftests: Generalize check_clocksource() from kvm_clock_test
        KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu
        KVM: arm64: Fix circular locking dependency
        KVM: selftests: Fail tests when open() fails with !ENOENT
        KVM: selftests: Avoid infinite loop in hyperv_features when invtsc is missing
        KVM: selftests: Delete superfluous, unused "stage" variable in AMX test
        KVM: selftests: x86_64: Remove redundant newlines
        ...
      683b783c
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 4b6f7c62
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix the #ifndef that didn't have the 'CONFIG_' prefix on
         HAVE_DYNAMIC_FTRACE_WITH_REGS
      
         The fix to have dynamic trampolines work with x86 broke arm64 as the
         config used in the #ifdef was HAVE_DYNAMIC_FTRACE_WITH_REGS and not
         CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS which removed the fix that the
         previous fix was to fix.
      
       - Fix tracing_on state
      
         The code to test if "tracing_on" is set incorrectly used
         ring_buffer_record_is_on() which returns false if the ring buffer
         isn't able to be written to.
      
         But the ring buffer disable has several bits that disable it. One is
         internal disabling which is used for resizing and other modifications
         of the ring buffer. But the "tracing_on" user space visible flag
         should only report if tracing is actually on and not internally
         disabled, as this can cause confusion as writing "1" when it is
         disabled will not enable it.
      
         Instead use ring_buffer_record_is_set_on() which shows the user space
         visible settings.
      
       - Fix a false positive kmemleak on saved cmdlines
      
         Now that the saved_cmdlines structure is allocated via alloc_page()
         and not via kmalloc() it has become invisible to kmemleak. The
         allocation done to one of its pointers was flagged as a dangling
         allocation leak. Make kmemleak aware of this allocation and free.
      
       - Fix synthetic event dynamic strings
      
         An update that cleaned up the synthetic event code removed the return
         value of trace_string(), and had it return zero instead of the
         length, causing dynamic strings in the synthetic event to always have
         zero size.
      
       - Clean up documentation and header files for seq_buf
      
      * tag 'trace-v6.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        seq_buf: Fix kernel documentation
        seq_buf: Don't use "proxy" headers
        tracing/synthetic: Fix trace_string() return value
        tracing: Inform kmemleak of saved_cmdlines allocation
        tracing: Use ring_buffer_record_is_set_on() in tracer_tracing_is_on()
        tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef
      4b6f7c62
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 3f3f64cb
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "It's a little busier than normal, but it's still not a lot of code and
        things seem fairly quiet in general:
      
         - Fix allocation failure during SVE coredumps
      
         - Fix handling of SVE context on signal delivery
      
         - Enable Neoverse N2 CPU errata workarounds for Microsoft's "Azure
           Cobalt 100" clone
      
         - Work around CMN PMU erratum in AmpereOneX implementation
      
         - Fix typo in CXL PMU event definition
      
         - Fix jump label asm constraints"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64/sve: Lower the maximum allocation for the SVE ptrace regset
        arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata
        perf/arm-cmn: Workaround AmpereOneX errata AC04_MESH_1 (incorrect child count)
        arm64: jump_label: use constraints "Si" instead of "i"
        arm64: fix typo in comments
        perf: CXL: fix mismatched cpmu event opcode
        arm64/signal: Don't assume that TIF_SVE means we saved SVE state
      3f3f64cb
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · efb0b63a
      Linus Torvalds authored
      Pull zonefs fix from Damien Le Moal:
      
       - Fix direct write error handling to avoid a race between failed IO
         completion and the submission path itself which can result in an
         invalid file size exposed to the user after the failed IO.
      
      * tag 'zonefs-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: Improve error handling
      efb0b63a
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-6.8-2' of... · 9895ceeb
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
      
      KVM/arm64 fixes for 6.8, take #2
      
      - Avoid dropping the page refcount twice when freeing an unlinked
        page-table subtree.
      9895ceeb
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-6.8-1' of... · 8046fa5f
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
      
      KVM/arm64 fixes for 6.8, take #1
      
      - Don't source the VFIO Kconfig twice
      
      - Fix protected-mode locking order between kvm and vcpus
      8046fa5f
    • Linus Torvalds's avatar
      Merge tag 'sound-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 0f1dd5e9
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of device-specific fixes. It became a bit bigger than
        wished, but all look reasonably small and safe to apply.
      
         - A few Cirrus Logic CS35L56 and CS42L43 driver fixes
      
         - ASoC SOF fixes and workarounds
      
         - Various ASoC Intel fixes
      
         - Lots of HD-, USB-audio and AMD ACP quirks"
      
      * tag 'sound-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (33 commits)
        ALSA: usb-audio: More relaxed check of MIDI jack names
        ALSA: hda/realtek: fix mute/micmute LED For HP mt645
        ALSA: hda/realtek: cs35l41: Fix order and duplicates in quirks table
        ALSA: hda/realtek: cs35l41: Fix device ID / model name
        ALSA: hda/realtek: cs35l41: Add internal speaker support for ASUS UM3402 with missing DSD
        ASoC: cs35l56: Workaround for ACPI with broken spk-id-gpios property
        ALSA: hda: Add Lenovo Legion 7i gen7 sound quirk
        ASoC: SOF: IPC3: fix message bounds on ipc ops
        ASoC: SOF: ipc4-pcm: Workaround for crashed firmware on system suspend
        ASoC: q6dsp: fix event handler prototype
        ASoC: SOF: Intel: pci-lnl: Change the topology path to intel/sof-ipc4-tplg
        ASoC: SOF: Intel: pci-tgl: Change the default paths and firmware names
        ASoC: amd: yc: Fix non-functional mic on Lenovo 82UU
        ASoC: rt5645: Add DMI quirk for inverted jack-detect on MeeGoPad T8
        ASoC: rt5645: Make LattePanda board DMI match more precise
        ASoC: SOF: amd: Fix locking in ACP IRQ handler
        ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
        ASoC: Intel: cht_bsw_rt5645: Cleanup codec_name handling
        ASoC: Intel: Boards: Fix NULL pointer deref in BYT/CHT boards
        ASoC: cs35l56: Remove default from IRQ1_CFG register
        ...
      0f1dd5e9
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · beda9c23
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - add missing stubs for functions that are not built with GPIOLIB
         disabled
      
      * tag 'gpio-fixes-for-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: add gpio_device_get_label() stub for !GPIOLIB
        gpiolib: add gpio_device_get_base() stub for !GPIOLIB
        gpiolib: add gpiod_to_gpio_device() stub for !GPIOLIB
      beda9c23
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2024-02-16' of git://anongit.freedesktop.org/drm/drm · ca6a62f9
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly fixes, nothing too major, mostly amdgpu, then i915, xe,
        msm and nouveau with some scattered bits elsewhere.
      
        crtc:
         - fix uninit variable
      
        prime:
         - support > 4GB page arrays
      
        buddy:
         - fix error handling in allocations
      
        i915:
         - fix blankscreen on JSL chromebooks
         - stable fix to limit DP sst link rates
      
        xe:
         - Fix an out-of-bounds shift.
         - Fix the display code thinking xe uses shmem
         - Fix a warning about index out-of-bound
         - Fix a clang-16 compilation warning
      
        amdgpu:
         - PSR fixes
         - Suspend/resume fixes
         - Link training fix
         - Aspect ratio fix
         - DCN 3.5 fixes
         - VCN 4.x fix
         - GFX 11 fix
         - Misc display fixes
         - Misc small fixes
      
        amdkfd:
         - Cache size reporting fix
         - SIMD distribution fix
      
        msm:
         - GPU:
         - dmabuf vmap fix
         - a610 UBWC corruption fix (incorrect hbb)
         - revert a commit that was making GPU recovery unreliable
         - tlb invalidation fix
      
        ivpu:
         - suspend/resume fix
      
        nouveau:
         - fix scheduler cleanup path
         - fix pointless scheduler creation
         - fix kvalloc argument order
      
        rockchip:
         - vop2 locking fix"
      
      * tag 'drm-fixes-2024-02-16' of git://anongit.freedesktop.org/drm/drm: (38 commits)
        drm/amdgpu: Fix implicit assumtion in gfx11 debug flags
        drm/amdkfd: update SIMD distribution algo for GFXIP 9.4.2 onwards
        drm/amd/display: Increase ips2_eval delay for DCN35
        drm/amdgpu/display: Initialize gamma correction mode variable in dcn30_get_gamcor_current()
        drm/amdgpu/soc21: update VCN 4 max HEVC encoding resolution
        drm/amd/display: fixed integer types and null check locations
        drm/amd/display: Fix array-index-out-of-bounds in dcn35_clkmgr
        drm/amd/display: Preserve original aspect ratio in create stream
        drm/amd/display: Fix possible NULL dereference on device remove/driver unload
        Revert "drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz"
        drm/amd/display: Add align done check
        Revert "drm/amd: flush any delayed gfxoff on suspend entry"
        drm/amd: Stop evicting resources on APUs in suspend
        drm/amd/display: Fix possible buffer overflow in 'find_dcfclk_for_voltage()'
        drm/amd/display: Fix possible use of uninitialized 'max_chunks_fbc_mode' in 'calculate_bandwidth()'
        drm/amd/display: Initialize 'wait_time_microsec' variable in link_dp_training_dpia.c
        drm/amd/display: Fix && vs || typos
        drm/amdkfd: Fix L2 cache size reporting in GFX9.4.3
        drm/amdgpu: make damage clips support configurable
        drm/msm: Wire up tlb ops
        ...
      ca6a62f9
    • Linus Torvalds's avatar
      Merge tag 'lsm-pr-20240215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm · b8ef9201
      Linus Torvalds authored
      Pull lsm fix from Paul Moore:
       "One small LSM patch to fix a potential integer overflow in the newly
        added lsm_set_self_attr() syscall"
      
      * tag 'lsm-pr-20240215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm:
        lsm: fix integer overflow in lsm_set_self_attr() syscall
      b8ef9201
    • Dave Airlie's avatar
      Merge tag 'drm-msm-fixes-2024-02-15' of https://gitlab.freedesktop.org/drm/msm into drm-fixes · ea69f782
      Dave Airlie authored
      Fixes for v6.8-rc5
      
      GPU:
      - dmabuf vmap fix
      - a610 UBWC corruption fix (incorrect hbb)
      - revert a commit that was making GPU recovery unreliable
      - tlb invalidation fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Rob Clark <robdclark@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGszDSiw66+a=ttBr-hat+zrcBtfc_cZ4LQqXu89DJ0UeQ@mail.gmail.com
      ea69f782