Linux/linux 403d133arch/arc/include/asm pgtable-bits-arcv2.h, arch/arm/include/asm pgtable.h

mm: pgtable: fix pte_swp_exclusive

Make pte_swp_exclusive return bool instead of int.  This will better
reflect how pte_swp_exclusive is actually used in the code.

This fixes swap/swapoff problems on Alpha due pte_swp_exclusive not
returning correct values when _PAGE_SWP_EXCLUSIVE bit resides in upper
32-bits of PTE (like on alpha).

Suggested-by: Al Viro <viro at zeniv.linux.org.uk>
Signed-off-by: Magnus Lindholm <linmag7 at gmail.com>
Cc: Sam James <sam at gentoo.org>
Link: https://lore.kernel.org/lkml/20250218175735.19882-2-linmag7@gmail.com/
Link: https://lore.kernel.org/lkml/20250602041118.GA2675383@ZenIV/
[ Applied as the 'sed' script Al suggested   - Linus ]
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+2-2arch/mips/include/asm/pgtable.h
+1-1arch/arc/include/asm/pgtable-bits-arcv2.h
+1-1arch/arm/include/asm/pgtable.h
+1-1arch/arm64/include/asm/pgtable.h
+1-1arch/csky/include/asm/pgtable.h
+1-1arch/hexagon/include/asm/pgtable.h
+7-720 files not shown
+27-2726 files

Linux/linux 488ef35include/linux key.h, security/keys key.c gc.c

KEYS: Invert FINAL_PUT bit

Invert the FINAL_PUT bit so that test_bit_acquire and clear_bit_unlock
can be used instead of smp_mb.

Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: David Howells <dhowells at redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko at kernel.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+3-2security/keys/key.c
+2-2security/keys/gc.c
+1-1include/linux/key.h
+6-53 files

Linux/linux aef17cbmm/damon Kconfig

Revert "mm/damon/Kconfig: enable CONFIG_DAMON by default"

This reverts commit 28615e6eed152f2fda5486680090b74aeed7b554.

No, we don't make random features default to being on.

Reported-by: Geert Uytterhoeven <geert at linux-m68k.org>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: SeongJae Park <sj at kernel.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+0-1mm/damon/Kconfig
+0-11 files

Linux/linux f09079barch/powerpc/platforms/book3s vas-api.c, arch/powerpc/platforms/powernv memtrace.c

Merge tag 'powerpc-6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux

Pull powerpc fixes from Madhavan Srinivasan:

 - a couple of fixes for out of bounds issues in memtrace and vas

Thanks to Ritesh Harjani (IBM), Haren Myneni, and Jonathan Greental

* tag 'powerpc-6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
  powerpc/vas: Return -EINVAL if the offset is non-zero in mmap()
  powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap
DeltaFile
+9-0arch/powerpc/platforms/book3s/vas-api.c
+6-2arch/powerpc/platforms/powernv/memtrace.c
+15-22 files

Linux/linux 0d67f0darch/powerpc/platforms/book3s vas-api.c

powerpc/vas: Return -EINVAL if the offset is non-zero in mmap()

The user space calls mmap() to map VAS window paste address
and the kernel returns the complete mapped page for each
window. So return -EINVAL if non-zero is passed for offset
parameter to mmap().

See Documentation/arch/powerpc/vas-api.rst for mmap()
restrictions.

Co-developed-by: Jonathan Greental <yonatan02greental at gmail.com>
Signed-off-by: Jonathan Greental <yonatan02greental at gmail.com>
Reported-by: Jonathan Greental <yonatan02greental at gmail.com>
Fixes: dda44eb29c23 ("powerpc/vas: Add VAS user space API")
Signed-off-by: Haren Myneni <haren at linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
Link: https://patch.msgid.link/20250610021227.361980-2-maddy@linux.ibm.com
DeltaFile
+9-0arch/powerpc/platforms/book3s/vas-api.c
+9-01 files

Linux/linux cd097dfarch/powerpc/platforms/powernv memtrace.c

powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap

memtrace mmap issue has an out of bounds issue. This patch fixes the by
checking that the requested mapping region size should stay within the
allocated region size.

Reported-by: Jonathan Greental <yonatan02greental at gmail.com>
Fixes: 08a022ad3dfa ("powerpc/powernv/memtrace: Allow mmaping trace buffers")
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
Link: https://patch.msgid.link/20250610021227.361980-1-maddy@linux.ibm.com

DeltaFile
+6-2arch/powerpc/platforms/powernv/memtrace.c
+6-21 files

Linux/linux 19272b3. Makefile

Linux 6.16-rc1
DeltaFile
+2-2Makefile
+2-21 files

Linux/linux 939f15etools/power/x86/turbostat turbostat.c turbostat.8

Merge tag 'turbostat-2025.06.08' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux

Pull turbostat updates from Len Brown:

 - Add initial DMR support, which required smarter RAPL probe

 - Fix AMD MSR RAPL energy reporting

 - Add RAPL power limit configuration output

 - Minor fixes

* tag 'turbostat-2025.06.08' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
  tools/power turbostat: version 2025.06.08
  tools/power turbostat: Add initial support for BartlettLake
  tools/power turbostat: Add initial support for DMR
  tools/power turbostat: Dump RAPL sysfs info
  tools/power turbostat: Avoid probing the same perf counters
  tools/power turbostat: Allow probing RAPL with platform_features->rapl_msrs cleared

    [12 lines not shown]
DeltaFile
+360-106tools/power/x86/turbostat/turbostat.c
+3-3tools/power/x86/turbostat/turbostat.8
+363-1092 files

Linux/linux be54f8cdrivers/net/ethernet/brocade/bna bnad.c, drivers/net/hamradio scc.c

Merge tag 'timers-cleanups-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer cleanup from Thomas Gleixner:
 "The delayed from_timer() API cleanup:

  The renaming to the timer_*() namespace was delayed due massive
  conflicts against Linux-next. Now that everything is upstream finish
  the conversion"

* tag 'timers-cleanups-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  treewide, timers: Rename from_timer() to timer_container_of()
DeltaFile
+25-24net/bridge/br_multicast.c
+19-13net/sctp/sm_sideeffect.c
+10-7drivers/net/wireguard/timers.c
+10-6drivers/net/ethernet/brocade/bna/bnad.c
+9-6net/bridge/br_stp_timer.c
+7-7drivers/net/hamradio/scc.c
+80-63683 files not shown
+1,151-955689 files

Linux/linux 0529ef8arch/x86/include/asm/trace fpu.h, arch/x86/kernel ioport.c process.c

Merge tag 'x86-urgent-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Thomas Gleixner:
 "A small set of x86 fixes:

   - Cure IO bitmap inconsistencies

     A failed fork cleans up all resources of the newly created thread
     via exit_thread(). exit_thread() invokes io_bitmap_exit() which
     does the IO bitmap cleanups, which unfortunately assume that the
     cleanup is related to the current task, which is obviously bogus.

     Make it work correctly

   - A lockdep fix in the resctrl code removed the clearing of the
     command buffer in two places, which keeps stale error messages
     around. Bring them back.

   - Remove unused trace events"

    [5 lines not shown]
DeltaFile
+0-15arch/x86/include/asm/trace/fpu.h
+9-4arch/x86/kernel/ioport.c
+6-0arch/x86/kernel/process.c
+4-0fs/resctrl/rdtgroup.c
+19-194 files

Linux/linux 4710eacinclude/linux time_namespace.h

Merge tag 'timers-urgent-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer fix from Thomas Gleixner:
 "Add the missing seq_file forward declaration in the timer namespace
  header"

* tag 'timers-urgent-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  timens: Add struct seq_file forward declaration
DeltaFile
+1-0include/linux/time_namespace.h
+1-01 files

Linux/linux 42fd37dtools/power/x86/turbostat turbostat.c

tools/power turbostat: version 2025.06.08

Add initial DMR support, which required smarter RAPL probe
Fix AMD MSR RAPL energy reporting
Add RAPL power limit configuration output
Minor fixes

Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+36-37tools/power/x86/turbostat/turbostat.c
+36-371 files

Linux/linux d8c0f5dtools/power/x86/turbostat turbostat.c

tools/power turbostat: Add initial support for BartlettLake

Add initial support for BartlettLake.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+1-0tools/power/x86/turbostat/turbostat.c
+1-01 files

Linux/linux fdea6b8tools/power/x86/turbostat turbostat.c

tools/power turbostat: Always check rapl_joules flag

rapl_joules bit should always be checked even if
platform_features->rapl_msrs is not set or no_msr flag is used.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+9-3tools/power/x86/turbostat/turbostat.c
+9-31 files

Linux/linux 6907852tools/power/x86/turbostat turbostat.c

tools/power turbostat: Avoid probing the same perf counters

For the RAPL package energy status counter, Intel and AMD share the same
perf_subsys and perf_name, but with different MSR addresses.

Both rapl_counter_arch_infos[0] and rapl_counter_arch_infos[1] are
introduced to describe this counter for different Vendors.

As a result, the perf counter is probed twice, and causes a failure in
in get_rapl_counters() because expected_read_size and actual_read_size
don't match.

Fix the problem by skipping the already probed counter.

Note, this is not a perfect fix. For example, if different
vendors/platforms use the same MSR value for different purpose, the code
can be fooled when it probes a rapl_counter_arch_infos[] entry that does
not belong to the running Vendor/Platform.


    [5 lines not shown]
DeltaFile
+15-0tools/power/x86/turbostat/turbostat.c
+15-01 files

Linux/linux 5663785tools/power/x86/turbostat turbostat.c

tools/power turbostat: Add Android support for MSR device handling

It uses /dev/msrN device paths on Android instead of /dev/cpu/N/msr,
updates error messages and permission checks to reflect the Android
device path, and wraps platform-specific code with #if defined(ANDROID)
to ensure correct behavior on both Android and non-Android systems.
These changes improve compatibility and usability of turbostat on
Android devices.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+17-3tools/power/x86/turbostat/turbostat.c
+17-31 files

Linux/linux 3403e89tools/power/x86/turbostat turbostat.c

tools/power turbostat: Remove add_msr_perf_counter_()

As the only caller of add_msr_perf_counter_(), add_msr_perf_counter()
just gives extra debug output on top. There is no need to keep both
functions.

Remove add_msr_perf_counter_() and move all the logic to
add_msr_perf_counter().

No functional change.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+8-12tools/power/x86/turbostat/turbostat.c
+8-121 files

Linux/linux 57b5378tools/power/x86/turbostat turbostat.c

tools/power turbostat: Quit early for unsupported RAPL counters

Quit early for unsupported RAPL counters.

No functional change.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+4-1tools/power/x86/turbostat/turbostat.c
+4-11 files

Linux/linux 83075bdtools/power/x86/turbostat turbostat.c

tools/power turbostat: Add initial support for DMR

Add initial support for DMR.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+18-0tools/power/x86/turbostat/turbostat.c
+18-01 files

Linux/linux 0362337tools/power/x86/turbostat turbostat.c

tools/power turbostat: Clean up add perf/msr counter logic

Increase the code readability by moving the no_perf/no_msr flag and the
cai->perf_name/cai->msr sanity checks into the counter probe functions.

No functional change.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+18-7tools/power/x86/turbostat/turbostat.c
+18-71 files

Linux/linux c8bca95tools/power/x86/turbostat turbostat.c

tools/power turbostat: Remove add_rapl_perf_counter_()

As the only caller of add_rapl_perf_counter_(), add_rapl_perf_counter()
just gives extra debug output on top. There is no need to keep both
functions.

Remove add_rapl_perf_counter_() and move all the logic to
add_rapl_perf_counter().

No functional change.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+10-15tools/power/x86/turbostat/turbostat.c
+10-151 files

Linux/linux b4a734dtools/power/x86/turbostat turbostat.c

tools/power turbostat: Fix RAPL_GFX_ALL typo

Fix typo in the currently unused RAPL_GFX_ALL macro definition.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+1-1tools/power/x86/turbostat/turbostat.c
+1-11 files

Linux/linux ff3d019tools/power/x86/turbostat turbostat.c

tools/power turbostat: Allow probing RAPL with platform_features->rapl_msrs cleared

platform_features->rapl_msrs describes the RAPL MSRs supported. While
RAPL Perf counters can be exposed from different kernel backend drivers,
e.g. RAPL MSR I/F driver, or RAPL TPMI I/F driver.

Thus, turbostat should first blindly probe all the available RAPL Perf
counters, and falls back to the RAPL MSR counters if they are listed in
platform_features->rapl_msrs.

With this, platforms that don't have RAPL MSRs can clear the
platform_features->rapl_msrs bits and use RAPL Perf counters only.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+23-24tools/power/x86/turbostat/turbostat.c
+23-241 files

Linux/linux 1ab2e19tools/power/x86/turbostat turbostat.c

tools/power turbostat: Introduce add_msr_counter()

probe_rapl_msr() is reused for probing RAPL MSR counters, cstate MSR
counters and MPERF/APERF/SMI MSR counters, thus its name is misleading.

Similar to add_perf_counter(), introduce add_msr_counter() to probe a
counter via MSR. Introduce wrapper function add_rapl_msr_counter() at
the same time to add extra check for Zero return value for specified
RAPL counters.

No functional change intended.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+23-9tools/power/x86/turbostat/turbostat.c
+23-91 files

Linux/linux c967900tools/power/x86/turbostat turbostat.8

tools/power turbostat.8: pm_domain wording fix

turbostat.8: clarify that uncore "domains" are Power Management domains,
aka pm_domains.

Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+2-2tools/power/x86/turbostat/turbostat.8
+2-21 files

Linux/linux 2a535d6tools/power/x86/turbostat turbostat.c

tools/power turbostat: Dump RAPL sysfs info

for example:

intel-rapl:1: psys 28.0s:100W 976.0us:100W
intel-rapl:0: package-0 28.0s:57W,max:15W 2.4ms:57W
intel-rapl:0/intel-rapl:0:0: core disabled
intel-rapl:0/intel-rapl:0:1: uncore disabled
intel-rapl-mmio:0: package-0 28.0s:28W,max:15W 2.4ms:57W

[lenb: simplified format]

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>

squish me

Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+156-0tools/power/x86/turbostat/turbostat.c
+156-01 files

Linux/linux 4d6ced7tools/power/x86/turbostat turbostat.c

tools/power turbostat: Remove add_cstate_perf_counter_()

As the only caller of add_cstate_perf_counter_(),
add_cstate_perf_counter() just gives extra debug output on top. There is
no need to keep both functions.

Remove add_cstate_perf_counter_() and move all the logic to
add_cstate_perf_counter().

No functional change.

Signed-off-by: Zhang Rui <rui.zhang at intel.com>
Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+9-13tools/power/x86/turbostat/turbostat.c
+9-131 files

Linux/linux adb4973tools/power/x86/turbostat turbostat.c

tools/power turbostat: Fix AMD package-energy reporting

commit 05a2f07db888 ("tools/power turbostat: read RAPL counters via
perf") that adds support to read RAPL counters via perf defines the
notion of a RAPL domain_id which is set to physical_core_id on
platforms which support per_core_rapl counters (Eg: AMD processors
Family 17h onwards) and is set to the physical_package_id on all the
other platforms.

However, the physical_core_id is only unique within a package and on
platforms with multiple packages more than one core can have the same
physical_core_id and thus the same domain_id. (For eg, the first cores
of each package have the physical_core_id = 0). This results in all
these cores with the same physical_core_id using the same entry in the
rapl_counter_info_perdomain[]. Since rapl_perf_init() skips the
perf-initialization for cores whose domain_ids have already been
visited, cores that have the same physical_core_id always read the
perf file corresponding to the physical_core_id of the first package
and thus the package-energy is incorrectly reported to be the same

    [12 lines not shown]
DeltaFile
+36-5tools/power/x86/turbostat/turbostat.c
+36-51 files

Linux/linux 394c112tools/power/x86/turbostat turbostat.8

tools/power turbostat.8: fix typo: idle_pct should be pct_idle

idle_pct should be pct_idle

Signed-off-by: Len Brown <len.brown at intel.com>
DeltaFile
+1-1tools/power/x86/turbostat/turbostat.8
+1-11 files

Linux/linux d9864e7arch/x86/events/intel core.c

Merge tag 'perf-urgent-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 perf fix from Thomas Gleixner:
 "A single fix for the x86 performance counters on Intel CPUs:

  The MSR offset calculations for fixed performance counters are stored
  at the wrong index in the configuration array causing the general
  purpose counter MSR offset to be overwritten, so both the general
  purpose and the fixed counters offsets are incorrect.

  Correct the array index calculation to fix that"

* tag 'perf-urgent-2025-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  perf/x86/intel: Fix incorrect MSR index calculations in intel_pmu_config_acr()
DeltaFile
+5-3arch/x86/events/intel/core.c
+5-31 files