Skip to content
Snippets Groups Projects
  1. Jun 12, 2024
    • Tomeu Vizoso's avatar
      bindings: enable example node · 99cabfd7
      Tomeu Vizoso authored
      99cabfd7
    • Tomeu Vizoso's avatar
      sort DT nodes · e221bf91
      Tomeu Vizoso authored
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      e221bf91
    • Tomeu Vizoso's avatar
      fix my own address... · 66bfb365
      Tomeu Vizoso authored
      66bfb365
    • Tomeu Vizoso's avatar
      accel/rocket: Add IOCTLs for synchronizing memory accesses · f7e45ad9
      Tomeu Vizoso authored
      
      The NPU cores have their own access to the memory bus, and this isn't
      cache coherent with the CPUs.
      
      Add IOCTLs so userspace can mark when the caches need to be flushed, and
      also when a writer job needs to be waited for before the buffer can be
      accessed from the CPU.
      
      Initially based on the same IOCTLs from the Etnaviv driver.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      f7e45ad9
    • Tomeu Vizoso's avatar
      accel/rocket: Add job submission IOCTL · 8b52e70f
      Tomeu Vizoso authored
      
      Using the DRM GPU scheduler infrastructure, with a scheduler for each
      core.
      
      Userspace can decide for a series of tasks to be executed sequentially
      in the same core, so SRAM locality can be taken advantage of.
      
      The job submission code was intially based on Panfrost.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      8b52e70f
    • Tomeu Vizoso's avatar
      accel/rocket: Add IOCTL for BO creation · ca678eba
      Tomeu Vizoso authored
      
      This uses the SHMEM DRM helpers and we map right away to the CPU and NPU
      sides, as all buffers are expected to be accessed from both.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      ca678eba
    • Tomeu Vizoso's avatar
      accel/rocket: Add a new driver for Rockchip's NPU · 8b1b79eb
      Tomeu Vizoso authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      
      This initial version supports the NPU as shipped in the RK3588 SoC and
      described in the first part of its TRM, in Chapter 36.
      
      This NPU contains 3 independent cores that the driver can submit jobs
      to.
      
      This commit adds just hardware initialization and power management.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      8b1b79eb
    • Tomeu Vizoso's avatar
      arm64: dts: rockchip: Enable the NPU on quartzpro64 · 614b9754
      Tomeu Vizoso authored
      
      Enable the nodes added in a previous commit to the rk3588s device tree.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      614b9754
    • Tomeu Vizoso's avatar
      arm64: dts: rockchip: Add nodes for NPU and its MMU to rk3588s · d26a9596
      Tomeu Vizoso authored
      
      See Chapter 36 "RKNN" from the RK3588 TRM (Part 1).
      
      This is a derivative of NVIDIA's NVDLA, but with its own front-end
      processor.
      
      Mostly taken from downstream.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      d26a9596
    • Tomeu Vizoso's avatar
      dt-bindings: npu: rockchip,rknn: Add bindings · c322e127
      Tomeu Vizoso authored
      
      Add the bindings for the Neural Processing Unit IP from Rockchip.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      c322e127
    • Tomeu Vizoso's avatar
      iommu/rockchip: Attach multiple power domains · c4444c85
      Tomeu Vizoso authored
      
      IOMMUs with multiple base addresses can also have multiple power
      domains.
      
      The base framework only takes care of a single power domain, as some
      devices will need for these power domains to be powered on in a specific
      order.
      
      Use a helper function to stablish links in the order in which they are
      in the DT.
      
      This is needed by the IOMMU used by the NPU in the RK3588.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      c4444c85
    • Tomeu Vizoso's avatar
      iommu/rockchip: Add compatible for rockchip,rk3588-iommu · 90433cef
      Tomeu Vizoso authored
      
      So far, seems to be fully compatible with the one in the RK3568.
      
      The bindings already had this compatible, but the driver didn't
      advertise it.
      
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      90433cef
    • Tomeu Vizoso's avatar
      New DRM accel driver for Rockchip's RKNN NPU · 1f6097b6
      Tomeu Vizoso authored
      This series adds a new driver for the NPU that Rockchip includes in its
      newer SoCs, developed by them on the NVDLA base.
      
      In its current form, it supports the specific NPU in the RK3588 SoC.
      
      The userspace driver is part of Mesa and an initial draft can be found at:
      
      mesa/mesa!29698
      
      
      
      To: Joerg Roedel <joro@8bytes.org>
      To: Will Deacon <will@kernel.org>
      To: Robin Murphy <robin.murphy@arm.com>
      To: Heiko Stuebner <heiko@sntech.de>
      To: Rob Herring <robh@kernel.org>
      To: Krzysztof Kozlowski <krzk+dt@kernel.org>
      To: Conor Dooley <conor+dt@kernel.org>
      To: Oded Gabbay <ogabbay@kernel.org>
      To: Tomeu Vizoso <tomeu.vizoso@tomeuvizoso.net>
      To: David Airlie <airlied@gmail.com>
      To: Daniel Vetter <daniel@ffwll.ch>
      To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      To: Maxime Ripard <mripard@kernel.org>
      To: Thomas Zimmermann <tzimmermann@suse.de>
      To: Philipp Zabel <p.zabel@pengutronix.de>
      To: Sumit Semwal <sumit.semwal@linaro.org>
      To: Christian König <christian.koenig@amd.com>
      Cc: iommu@lists.linux.dev
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-media@vger.kernel.org
      Cc: linaro-mm-sig@lists.linaro.org
      Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
      
      ---
      Changes in v2:
      - EDITME: describe what is new in this series revision.
      - EDITME: use bulletpoints and terse descriptions.
      - Link to v1: https://lore.kernel.org/r/20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net
      
      
      
      --- b4-submit-tracking ---
      # This section is used internally by b4 prep for tracking purposes.
      {
        "series": {
          "revision": 2,
          "change-id": "20240612-6-10-rocket-9316defc14c7",
          "prefixes": [],
          "history": {
            "v1": [
              "20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net"
            ]
          }
        }
      }
      1f6097b6
    • Linus Torvalds's avatar
      Linux 6.10-rc3 · 610c75bf
      Linus Torvalds authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      610c75bf
    • Namhyung Kim's avatar
      perf bpf: Fix handling of minimal vmlinux.h file when interrupting the build · bbd710c7
      Namhyung Kim authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      
      Ingo reported that he was seeing these when hitting Control+C during a
      perf tools build:
      
        Makefile.perf:1149: *** Missing bpftool input for generating vmlinux.h. Stop.
      
      The failure happens when you don't have vmlinux.h or vmlinux with BTF.
      
      ifeq ($(VMLINUX_H),)
        ifeq ($(VMLINUX_BTF),)
          $(error Missing bpftool input for generating vmlinux.h)
        endif
      endif
      
      VMLINUX_BTF can be empty if you didn't build a kernel or it doesn't have
      a BTF section and the current kernel also has no BTF.  This is totally
      ok.
      
      But VMLINUX_H should be set to the minimal version in the source tree
      (unless you overwrite it manually) when you don't pass GEN_VMLINUX_H=1
      (which requires VMLINUX_BTF should not be empty).  The problem is that
      it's defined in Makefile.config which is not included for `make clean`.
      
      Reported-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Tested-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Link: http://lore.kernel.org/lkml/CAM9d7ch5HTr+k+_GpbMrX0HUo5BZ11byh1xq0Two7B7RQACuNw@mail.gmail.com
      Link: http://lore.kernel.org/lkml/ZjssGrj+abyC6mYP@gmail.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      bbd710c7
    • Arnaldo Carvalho de Melo's avatar
      Revert "perf record: Reduce memory for recording PERF_RECORD_LOST_SAMPLES event" · 968bd3de
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      This reverts commit 7d1405c7.
      
      This causes segfaults in some cases, as reported by Milian:
      
        ```
        sudo /usr/bin/perf record -z --call-graph dwarf -e cycles -e
        raw_syscalls:sys_enter ls
        ...
        [ perf record: Woken up 3 times to write data ]
        malloc(): invalid next size (unsorted)
        Aborted
        ```
      
        Backtrace with GDB + debuginfod:
      
        ```
        malloc(): invalid next size (unsorted)
      
        Thread 1 "perf" received signal SIGABRT, Aborted.
        __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
        no_tid=no_tid@entry=0) at pthread_kill.c:44
        Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
        44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO
        (ret) : 0;
        (gdb) bt
        #0  __pthread_kill_implementation (threadid=<optimized out>,
        signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
        #1  0x00007ffff6ea8eb3 in __pthread_kill_internal (threadid=<optimized out>,
        signo=6) at pthread_kill.c:78
        #2  0x00007ffff6e50a30 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/
        raise.c:26
        #3  0x00007ffff6e384c3 in __GI_abort () at abort.c:79
        #4  0x00007ffff6e39354 in __libc_message_impl (fmt=fmt@entry=0x7ffff6fc22ea
        "%s\n") at ../sysdeps/posix/libc_fatal.c:132
        #5  0x00007ffff6eb3085 in malloc_printerr (str=str@entry=0x7ffff6fc5850
        "malloc(): invalid next size (unsorted)") at malloc.c:5772
        #6  0x00007ffff6eb657c in _int_malloc (av=av@entry=0x7ffff6ff6ac0
        <main_arena>, bytes=bytes@entry=368) at malloc.c:4081
        #7  0x00007ffff6eb877e in __libc_calloc (n=<optimized out>,
        elem_size=<optimized out>) at malloc.c:3754
        #8  0x000055555569bdb6 in perf_session.do_write_header ()
        #9  0x00005555555a373a in __cmd_record.constprop.0 ()
        #10 0x00005555555a6846 in cmd_record ()
        #11 0x000055555564db7f in run_builtin ()
        #12 0x000055555558ed77 in main ()
        ```
      
        Valgrind memcheck:
        ```
        ==45136== Invalid write of size 8
        ==45136==    at 0x2B38A5: perf_event__synthesize_id_sample (in /usr/bin/perf)
        ==45136==    by 0x157069: __cmd_record.constprop.0 (in /usr/bin/perf)
        ==45136==    by 0x15A845: cmd_record (in /usr/bin/perf)
        ==45136==    by 0x201B7E: run_builtin (in /usr/bin/perf)
        ==45136==    by 0x142D76: main (in /usr/bin/perf)
        ==45136==  Address 0x6a866a8 is 0 bytes after a block of size 40 alloc'd
        ==45136==    at 0x4849BF3: calloc (vg_replace_malloc.c:1675)
        ==45136==    by 0x3574AB: zalloc (in /usr/bin/perf)
        ==45136==    by 0x1570E0: __cmd_record.constprop.0 (in /usr/bin/perf)
        ==45136==    by 0x15A845: cmd_record (in /usr/bin/perf)
        ==45136==    by 0x201B7E: run_builtin (in /usr/bin/perf)
        ==45136==    by 0x142D76: main (in /usr/bin/perf)
        ==45136==
        ==45136== Syscall param write(buf) points to unaddressable byte(s)
        ==45136==    at 0x575953D: __libc_write (write.c:26)
        ==45136==    by 0x575953D: write (write.c:24)
        ==45136==    by 0x35761F: ion (in /usr/bin/perf)
        ==45136==    by 0x357778: writen (in /usr/bin/perf)
        ==45136==    by 0x1548F7: record__write (in /usr/bin/perf)
        ==45136==    by 0x15708A: __cmd_record.constprop.0 (in /usr/bin/perf)
        ==45136==    by 0x15A845: cmd_record (in /usr/bin/perf)
        ==45136==    by 0x201B7E: run_builtin (in /usr/bin/perf)
        ==45136==    by 0x142D76: main (in /usr/bin/perf)
        ==45136==  Address 0x6a866a8 is 0 bytes after a block of size 40 alloc'd
        ==45136==    at 0x4849BF3: calloc (vg_replace_malloc.c:1675)
        ==45136==    by 0x3574AB: zalloc (in /usr/bin/perf)
        ==45136==    by 0x1570E0: __cmd_record.constprop.0 (in /usr/bin/perf)
        ==45136==    by 0x15A845: cmd_record (in /usr/bin/perf)
        ==45136==    by 0x201B7E: run_builtin (in /usr/bin/perf)
        ==45136==    by 0x142D76: main (in /usr/bin/perf)
        ==45136==
       -----
      
      Closes: https://lore.kernel.org/linux-perf-users/23879991.0LEYPuXRzz@milian-workstation/
      
      
      Reported-by: default avatarMilian Wolff <milian.wolff@kdab.com>
      Tested-by: default avatarMilian Wolff <milian.wolff@kdab.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: stable@kernel.org # 6.8+
      Link: https://lore.kernel.org/lkml/Zl9ksOlHJHnKM70p@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      968bd3de
    • Arnaldo Carvalho de Melo's avatar
      tools headers arm64: Sync arm64's cputype.h with the kernel sources · 68b9143f
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      
      To get the changes in:
      
        0ce85db6 ("arm64: cputype: Add Neoverse-V3 definitions")
        02a0a046 ("arm64: cputype: Add Cortex-X4 definitions")
        f4d9d9dc ("arm64: Add Neoverse-V2 part")
      
      That makes this perf source code to be rebuilt:
      
        CC      /tmp/build/perf-tools/util/arm-spe.o
      
      The changes in the above patch add MIDR_NEOVERSE_V[23] and
      MIDR_NEOVERSE_V1 is used in arm-spe.c, so probably we need to add those
      and perhaps MIDR_CORTEX_X4 to that array? Or maybe we need to leave this
      for later when this is all tested on those machines?
      
        static const struct midr_range neoverse_spe[] = {
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2),
                MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
                {},
        };
      
      Mark Rutland recommended about arm-spe.c:
      
      "I would not touch this for now -- someone would have to go audit the
      TRMs to check that those other cores have the same encoding, and I think
      it'd be better to do that as a follow-up."
      
      That addresses this perf build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h
      
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Besar Wicaksono <bwicaksono@nvidia.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Link: https://lore.kernel.org/lkml/Zl8cYk0Tai2fs7aM@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      68b9143f
    • Arnaldo Carvalho de Melo's avatar
      tools headers uapi: Sync linux/stat.h with the kernel sources to pick STATX_SUBVOL · 2e9d8243
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To pick the changes from:
      
        2a82bb02 ("statx: stx_subvol")
      
      This silences this perf build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Kent Overstreet <kent.overstreet@linux.dev>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/ZlnK2Fmx_gahzwZI@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2e9d8243
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Update i915_drm.h with the kernel sources · 77435a5e
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      77435a5e
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync kvm headers with the kernel sources · e65b9292
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To pick the changes in:
      
        4af663c2 ("KVM: SEV: Allow per-guest configuration of GHCB protocol version")
        4f5defae ("KVM: SEV: introduce KVM_SEV_INIT2 operation")
        26c44aa9 ("KVM: SEV: define VM types for SEV and SEV-ES")
        ac5c4802 ("KVM: SEV: publish supported VMSA features")
        651d61bc ("KVM: PPC: Fix documentation for ppc mmu caps")
      
      That don't change functionality in tools/perf, as no new ioctl is added
      for the 'perf trace' scripts to harvest.
      
      This addresses these perf build warnings:
      
        Warning: Kernel ABI header differences:
          diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h
          diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Joel Stanley <joel@jms.id.au>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michael Roth <michael.roth@amd.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Link: https://lore.kernel.org/lkml/ZlYxAdHjyAkvGtMW@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e65b9292
    • Arnaldo Carvalho de Melo's avatar
      tools arch x86: Sync the msr-index.h copy with the kernel sources · 63517952
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To pick up the changes from these csets:
      
        53bc516a ("x86/msr: Move ARCH_CAP_XAPIC_DISABLE bit definition to its rightful place")
      
      That patch just move definitions around, so this just silences this perf
      build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov (AMD) <bp@alien8.de>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
      Link: https://lore.kernel.org/lkml/ZlYe8jOzd1_DyA7X@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      63517952
    • Arnaldo Carvalho de Melo's avatar
      tools headers: Update the syscall tables and unistd.h, mostly to support the new 'mseal' syscall · 368af795
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      But also to wire up shadow stacks on 32-bit x86, picking up those
      changes from these csets:
      
        ff388fe5 ("mseal: wire up mseal syscall")
        2883f01e ("x86/shstk: Enable shadow stacks for x32")
      
      This makes 'perf trace' support it, now its possible, for instance to
      do:
      
        # perf trace -e mseal --max-stack=16
      
      Here is an example with the 'sendmmsg' syscall:
      
        root@x1:~# perf trace -e sendmmsg --max-stack 16 --max-events=1
             0.000 ( 0.062 ms): dbus-broker/1012 sendmmsg(fd: 150, mmsg: 0x7ffef57cca50, vlen: 1, flags: DONTWAIT|NOSIGNAL) = 1
                                               syscall_exit_to_user_mode_prepare ([kernel.kallsyms])
                                               syscall_exit_to_user_mode_prepare ([kernel.kallsyms])
                                               syscall_exit_to_user_mode ([kernel.kallsyms])
                                               do_syscall_64 ([kernel.kallsyms])
                                               entry_SYSCALL_64 ([kernel.kallsyms])
                                               [0x117ce7] (/usr/lib64/libc.so.6 (deleted))
        root@x1:~#
      
      To do a system wide tracing of the new 'mseal' syscall with a backtrace
      of at most 16 entries.
      
      This addresses these perf tools build warnings:
      
        Warning: Kernel ABI header differences:
          diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h
          diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
          diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
          diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
          diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: H J Lu <hjl.tools@gmail.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jeff Xu <jeffxu@chromium.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/ZlXlo4TNcba4wnVZ@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      368af795
    • Arnaldo Carvalho de Melo's avatar
      perf trace beauty: Update the arch/x86/include/asm/irq_vectors.h copy with the... · 2a9a90bb
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      perf trace beauty: Update the arch/x86/include/asm/irq_vectors.h copy with the kernel sources to pick POSTED_MSI_NOTIFICATION
      
      To pick up the change in:
      
        f5a3562e ("x86/irq: Reserve a per CPU IDT vector for posted MSIs")
      
      That picks up this new vector:
      
        $ cp arch/x86/include/asm/irq_vectors.h tools/perf/trace/beauty/arch/x86/include/asm/irq_vectors.h
        $ tools/perf/trace/beauty/tracepoints/x86_irq_vectors.sh > after
        $ diff -u before after
        --- before	2024-05-27 12:50:47.708863932 -0300
        +++ after	2024-05-27 12:51:15.335113123 -0300
        @@ -1,6 +1,7 @@
         static const char *x86_irq_vectors[] = {
         	[0x02] = "NMI",
         	[0x80] = "IA32_SYSCALL",
        +	[0xeb] = "POSTED_MSI_NOTIFICATION",
         	[0xec] = "LOCAL_TIMER",
         	[0xed] = "HYPERV_STIMER0",
         	[0xee] = "HYPERV_REENLIGHTENMENT",
        $
      
      Now those will be known when pretty printing the irq_vectors:*
      tracepoints.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lore.kernel.org/lkml/ZlS34M0x30EFVhbg@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2a9a90bb
    • Arnaldo Carvalho de Melo's avatar
      perf beauty: Update copy of linux/socket.h with the kernel sources · d8e814c0
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To pick up the fixes in:
      
        0645fbe7 ("net: have do_accept() take a struct proto_accept_arg argument")
      
      That just changes a function prototype, not touching things used by the
      perf scrape scripts such as:
      
        $ tools/perf/trace/beauty/sockaddr.sh | head -5
        static const char *socket_families[] = {
        	[0] = "UNSPEC",
        	[1] = "LOCAL",
        	[2] = "INET",
        	[3] = "AX25",
        $
      
      This addresses this perf tools build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/perf/trace/beauty/include/linux/socket.h include/linux/socket.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/ZlSrceExgjrUiDb5@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d8e814c0
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync fcntl.h with the kernel sources to pick F_DUPFD_QUERY · c7f101f6
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      There is no scrape script yet for those, but the warning pointed out we
      need to update the array with the F_LINUX_SPECIFIC_BASE entries, do it.
      
      Now 'perf trace' can decode that cmd and also use it in filter, as in:
      
        root@number:~# perf trace -e syscalls:*enter_fcntl --filter 'cmd != SETFL && cmd != GETFL'
           0.000 sssd_kcm/303828 syscalls:sys_enter_fcntl(fd: 13</var/lib/sss/secrets/secrets.ldb>, cmd: SETLK, arg: 0x7fffdc6a8a50)
           0.013 sssd_kcm/303828 syscalls:sys_enter_fcntl(fd: 13</var/lib/sss/secrets/secrets.ldb>, cmd: SETLKW, arg: 0x7fffdc6a8aa0)
           0.090 sssd_kcm/303828 syscalls:sys_enter_fcntl(fd: 13</var/lib/sss/secrets/secrets.ldb>, cmd: SETLKW, arg: 0x7fffdc6a88e0)
        ^Croot@number:~#
      
      This picks up the changes in:
      
        c62b758b ("fcntl: add F_DUPFD_QUERY fcntl()")
      
      Addressing this perf tools build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/perf/trace/beauty/include/uapi/linux/fcntl.h include/uapi/linux/fcntl.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/ZlSqNQH9mFw2bmjq@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c7f101f6
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync linux/prctl.h with the kernel sources · 3b87141d
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To pick the changes in:
      
        628d701f ("powerpc/dexcr: Add DEXCR prctl interface")
        6b9391b5 ("riscv: Include riscv_set_icache_flush_ctx prctl")
      
      That adds some PowerPC and a RISC-V specific prctl options:
      
        $ tools/perf/trace/beauty/prctl_option.sh > before
        $ cp include/uapi/linux/prctl.h tools/perf/trace/beauty/include/uapi/linux/prctl.h
        $ tools/perf/trace/beauty/prctl_option.sh > after
        $ diff -u before after
        --- before	2024-05-27 12:14:21.358032781 -0300
        +++ after	2024-05-27 12:14:32.364530185 -0300
        @@ -65,6 +65,9 @@
         	[68] = "GET_MEMORY_MERGE",
         	[69] = "RISCV_V_SET_CONTROL",
         	[70] = "RISCV_V_GET_CONTROL",
        +	[71] = "RISCV_SET_ICACHE_FLUSH_CTX",
        +	[72] = "PPC_GET_DEXCR",
        +	[73] = "PPC_SET_DEXCR",
         };
         static const char *prctl_set_mm_options[] = {
         	[1] = "START_CODE",
        $
      
      That now will be used to decode the syscall option and also to compose
      filters, for instance:
      
        [root@five ~]# perf trace -e syscalls:sys_enter_prctl --filter option==SET_NAME
             0.000 Isolated Servi/3474327 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23f13b7aee)
             0.032 DOM Worker/3474327 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23deb25670)
             7.920 :3474328/3474328 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23e24fbb10)
             7.935 StreamT~s #374/3474328 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23e24fb970)
             8.400 Isolated Servi/3474329 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23e24bab10)
             8.418 StreamT~s #374/3474329 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7f23e24ba970)
        ^C[root@five ~]#
      
      This addresses this perf build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/include/uapi/linux/prctl.h include/uapi/linux/prctl.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Benjamin Gray <bgray@linux.ibm.com>
      Cc: Charlie Jenkins <charlie@rivosinc.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Palmer Dabbelt <palmer@rivosinc.com>
      Link: https://lore.kernel.org/lkml/ZlSklGWp--v_Ije7@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      3b87141d
    • Arnaldo Carvalho de Melo's avatar
      tools include UAPI: Sync linux/stat.h with the kernel sources · 5155a399
      Arnaldo Carvalho de Melo authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      To get the changes in:
      
        2a82bb02 ("statx: stx_subvol")
      
      To pick up this change and support it:
      
        $ tools/perf/trace/beauty/statx_mask.sh > before
        $ cp include/uapi/linux/stat.h tools/perf/trace/beauty/include/uapi/linux/stat.h
        $ tools/perf/trace/beauty/statx_mask.sh > after
        $ diff -u before after
        --- before	2024-05-22 13:39:49.742470571 -0300
        +++ after	2024-05-22 13:39:59.157883101 -0300
        @@ -14,4 +14,5 @@
         	[ilog2(0x00001000) + 1] = "MNT_ID",
         	[ilog2(0x00002000) + 1] = "DIOALIGN",
         	[ilog2(0x00004000) + 1] = "MNT_ID_UNIQUE",
        +	[ilog2(0x00008000) + 1] = "SUBVOL",
         };
        $
      
      Now we'll see it like we see these:
      
        # perf trace -e statx
           0.000 ( 0.015 ms): systemd-userwo/3982299 statx(dfd: 6, filename: ".", mask: TYPE|INO|MNT_ID, buffer: 0x7ffd8945e850) = 0
           <SNIP>
         180.559 ( 0.007 ms): (ostnamed)/3982957 statx(dfd: 4, filename: "sys", flags: SYMLINK_NOFOLLOW|NO_AUTOMOUNT|STATX_DONT_SYNC, mask: TYPE, buffer: 0x7fff13161190) = 0
         180.918 ( 0.011 ms): (ostnamed)/3982957 statx(dfd: CWD, filename: "/run/systemd/mount-rootfs/sys/kernel/security", flags: SYMLINK_NOFOLLOW|NO_AUTOMOUNT|STATX_DONT_SYNC, mask: MNT_ID, buffer: 0x7fff13161120) = 0
         180.956 ( 0.010 ms): (ostnamed)/3982957 statx(dfd: CWD, filename: "/run/systemd/mount-rootfs/sys/fs/cgroup", flags: SYMLINK_NOFOLLOW|NO_AUTOMOUNT|STATX_DONT_SYNC, mask: MNT_ID, buffer: 0x7fff13161120) = 0
         <SNIP>
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Kent Overstreet <kent.overstreet@linux.dev>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/lkml/Zk5nO9yT0oPezUoo@x1
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5155a399
    • Ilpo Järvinen's avatar
      EDAC/igen6: Convert PCIBIOS_* return codes to errnos · cdcb82d5
      Ilpo Järvinen authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      
      errcmd_enable_error_reporting() uses pci_{read,write}_config_word()
      that return PCIBIOS_* codes. The return code is then returned all the
      way into the probe function igen6_probe() that returns it as is. The
      probe functions, however, should return normal errnos.
      
      Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
      errno before returning it from errcmd_enable_error_reporting().
      
      Fixes: 10590a9d ("EDAC/igen6: Add EDAC driver for Intel client SoCs using IBECC")
      Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Reviewed-by: default avatarQiuxu Zhuo <qiuxu.zhuo@intel.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20240527132236.13875-2-ilpo.jarvinen@linux.intel.com
      cdcb82d5
    • Ilpo Järvinen's avatar
      EDAC/amd64: Convert PCIBIOS_* return codes to errnos · 9ffd4dc0
      Ilpo Järvinen authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      
      gpu_get_node_map() uses pci_read_config_dword() that returns PCIBIOS_*
      codes. The return code is then returned all the way into the module
      init function amd64_edac_init() that returns it as is. The module init
      functions, however, should return normal errnos.
      
      Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
      errno before returning it from gpu_get_node_map().
      
      For consistency, convert also the other similar cases which return
      PCIBIOS_* codes even if they do not have any bugs at the moment.
      
      Fixes: 4251566e ("EDAC/amd64: Cache and use GPU node map")
      Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20240527132236.13875-1-ilpo.jarvinen@linux.intel.com
      9ffd4dc0
    • Samuel Holland's avatar
      clk: sifive: Do not register clkdevs for PRCI clocks · 35291790
      Samuel Holland authored and Tomeu Vizoso's avatar Tomeu Vizoso committed
      These clkdevs were unnecessary, because systems using this driver always
      look up clocks using the devicetree. And as Russell King points out[1],
      since the provided device name was truncated, lookups via clkdev would
      never match.
      
      Recently, commit 8d532528 ("clkdev: report over-sized strings when
      creating clkdev entries") caused clkdev registration to fail due to the
      truncation, and this now prevents the driver from probing. Fix the
      driver by removing the clkdev registration.
      
      Link: https://lore.kernel.org/linux-clk/ZkfYqj+OcAxd9O2t@shell.armlinux.org.uk/
      
       [1]
      Fixes: 30b8e27e ("clk: sifive: add a driver for the SiFive FU540 PRCI IP block")
      Fixes: 8d532528 ("clkdev: report over-sized strings when creating clkdev entries")
      Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Closes: https://lore.kernel.org/linux-clk/7eda7621-0dde-4153-89e4-172e4c095d01@roeck-us.net/
      
      
      Suggested-by: default avatarRussell King <linux@armlinux.org.uk>
      Signed-off-by: default avatarSamuel Holland <samuel.holland@sifive.com>
      Link: https://lore.kernel.org/r/20240528001432.1200403-1-samuel.holland@sifive.com
      
      
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      35291790
  2. Jun 09, 2024
  3. Jun 08, 2024
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2024060801' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 061d1af7
      Linus Torvalds authored
      Pull HID fixes from Benjamin Tissoires:
      
       - fix potential read out of bounds in hid-asus (Andrew Ballance)
      
       - fix endian-conversion on little endian systems in intel-ish-hid (Arnd
         Bergmann)
      
       - A couple of new input event codes (Aseda Aboagye)
      
       - errors handling fixes in hid-nvidia-shield (Chen Ni), hid-nintendo
         (Christophe JAILLET), hid-logitech-dj (José Expósito)
      
       - current leakage fix while the device is in suspend on a i2c-hid
         laptop (Johan Hovold)
      
       - other assorted smaller fixes and device ID / quirk entry additions
      
      * tag 'for-linus-2024060801' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: Ignore battery for ELAN touchscreens 2F2C and 4116
        HID: i2c-hid: elan: fix reset suspend current leakage
        dt-bindings: HID: i2c-hid: elan: add 'no-reset-on-power-off' property
        dt-bindings: HID: i2c-hid: elan: add Elan eKTH5015M
        dt-bindings: HID: i2c-hid: add dedicated Ilitek ILI2901 schema
        input: Add support for "Do Not Disturb"
        input: Add event code for accessibility key
        hid: asus: asus_report_fixup: fix potential read out of bounds
        HID: logitech-hidpp: add missing MODULE_DESCRIPTION() macro
        HID: intel-ish-hid: fix endian-conversion
        HID: nintendo: Fix an error handling path in nintendo_hid_probe()
        HID: logitech-dj: Fix memory leak in logi_dj_recv_switch_to_dj_mode()
        HID: core: remove unnecessary WARN_ON() in implement()
        HID: nvidia-shield: Add missing check for input_ff_create_memless
        HID: intel-ish-hid: Fix build error for COMPILE_TEST
      061d1af7
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.10-2' of... · 329f70c5
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix the initial state of the save button in 'make gconfig'
      
       - Improve the Kconfig documentation
      
       - Fix a Kconfig bug regarding property visibility
      
       - Fix build breakage for systems where 'sed' is not installed in /bin
      
       - Fix a false warning about missing MODULE_DESCRIPTION()
      
      * tag 'kbuild-fixes-v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o
        kbuild: explicitly run mksysmap as sed script from link-vmlinux.sh
        kconfig: remove wrong expr_trans_bool()
        kconfig: doc: document behavior of 'select' and 'imply' followed by 'if'
        kconfig: doc: fix a typo in the note about 'imply'
        kconfig: gconf: give a proper initial state to the Save button
        kconfig: remove unneeded code for user-supplied values being out of range
      329f70c5
    • Linus Torvalds's avatar
      Merge tag 'media/v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 1e7ccdd3
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
      
       - fixes for the new ipu6 driver (and related fixes to mei csi driver)
      
       - fix a double debugfs remove logic at mgb4 driver
      
       - a documentation fix
      
      * tag 'media/v6.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: intel/ipu6: add csi2 port sanity check in notifier bound
        media: intel/ipu6: update the maximum supported csi2 port number to 6
        media: mei: csi: Warn less verbosely of a missing device fwnode
        media: mei: csi: Put the IPU device reference
        media: intel/ipu6: fix the buffer flags caused by wrong parentheses
        media: intel/ipu6: Fix an error handling path in isys_probe()
        media: intel/ipu6: Move isys_remove() close to isys_probe()
        media: intel/ipu6: Fix some redundant resources freeing in ipu6_pci_remove()
        media: Documentation: v4l: Fix ACTIVE route flag
        media: mgb4: Fix double debugfs remove
      1e7ccdd3
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 36714d69
      Linus Torvalds authored
      Pull irq fixes from Ingo Molnar:
      
       - Fix possible memory leak the riscv-intc irqchip driver load failures
      
       - Fix boot crash in the sifive-plic irqchip driver caused by recently
         changed boot initialization order
      
       - Fix race condition in the gic-v3-its irqchip driver
      
      * tag 'irq-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Fix potential race condition in its_vlpi_prop_update()
        irqchip/sifive-plic: Chain to parent IRQ after handlers are ready
        irqchip/riscv-intc: Prevent memory leak when riscv_intc_init_common() fails
      36714d69
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cedb020
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Miscellaneous fixes:
      
         - Fix kexec() crash if call depth tracking is enabled
      
         - Fix SMN reads on inaccessible registers on certain AMD systems"
      
      * tag 'x86-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/amd_nb: Check for invalid SMN reads
        x86/kexec: Fix bug with call depth tracking
      7cedb020
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cec2e16
      Linus Torvalds authored
      Pull perf event fix from Ingo Molnar:
       "Fix race between perf_event_free_task() and perf_event_release_kernel()
        that can result in missed wakeups and hung tasks"
      
      * tag 'perf-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Fix missing wakeup when waiting for context reference
      7cec2e16
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bbc5332b
      Linus Torvalds authored
      Pull locking doc fix from Ingo Molnar:
       "Fix typos in the kerneldoc of some of the atomic APIs"
      
      * tag 'locking-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/atomic: scripts: fix ${atomic}_sub_and_test() kerneldoc
      bbc5332b
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-06-07-15-24' of... · dc772f82
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-06-07-15-24' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "14 hotfixes, 6 of which are cc:stable.
      
        All except the nilfs2 fix affect MM and all are singletons - see the
        chagelogs for details"
      
      * tag 'mm-hotfixes-stable-2024-06-07-15-24' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors
        mm: fix xyz_noprof functions calling profiled functions
        codetag: avoid race at alloc_slab_obj_exts
        mm/hugetlb: do not call vma_add_reservation upon ENOMEM
        mm/ksm: fix ksm_zero_pages accounting
        mm/ksm: fix ksm_pages_scanned accounting
        kmsan: do not wipe out origin when doing partial unpoisoning
        vmalloc: check CONFIG_EXECMEM in is_vmalloc_or_module_addr()
        mm: page_alloc: fix highatomic typing in multi-block buddies
        nilfs2: fix potential kernel bug due to lack of writeback flag waiting
        memcg: remove the lockdep assert from __mod_objcg_mlstate()
        mm: arm64: fix the out-of-bounds issue in contpte_clear_young_dirty_ptes
        mm: huge_mm: fix undefined reference to `mthp_stats' for CONFIG_SYSFS=n
        mm: drop the 'anon_' prefix for swap-out mTHP counters
      dc772f82
  4. Jun 07, 2024
Loading