aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
AgeCommit message (Collapse)AuthorFilesLines
2 daysMerge branch 'crc-next' of ↵Mark Brown1-1/+3
https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git
2 daysMerge branch 'next' of ↵Mark Brown1-21/+27
https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git
2 daysMerge branch 'hyperv-next' of ↵Mark Brown1-0/+49
https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown3-0/+72
https://git.kernel.org/pub/scm/linux/kernel/git/srini/nvmem.git
2 daysMerge branch 'kunit' of ↵Mark Brown1-1/+45
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git
2 daysMerge branch 'next' of ↵Mark Brown1-0/+12
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git
2 daysMerge branch 'pwm/for-next' of ↵Mark Brown2-21/+38
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown25-23/+2337
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
2 daysMerge branch 'gpio/for-next' of ↵Mark Brown5-3/+112
https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown2-0/+7
https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown4-2/+10
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-0/+53
https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git # Conflicts: # tools/testing/selftests/cgroup/test_memcontrol.c
2 daysMerge branch 'next' of ↵Mark Brown3-1/+26
https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git
2 daysMerge branch 'spmi-next' of ↵Mark Brown1-0/+1
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
2 daysMerge branch 'next' of ↵Mark Brown13-27/+259
https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git
2 daysMerge branch 'togreg' of ↵Mark Brown23-199/+770
https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git # Conflicts: # drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
2 daysMerge branch 'icc-next' of ↵Mark Brown6-18/+426
https://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc.git
2 daysMerge branch 'for-next' of ↵Mark Brown7-29/+208
https://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga.git
2 daysMerge branch 'char-misc-next' of ↵Mark Brown2-2/+0
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git # Conflicts: # drivers/gpib/cb7210/cb7210.c
2 daysMerge branch 'tty-next' of ↵Mark Brown6-6/+18
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
2 daysMerge branch 'next' of ↵Mark Brown2-0/+144
https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git # Conflicts: # drivers/thunderbolt/property.c
2 daysMerge branch 'usb-next' of ↵Mark Brown17-66/+1614
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
2 daysMerge branch 'driver-core-next' of ↵Mark Brown1-2/+3
https://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git
2 daysMerge branch 'for-leds-next' of ↵Mark Brown10-8/+379
https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git
2 daysMerge branch 'for-next' of ↵Mark Brown2-1/+8
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-1/+6
https://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git
2 daysMerge branch 'next' of https://github.com/kvm-x86/linux.gitMark Brown1-0/+29
# Conflicts: # arch/x86/include/asm/tdx.h
2 daysMerge branch 'next' of ↵Mark Brown1-2/+3
https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git
2 daysMerge branch 'next' of ↵Mark Brown2-5/+8
https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git
2 daysMerge branch 'next' of git://git.kernel.org/pub/scm/virt/kvm/kvm.gitMark Brown1-6/+4
2 daysMerge branch 'timers/drivers/next' of ↵Mark Brown3-23/+29
https://git.kernel.org/pub/scm/linux/kernel/git/daniel.lezcano/linux.git
2 daysMerge branch 'next' of ↵Mark Brown1-0/+31
https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux.git
2 daysMerge branch 'master' of ↵Mark Brown11-128/+285
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git # Conflicts: # drivers/cpufreq/Kconfig.x86 # drivers/cpufreq/Makefile
2 daysMerge branch 'for-next' of ↵Mark Brown2-3/+102
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git # Conflicts: # drivers/acpi/acpi_apd.c
2 daysMerge branch 'for-next' of ↵Mark Brown3-0/+4
https://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox.git
2 daysMerge branch 'for-next' of ↵Mark Brown72-185/+302
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
2 daysMerge branch 'next' of ↵Mark Brown2-1/+110
https://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux.git
2 daysMerge branch 'watchdog-next' of ↵Mark Brown17-82/+162
https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
2 daysMerge branch 'for-next-tpm' of ↵Mark Brown1-0/+16
https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
2 daysMerge branch 'next' of ↵Mark Brown4-1/+553
https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm.git
2 daysMerge branch 'for-next' of ↵Mark Brown5-57/+101
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
2 daysMerge branch 'for-backlight-next' of ↵Mark Brown1-0/+83
https://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git
2 daysMerge branch 'for-mfd-next' of ↵Mark Brown9-43/+462
https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
2 daysMerge branch 'next' of ↵Mark Brown3-1/+20
https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git
2 daysMerge branch 'for-next' of ↵Mark Brown2-0/+130
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-0/+1
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git
2 daysMerge branch 'next' of ↵Mark Brown1-0/+4
https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git
2 daysMerge branch 'for-next' of ↵Mark Brown16-22/+1711
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-0/+6
https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-5/+0
https://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git
2 daysMerge branch 'for-linux-next' of ↵Mark Brown1-3/+62
https://gitlab.freedesktop.org/drm/rust/kernel.git # Conflicts: # rust/kernel/alloc/kbox.rs
2 daysMerge branch 'drm-xe-next' of https://gitlab.freedesktop.org/drm/xe/kernel.gitMark Brown1-2/+2
2 daysMerge branch 'msm-next' of https://gitlab.freedesktop.org/drm/msm.gitMark Brown4-0/+290
2 daysMerge branch 'for-linux-next' of ↵Mark Brown3-2/+27
https://gitlab.freedesktop.org/drm/misc/kernel.git
2 daysMerge branch 'drm-next' of https://gitlab.freedesktop.org/drm/kernel.gitMark Brown59-257/+903
# Conflicts: # drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2 daysMerge branch 'master' of ↵Mark Brown8-57/+128
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
2 daysMerge branch 'spi-nor/next' of ↵Mark Brown1-0/+170
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git
2 daysMerge branch 'nand/next' of ↵Mark Brown1-0/+9
https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown2-6/+36
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
2 daysMerge branch 'main' of ↵Mark Brown38-4031/+975
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
2 daysMerge branch 'devel' into for-nextLinus Walleij26-23/+2372
2 daysdt-bindings: pinctl: amlogic,pinctrl-a4: Add compatible string for A9Xianwei Zhao1-0/+1
Update dt-binding document for pinctrl of Amlogic A9. In Amlogic A9 SoC, a bank mux register reuse other banks. The multiplexed part requires special processing and is therefore incompatible with the previous SoCs. Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
2 daysMerge branch 'next' of ↵Mark Brown1-0/+34
https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git
2 daysMerge branch 'linux-next' of ↵Mark Brown2-5/+1
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
2 daysMerge branch 'next' of git://linuxtv.org/media-ci/media-pending.gitMark Brown24-56/+905
2 daysMerge branch 'docs-next' of git://git.lwn.net/linux.gitMark Brown62-367/+1644
2 daysMerge branch 'hwmon-next' of ↵Mark Brown22-36/+747
https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
2 daysMerge branch 'i2c/i2c-host' of ↵Mark Brown3-43/+74
https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git
2 daysMerge branch 'next' of ↵Mark Brown7-12/+152
https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git
2 daysMerge branch 'fs-next' of linux-nextMark Brown9-8/+671
# Conflicts: # fs/btrfs/defrag.c
2 daysMerge branch 'for-next' of ↵Mark Brown2-0/+34
https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git
2 daysMerge branch 'riscv-soc-for-next' of ↵Mark Brown5-2/+73
https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git
2 daysMerge branch 'clk-next' of ↵Mark Brown1-10/+24
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-0/+7
https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
2 daysMerge branch 'for-next' of https://github.com/Xilinx/linux-xlnx.gitMark Brown1-0/+33
2 daysMerge branch 'ti-next' of ↵Mark Brown2-0/+18
https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
2 daysMerge branch 'tenstorrent-dt-for-next' of ↵Mark Brown1-8/+51
https://git.kernel.org/pub/scm/linux/kernel/git/tenstorrent/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown3-2/+5
https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git
2 daysMerge branch 'sunxi/for-next' of ↵Mark Brown4-1/+17
https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
2 daysMerge branch 'for-next' of https://github.com/spacemit-com/linuxMark Brown1-0/+1
2 daysMerge branch 'next' of ↵Mark Brown2-2/+42
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git
2 daysMerge branch 'for-next' of ↵Mark Brown15-26/+302
https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown5-1/+299
https://git.kernel.org/pub/scm/linux/kernel/git/frank.li/linux.git
2 daysMerge branch 'for-next' of ↵Mark Brown4-181/+115
https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl.git
2 daysMerge branch 'for-next' of ↵Mark Brown1-0/+2
https://git.kernel.org/pub/scm/linux/kernel/git/bmc/linux.git
2 daysMerge branch 'asahi-soc/for-next' of https://github.com/AsahiLinux/linux.gitMark Brown3-1/+22
2 daysMerge branch 'for-next' of ↵Mark Brown7-2/+433
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
2 daysMerge branch 'for-next/core' of ↵Mark Brown2-22/+49
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
2 daysMerge branch 'dma-mapping-for-next' of ↵Mark Brown1-0/+4
https://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git
2 daysMerge branch 'kbuild-for-next' of ↵Mark Brown1-8/+33
https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git
3 daysMerge branch 'mm-unstable' of ↵Mark Brown8-47/+173
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
3 daysMerge branch 'mm-nonmm-stable' of ↵Mark Brown3-2/+22
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
3 daysMerge branch 'mm-stable' of ↵Mark Brown7-46/+161
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
3 daysMerge branch 'tip/urgent' of ↵Mark Brown2-18/+4
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
3 daysMerge branch 'spdx-linus' of ↵Mark Brown2-0/+207
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/spdx.git
3 daysMerge branch 'usb-linus' of ↵Mark Brown2-6/+8
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
3 daysMerge branch 'for-linus' of ↵Mark Brown1-0/+1
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
3 daysdt-bindings: remoteproc: xlnx: Add firmware-name propertyTanmay Shah1-0/+4
The firmware-name property indicates which firmware to load on RPU during the Linux boot time. It is possible to stop the RPU after boot and load different firmware and start RPU. Signed-off-by: Tanmay Shah <tanmay.shah@amd.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20260527051611.194844-2-tanmay.shah@amd.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
3 daysMerge branch 'arm/fixes' of ↵Mark Brown1-1/+34
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
3 daysMerge remote-tracking branch 'spi/for-7.2' into spi-nextMark Brown2-3/+102
3 daysnext-20260522/vfs-braunerMark Brown4-2/+214
# Conflicts: # fs/fuse/dev.c
3 daysMerge branch '9p-next' of https://github.com/martinetd/linuxMark Brown1-4/+6
3 daysdt-bindings: mmc: sdhci-msm: Rename the binding to include 'qcom' prefixManivannan Sadhasivam1-1/+1
This is the only Qcom binding that doesn't have 'qcom' prefix in the bindings name. This doesn't match with the regex in MAINTAINERS file and the 'get_maintainer.pl' script fails to list the 'linux-arm-msm' list: Ulf Hansson <ulfh@kernel.org> (maintainer:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...) Rob Herring <robh@kernel.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Krzysztof Kozlowski <krzk+dt@kernel.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Conor Dooley <conor+dt@kernel.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Bjorn Andersson <andersson@kernel.org> (in file) Konrad Dybcio <konradybcio@kernel.org> (in file) linux-mmc@vger.kernel.org (open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...) devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) linux-kernel@vger.kernel.org (open list) Hence, rename the binding to include 'qcom' prefix so that the regex matches correctly. Reported-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Closes: https://lore.kernel.org/all/20260526151003.p4kn2vek3hpv4gzv@hu-mojha-hyd.qualcomm.com Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
3 daysMerge branches 'renesas-drivers-for-v7.2' and 'renesas-dts-for-v7.2' into ↵Geert Uytterhoeven1-2/+36
renesas-next
3 daysMerge branches 'pm-cpufreq' and 'pm-cpuidle' into linux-nextRafael J. Wysocki2-5/+1
* pm-cpufreq: cpufreq: governor: Fix stale prev_cpu_nice spike when enabling ignore_nice_load cpufreq: governor: Fix data races on per-CPU idle/nice baselines cpufreq: intel_pstate: Improve warning message on HWP-disabled hybrid CPUs cpufreq: elanfreq: Drop support for AMD Elan SC4* cpufreq: clean up dead dependencies on X86 in Kconfig cpufreq: conservative: Simplify frequency limit handling cpufreq: Avoid redundant target() calls for unchanged limits cpufreq: Fix typo in comment cpufreq: intel_pstate: Sync policy->cur during CPU offline cpufreq: Documentation: fix sampling_down_factor range cpufreq: Fix hotplug-suspend race during reboot cpufreq: pcc: fix use-after-free and double free in _OSC evaluation * pm-cpuidle: intel_idle: Drop C-states redundant when PC6 is disabled intel_idle: Introduce a helper for checking PC6 intel_idle: Add constants for MSR_PKG_CST_CONFIG_CONTROL
3 daysdt-bindings: soc: renesas: mfis: Add R-Car V4H/V4M supportWolfram Sang1-2/+36
The above SoCs have only 12 mailboxes and do not have an extra register space for mailboxes. Everything is contained in the common register set. In addition to adding these SoCs, the other entries get updated to enforce 2 register spaces and their specific number of interrupts. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20260519075620.4128-2-wsa+renesas@sang-engineering.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
3 daysdt-bindings: mmc: sdhci-msm: qcom: Add Hawi compatibleNitin Rawat1-0/+1
Document the compatible string for the SDHCI controller on the Qualcomm Hawi platform. Signed-off-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com> Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
3 daysMerge back earlier cpufreq material for 7.2Rafael J. Wysocki2-5/+1
3 daysdt-bindings: mmc: sdhci-msm: Add Eliza compatibleAbel Vesa1-0/+1
Document the compatible string for the SDHCI controller on the Eliza platform. Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
3 daysMerge branch 'nfsd-next' of ↵Mark Brown2-0/+439
https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux # Conflicts: # fs/exfat/file.c
3 daysMerge branch 'dev' of ↵Mark Brown2-2/+12
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
3 daysdt-bindings: mmc: sdhci-msm: Document the Shikra compatibleMonish Chunara1-0/+1
Document the Shikra-specific SDHCI compatible in the sdhci-msm binding. Use "qcom,sdhci-msm-v5" as the fallback compatible for the MSM SDHCI v5 controller used on Shikra. Signed-off-by: Monish Chunara <monish.chunara@oss.qualcomm.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
3 daysMerge branch into tip/master: 'x86/tdx'Ingo Molnar2-7/+26
# New commits in x86/tdx: 6712564c884d ("x86/virt/tdx: Enable TDX module runtime updates") 73be1bb72f4c ("x86/virt/tdx: Refresh TDX module version after update") bd0ba697612a ("coco/tdx-host: Lock out module updates when reading version") eb71a4c94061 ("x86/virt/seamldr: Add module update locking") 069be08012cf ("x86/virt/tdx: Restore TDX module state") f74245e39c21 ("x86/virt/seamldr: Initialize the newly-installed TDX module") d909333bf655 ("x86/virt/seamldr: Install a new TDX module") 522bacc2fbac ("x86/virt/tdx: Reset software states during TDX module shutdown") 146ac22b2b96 ("x86/virt/seamldr: Shut down the current TDX module") c507e80de947 ("x86/virt/seamldr: Abort updates after a failed step") e16ce07a9053 ("x86/virt/seamldr: Introduce skeleton for TDX module updates") 35621312a061 ("x86/virt/seamldr: Allocate and populate a module update request") 000c293c24bc ("coco/tdx-host: Implement firmware upload sysfs ABI for TDX module updates") 56b46fe202f8 ("coco/tdx-host: Don't expose P-SEAMLDR information on CPUs with erratum") b094b1684fef ("coco/tdx-host: Expose P-SEAMLDR information via sysfs") fcbc30f0d66f ("x86/virt/seamldr: Add a helper to retrieve P-SEAMLDR information") b434b916fed3 ("x86/virt/seamldr: Introduce a wrapper for P-SEAMLDR SEAMCALLs") e4afd39aefd8 ("coco/tdx-host: Expose TDX module version") c6a2ea2cfa6a ("coco/tdx-host: Introduce a "tdx_host" device") 0a7808c1b5ff ("x86/virt/tdx: Move low level SEAMCALL helpers out of <asm/tdx.h>") 2818e8c8a46d ("x86/virt/tdx: Move TDX_FEATURES0 bits to asm/tdx.h") 332d5758bbad ("x86/virt/tdx: Consolidate TDX global initialization states") 2f410fa074fb ("x86/virt/tdx: Move TDX global initialization states to file scope") 394d7f52d844 ("x86/virt/tdx: Clarify try_init_module_global() result caching") 5209e5bfe5ca ("x86/virt/tdx: Remove kexec docs") 5b25f249be32 ("x86/tdx: Disable the TDX module during kexec and kdump") b7d2173946ef ("x86/virt/tdx: Add SEAMCALL wrapper for TDH.SYS.DISABLE") 597bdf6e068e ("x86/virt/tdx: Pull kexec cache flush logic into arch/x86") 53642715861e ("x86/tdx: Move TDX architectural error codes into <asm/shared/tdx_errno.h>") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'x86/cpu'Ingo Molnar2-9/+0
# New commits in x86/cpu: 87a451161f36 ("x86/cpu: Fix a F00F bug warning and clean up surrounding code") dedcf8e10441 ("x86/cpu: Add Intel CPU model number for rugged Panther Lake") fa6dcbc69ad4 ("x86/cpuid: Introduce a centralized CPUID parser") 3aa8f9fce860 ("x86/cpu: Introduce a centralized CPUID data model") 202311a754d4 ("x86/cpuid: Introduce <asm/cpuid/leaf_types.h>") 5fbe09ebb4dc ("x86/cpuid: Rename cpuid_leaf()/cpuid_subleaf() APIs") 55cbcb6731bb ("x86/cpu: Do not include the CPUID API header in asm/processor.h") 21ff606db9c5 ("Documentation: core-api/cpu_hotplug: Remove stale cpu0_hotplug docs") 435ef16e69b9 ("x86/cpu, cpufreq: Remove AMD ELAN support") 823caa173884 ("x86/fpu: Remove the math-emu/ FPU emulation library") d8b55ce0c995 ("x86/fpu: Remove the 'no387' boot option") ab05214025ee ("x86/fpu: Remove MATH_EMULATION and related glue code") 7b49a3fb69e7 ("treewide: Explicitly include the x86 CPUID headers") 2ed46bccac39 ("x86/cpu: Remove the CONFIG_X86_INVD_BUG quirk") db1931e39ba1 ("x86/cpu, x86/platform, watchdog: Remove CONFIG_X86_RDC321X support") dbafa16ec2b6 ("x86/cpu: Remove TSC-less CONFIG_M586 support") 7d328c5de43a ("x86/cpu: Remove CPU_SUP_UMC_32 support") aaa3c14d1134 ("x86/cpu: Remove CONFIG_MWINCHIP3D/MWINCHIPC6") 4af2468b82bd ("x86: Mark AMD Geode support as orphaned") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'x86/cache'Ingo Molnar1-6/+16
# New commits in x86/cache: 1cfa74c683ea ("fs/resctrl: Document tasks file behaviour for task id 0 and idle tasks") 9a1646211f8c ("fs/resctrl: Document that automatic counter assignment is best effort") 3aec86e4ea01 ("fs/resctrl: Continue counter allocation after failure") ee3d4c81d89c ("fs/resctrl: Add monitor property 'mbm_cntr_assign_fixed'") f52abe650241 ("fs/resctrl: Disallow the software controller when MBM counters are assignable") 94a1206522d1 ("x86,fs/resctrl: Create 'event_filter' files read only if they're not configurable") 7625632fed43 ("fs/resctrl: Tidy up the error path in resctrl_mkdir_event_configs()") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'sched/core'Ingo Molnar1-0/+12
# New commits in sched/core: 5ad278dd20bd ("sched: Remove sched_class::pick_next_task()") b3a2dfa8b42e ("sched/fair: Add newidle balance to pick_task_fair()") e05777c44e53 ("sched/debug: Collapse subsequent CONFIG_SCHED_CLASS_EXT sections") 775570022345 ("sched: Use {READ,WRITE}_ONCE() for preempt_dynamic_mode") 333f6f0e11ac ("sched/debug: Use char * instead of char (*)[]") 25139c11693a ("sched/fair: Fix RCU usage in NOHZ exit path on CPU offline") 9e005ed21152 ("sched/topology: Allow multiple domains to claim sched_domain_shared") dd29c017aed6 ("sched/rt: Have RT_PUSH_IPI be default off for non PREEMPT_RT") 04f80f8b12a0 ("sched: Switch rq->next_class on proxy_resched_idle()") 61ea17a63719 ("sched/fair: Add SIS_UTIL support to select_idle_capacity()") bf6aa722198d ("sched/fair: Reject misfit pulls onto busy SMT siblings on asym-capacity") 25a32e400a14 ("sched/fair: Prefer fully-idle SMT cores in asym-capacity idle selection") fdfe5a8cd873 ("sched/fair: Attach sched_domain_shared to sd_asym_cpucapacity") c9d93a73ce87 ("sched/fair: Drop redundant RCU read lock in NOHZ kick path") acbdbab75ff4 ("sched: Unify SMT active check via sched_smt_active()") 3dbb362f90f3 ("sched/fair: Add sched_smt_active check for fastpaths") 5bc6ab2d42e5 ("sched: Simplify ifdeffery around cpu_smt_mask") 815c5cb76a3e ("topology: Introduce cpu_smt_mask for CONFIG_SCHED_SMT=n") 6d2051403d6c ("sched/fair: Update util_est after updating util_avg during dequeue") ea19506013ad ("sched/clock: Provide !HAVE_UNSTABLE_SCHED_CLOCK stub for sched_clock_stable()") 95f44886afec ("sched/cputime: Drop now-stale mul_u64_u64_div_u64() over-approximation guard") eecd5e117cfa ("sched/deadline: Fix replenishment logic for non-deferred servers") c2e390197ad1 ("sched/rt: Update default bandwidth for real-time tasks to ONE") c99b8593b060 ("sched/cache: Fix stale preferred_llc for a new task") a7660ce1590f ("sched/cache: Fix has_multi_llcs iff at least one partition has multiple LLCs") 5beff4f08727 ("sched/cache: Fix cache aware scheduling enabling for multi LLCs system") 9f7c745850b4 ("sched/cache: Fix race condition during sched domain rebuild") d6b9afab44e2 ("sched/cache: Fix checking active load balance by only considering the CFS task") 03755348b8e7 ("sched/cache: Fix unpaired account_llc_enqueue/dequeue") 91d07324c930 ("sched/cache: Annotate lockless accesses to mm->sc_stat.cpu") 9f23469401b0 ("sched/cache: Fix potential NULL mm pointer access") d943b86dfbf4 ("sched/cache: Fix rcu warning when accessing sd_llc domain") c1e7fe5e75ed ("sched/cache: Add user control to adjust the aggressiveness of cache-aware scheduling") 808915f982c2 ("sched/cache: Avoid cache-aware scheduling for memory-heavy processes") 7030513a0877 ("sched/cache: Calculate the LLC size and store it in sched_domain") 7b34bb1ca324 ("sched/cache: Skip cache-aware scheduling for single-threaded processes") deee5e27d5b6 ("sched/cache: Disable cache aware scheduling for processes with high thread counts") a2b4cf39d9d3 ("sched/cache: Allow only 1 thread of the process to calculate the LLC occupancy") 4ac4d6549a65 ("sched: Use trace_call__<tp>() to save a static branch") 067a31358143 ("sched/cache: Allow the user space to turn on and off cache aware scheduling") d59f4fd1d303 ("sched/cache: Enable cache aware scheduling for multi LLCs NUMA node") 5b1d5e6db20a ("sched/cache: Respect LLC preference in task migration and detach") 714059f79ff0 ("sched/cache: Handle moving single tasks to/from their preferred LLC") e4c9a4cb244a ("sched/cache: Add migrate_llc_task migration type for cache-aware balancing") f38cc2f0d8a3 ("sched/cache: Prioritize tasks preferring destination LLC during balancing") 9a5e22fbb0c8 ("sched/cache: Check local_group only once in update_sg_lb_stats()") 15ad45fb80ca ("sched/cache: Count tasks prefering destination LLC in a sched group") 82c960aee304 ("sched/cache: Calculate the percpu sd task LLC preference") a8d0ca0b7f2f ("sched/cache: Introduce per CPU's tasks LLC preference counter") 46afe3af7ead ("sched/cache: Track LLC-preferred tasks per runqueue") 47d8696b95f7 ("sched/cache: Assign preferred LLC ID to processes") b5ea300a17e3 ("sched/cache: Make LLC id continuous") 23b2b5ccc45c ("sched/cache: Introduce helper functions to enforce LLC migration policy") f025ef275388 ("sched/cache: Record per LLC utilization to guide cache aware scheduling decisions") b4606faab318 ("sched/cache: Limit the scan number of CPUs when calculating task occupancy") df0d98475954 ("sched/cache: Introduce infrastructure for cache-aware load balancing") abb12b9b52cf ("x86/topology: Add paramter to split LLC") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'locking/context'Ingo Molnar1-1/+1
# New commits in locking/context: f45c5c4adb27 ("compiler-context-analysis: Bump required Clang version to 23") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'irq/drivers'Ingo Molnar5-110/+229
# New commits in irq/drivers: e61654fbc3bc ("irqchip/gic-v4: Don't advertise VLPIs if no ITS is probed") 5fd6f2154734 ("irqchip/gic-v3-its: Use FIELD_MODIFY()") 2ee2a685ee83 ("irqchip/econet-en751221: Support MIPS 34Kc VEIC mode") 02bea6ff684b ("dt-bindings: interrupt-controller: econet: Add CPU interrupt mapping") 5b9cb104594f ("irqchip/meson-gpio: Add support for Amlogic A9 SoCs") f51c99a0e502 ("dt-bindings: interrupt-controller: Add support for Amlogic A9 SoCs") e8d3dcdf9f57 ("irqchip/meson-gpio: Use the correct register in meson_s4_gpio_irq_set_type()") 8b9db6739610 ("irqchip/starfive: Fix error check for devm_platform_ioremap_resource()") 76841b0ea8be ("irqchip/qcom: Unify user-visible "Qualcomm" name") 5a59e82f95d3 ("irqchip/gic: Replace __ASSEMBLY__ with __ASSEMBLER__") 96c0c9b48850 ("irqchip/starfive: Implement irq_set_type() and irq_ack() callbacks") 5d1b12880fd8 ("irqchip/starfive: Increase the interrupt source number up to 64") 2f59ca185497 ("irqchip/starfive: Use devm_ interfaces to simplify resource release") ac2005bba8d9 ("irqchip/starfive: Rename jh8100 to jhb100") a540d544db1c ("dt-bindings: interrupt-controller: Repurpose binding for unreleased jh8100 for jhb100") d3587cc4a5e6 ("irqchip/aspeed-intc: Remove AST2700-A0 support") 46e39ee92d14 ("irqchip/ast2700-intc: Add KUnit tests for route resolution") 07825e41519a ("irqchip/ast2700-intc: Add AST2700-A2 support") 51561ad8c89c ("dt-bindings: interrupt-controller: Describe AST2700-A2 hardware instead of A0") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'timers/merge'Ingo Molnar1-0/+1
# New commits in timers/merge: 3eb4923e6851 ("clocksource: Add devm_clocksource_register_*() helpers") c8d32a0389fb ("timers: Fix flseep() typo in kernel-doc comment") 5d330d652d7a ("hrtimer: Fix the bogus return type of __hrtimer_start_range_ns()") 3af1f49f415d ("hrtimer: Return ktime_t from hrtimer_get_next_event()/hrtimer_next_event_without()") 33d4bfc49613 ("clocksource: Clean up clocksource_update_freq() functions") ed3b3c497668 ("alarmtimer: Remove stale return description from alarm_handle_timer()") b00385b8d081 ("selftests/posix_timers: Use CLOCK_THREAD_CPUTIME_ID for ITIMER_PROF measurements") cab0cd0130eb ("scripts/timers: Add timer_migration_tree.py") 5a7dfbcbbdb6 ("timers/migration: Handle capacity in connect tracepoints") 098cbaad8e57 ("timers/migration: Split per-capacity hierarchies") 3ba25488380f ("timers/migration: Track CPUs in a hierarchy") ff65875f80d1 ("timers/migration: Abstract out hierarchy to prepare for CPU capacity awareness") ed78a7019419 ("alarmtimer: Remove unused interfaces") 12e4311aa5b2 ("netfilter: xt_IDLETIMER: Switch to alarm_start_timer()") 9fa2e38ab749 ("power: supply: charger-manager: Switch to alarm_start_timer()") 7dda99952ced ("fs/timerfd: Use the new alarm/hrtimer functions") f4b58f61da79 ("alarmtimer: Convert posix timer functions to alarm_start_timer()") 183d00b72713 ("alarmtimer: Provide alarm_start_timer()") acc071343d29 ("posix-timers: Switch to hrtimer_start_expires_user()") cfb7fe3fdd4c ("posix-timers: Handle the timer_[re]arm() return value") 6fdb2677a594 ("posix-timers: Expand timer_[re]arm() callbacks with a boolean return value") b40c927345a9 ("hrtimer: Use hrtimer_start_expires_user() for hrtimer sleepers") bd5956166d20 ("hrtimer: Provide hrtimer_start_range_ns_user()") 68ed094971b0 ("clocksource/drivers/timer-of: Make the code compatible with modules") 2423405880c2 ("clocksource/drivers/mmio: Make the code compatible with modules") fed9f727cc3f ("clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()") 045a9dac7eb7 ("clocksource/drivers/timer-rtl-otto: Make rttm_cs variable static") b385caf91868 ("dt-bindings: timer: fsl,imxgpt: add compatible string fsl,imx25-epit") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'x86/urgent'Ingo Molnar2-18/+4
# New commits in x86/urgent: 8aeb879baf12 ("x86/kvm/vmx: Fix x86_64 CFI build") a17dc12bfed8 ("x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines") cda64169bade ("x86/microcode: Do not access MSR_IA32_PLATFORM_ID when running as a guest") 80501dff814e ("Documentation/arch/x86: Hide clearcpuid=") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 daysMerge branch into tip/master: 'x86/merge'Ingo Molnar0-0/+0
# New commits in x86/merge: 1458ade7469d ("x86/microcode: Fix comment in microcode_loader_disabled()") 00e05495c572 ("scripts/x86/intel: Add a script to update the old microcode list") 515c6b216021 ("x86/microcode/intel: Refresh old_microcode defines with Nov 2025 release") Signed-off-by: Ingo Molnar <mingo@kernel.org>
3 dayscrypto: af_alg - Document that it is *always* slowerDemi Marie Obenour1-2/+17
Without support for zero-copy or off-CPU offloads, AF_ALG is always slower than software cryptography. Its only advantage is that it might save code size. However, this is largely mitigated by lightweight userspace cryptographic libraries. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
3 dayscrypto: af_alg - Drop support for off-CPU cryptographyDemi Marie Obenour1-1/+6
AF_ALG is deprecated and exposed to unprivileged userspace. Only use the least buggy algorithm implementations: the pure software ones. This removes one of the main advantages of AF_ALG, which is the ability to use it with off-CPU accelerators. However, using off-CPU accelerators has huge overheads, both in performance and attack surface. I have yet to see real-world, performance-critical workloads where using an accelerator via AF_ALG is actually a win over doing cryptography in userspace. If using an off-CPU accelerator really does turn out to be a win, a new API should be developed that is actually a good fit for it. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
3 daysdocs: mm: clarify that user_reserve_kbytes has no effect when ↵Brian Masney1-0/+2
overcommit_memory is set to 0 or 1 Looking at __vm_enough_memory() in mm/util.c, user_reserve_kbytes has no effect when overcommit_memory is set to 0 or 1. The documentation for overcommit_memory already references user_reserve_kbytes when the flag is set to 2. Let's go ahead and add a clarification to user_reserve_kbytes in vm.rst that it has no effect when overcommit_memory is set to 0 or 1. Link: https://lore.kernel.org/20260528-mm-clarify-docs-v1-1-aa88e83b4bfd@redhat.com Signed-off-by: Brian Masney <bmasney@redhat.com> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysmm/dmapool: use static key for boot-time debug enablementLi RongQing1-0/+5
Replace the #ifdef CONFIG_SLUB_DEBUG_ON conditional compilation with a static key (dmapool_debug_enabled). This allows enabling dmapool debugging at boot time via: dmapool_debug Instead of requiring CONFIG_SLUB_DEBUG_ON at compile time. Benefits: - Debugging can be enabled without rebuilding the kernel - Uses standard kernel static_key mechanism with minimal overhead Link: https://lore.kernel.org/20260524034015.1830-1-lirongqing@baidu.com Suggested-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> Signed-off-by: Li RongQing <lirongqing@baidu.com> Cc: David Hildenbrand <david@kernel.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysselftests/mm: rename hugepage-* tests to hugetlb-*Mike Rapoport (Microsoft)1-4/+4
hugepage could mean both THP and HugeTLB these days. Rename hugepage-* tests for HugeTLB to hugetlb-* to avoid confusion. Make sure that Makefile update keeps alphabetical ordering of the TEST_GEN_FILES entries. Keep old binary names in .gitignore because Linus prefers it this way. Link: https://lore.kernel.org/20260511162840.375890-8-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Donet Tom <donettom@linux.ibm.com> Reviewed-by: Li Wang <li.wang@linux.dev> Tested-by: Sarthak Sharma <sarthak.sharma@arm.com> Tested-by: Luiz Capitulino <luizcap@redhat.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Dev Jain <dev.jain@arm.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Leon Romanovsky <leon@kernel.org> Cc: Liam Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Nico Pache <npache@redhat.com> Cc: Peter Xu <peterx@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysselftests/mm: merge map_hugetlb into hugepage-mmapMike Rapoport (Microsoft)1-5/+2
Both tests create a hugettlb mapping, fill it with data and verify the data, the only difference is that one uses file-backed memory and another one uses anonymous memory. Merge both tests into a single file. Link: https://lore.kernel.org/20260511162840.375890-7-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Luiz Capitulino <luizcap@redhat.com> Reviewed-by: Donet Tom <donettom@linux.ibm.com> Tested-by: Luiz Capitulino <luizcap@redhat.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Dev Jain <dev.jain@arm.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Leon Romanovsky <leon@kernel.org> Cc: Liam Howlett <liam@infradead.org> Cc: Li Wang <li.wang@linux.dev> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Nico Pache <npache@redhat.com> Cc: Peter Xu <peterx@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Sarthak Sharma <sarthak.sharma@arm.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysadd back note and edit doc about khugepaged limitsNico Pache1-0/+5
Link: https://lore.kernel.org/b457f6e9-ae12-4e1f-8484-f3043ca62276@redhat.com Signed-off-by: Nico Pache <npache@redhat.com> Cc: David Hildenbrand <david@kernel.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Zi Yan <ziy@nvidia.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: "Liam R. Howlett" <liam@infradead.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Dev Jain <dev.jain@arm.com> Cc: Barry Song <baohua@kernel.org> Cc: Lance Yang <lance.yang@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocumentation: mm: update the admin guide for mTHP collapseNico Pache1-20/+30
Now that we can collapse to mTHPs lets update the admin guide to reflect these changes and provide proper guidance on how to utilize it. Link: https://lore.kernel.org/20260522150009.121603-15-npache@redhat.com Signed-off-by: Nico Pache <npache@redhat.com> Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: Brendan Jackman <jackmanb@google.com> Cc: Byungchul Park <byungchul@sk.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Hildenbrand (Arm) <david@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Dev Jain <dev.jain@arm.com> Cc: Gregory Price <gourry@gourry.net> Cc: "Huang, Ying" <ying.huang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jan Kara <jack@suse.cz> Cc: Jann Horn <jannh@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Joshua Hahn <joshua.hahnjy@gmail.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Liam R. Howlett <liam@infradead.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Nanyong Sun <sunnanyong@huawei.com> Cc: Pedro Falcato <pfalcato@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Rafael Aquini <raquini@redhat.com> Cc: Rakie Kim <rakie.kim@sk.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shivank Garg <shivankg@amd.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Takashi Iwai (SUSE) <tiwai@suse.de> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Usama Arif <usamaarif642@gmail.com> Cc: Usama Arif <usama.arif@linux.dev> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Will Deacon <will@kernel.org> Cc: Yang Shi <yang@os.amperecomputing.com> Cc: Zach O'Keefe <zokeefe@google.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysmm/khugepaged: add per-order mTHP collapse failure statisticsNico Pache1-0/+14
Add three new mTHP statistics to track collapse failures for different orders when encountering swap PTEs, excessive none PTEs, and shared PTEs: - collapse_exceed_swap_pte: Increment when mTHP collapse fails due to encountering a swap PTE. - collapse_exceed_none_pte: Counts when mTHP collapse fails due to exceeding the none PTE threshold for the given order - collapse_exceed_shared_pte: Counts when mTHP collapse fails due to encountering a shared PTE. These statistics complement the existing THP_SCAN_EXCEED_* events by providing per-order granularity for mTHP collapse attempts. The stats are exposed via sysfs under `/sys/kernel/mm/transparent_hugepage/hugepages-*/stats/` for each supported hugepage size. As we currently do not support collapsing mTHPs that contain a swap or shared entry, those statistics keep track of how often we are encountering failed mTHP collapses due to these restrictions. We will add support for mTHP collapse for anonymous pages next; lets also track when this happens at the PMD level within the per-mTHP stats. Link: https://lore.kernel.org/20260522150009.121603-9-npache@redhat.com Signed-off-by: Nico Pache <npache@redhat.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Bagas Sanjaya <bagasdotme@gmail.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: Brendan Jackman <jackmanb@google.com> Cc: Byungchul Park <byungchul@sk.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Hildenbrand (Arm) <david@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Dev Jain <dev.jain@arm.com> Cc: Gregory Price <gourry@gourry.net> Cc: "Huang, Ying" <ying.huang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jan Kara <jack@suse.cz> Cc: Jann Horn <jannh@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Joshua Hahn <joshua.hahnjy@gmail.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Nanyong Sun <sunnanyong@huawei.com> Cc: Pedro Falcato <pfalcato@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Rafael Aquini <raquini@redhat.com> Cc: Rakie Kim <rakie.kim@sk.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shivank Garg <shivankg@amd.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Takashi Iwai (SUSE) <tiwai@suse.de> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Usama Arif <usamaarif642@gmail.com> Cc: Usama Arif <usama.arif@linux.dev> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Will Deacon <will@kernel.org> Cc: Yang Shi <yang@os.amperecomputing.com> Cc: Zach O'Keefe <zokeefe@google.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysmm/khugepaged: generalize alloc_charge_folio()Dev Jain1-0/+8
Pass order to alloc_charge_folio() and update mTHP statistics. Link: https://lore.kernel.org/20260522150009.121603-3-npache@redhat.com Signed-off-by: Dev Jain <dev.jain@arm.com> Co-developed-by: Nico Pache <npache@redhat.com> Signed-off-by: Nico Pache <npache@redhat.com> Reviewed-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Lance Yang <lance.yang@linux.dev> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> Reviewed-by: Zi Yan <ziy@nvidia.com> Acked-by: Usama Arif <usama.arif@linux.dev> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Alistair Popple <apopple@nvidia.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Bagas Sanjaya <bagasdotme@gmail.com> Cc: Barry Song <baohua@kernel.org> Cc: Brendan Jackman <jackmanb@google.com> Cc: Byungchul Park <byungchul@sk.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Rientjes <rientjes@google.com> Cc: Gregory Price <gourry@gourry.net> Cc: "Huang, Ying" <ying.huang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jan Kara <jack@suse.cz> Cc: Jann Horn <jannh@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Joshua Hahn <joshua.hahnjy@gmail.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Liam R. Howlett <liam@infradead.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Nanyong Sun <sunnanyong@huawei.com> Cc: Pedro Falcato <pfalcato@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Rafael Aquini <raquini@redhat.com> Cc: Rakie Kim <rakie.kim@sk.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shivank Garg <shivankg@amd.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Takashi Iwai (SUSE) <tiwai@suse.de> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Usama Arif <usamaarif642@gmail.com> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Will Deacon <will@kernel.org> Cc: Yang Shi <yang@os.amperecomputing.com> Cc: Zach O'Keefe <zokeefe@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: clarify current_value of quota goalsMaksym Shcherba1-2/+4
The sysfs interface for DAMON quota goals includes a `current_value` file. This file is not updated by the kernel and only serves to receive user input. Clarify in the documentation that the kernel does not update `current_value`, and that reading it only has meaning when `target_metric` is set to `user_input`. While at it, fix missing commas in the goal files list. Link: https://lore.kernel.org/20260521202020.126500-3-maksym.shcherba@lnu.edu.ua Signed-off-by: Maksym Shcherba <maksym.shcherba@lnu.edu.ua> Reviewed-by: SeongJae Park <sj@kernel.org> Assisted-by: Antigravity:Gemini-3.1-Pro Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/{ABI,admin-guide}/damon: fix various typoesZenghui Yu2-10/+10
``damon_target_idx`` was wrongly written as ``target_idx`` in the docs. Fix it all over the place, as well as the wrong directory count, grammar, etc. Link: https://lore.kernel.org/20260520012104.93602-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport (Microsoft) <rppt@kernel.org> Cc: niecheng <niecheng1@uniontech.com> Cc: Sakurai Shun <ssh1326@icloud.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/design: fix three typosSakurai Shun1-3/+3
L140: "unsinged" -> "unsigned" L371: "sampleing" -> "sampling" L387: "multipled" -> "multiplied" Link: https://lore.kernel.org/20260520012104.93602-3-sj@kernel.org Signed-off-by: Sakurai Shun <ssh1326@icloud.com> Signed-off-by: SeongJae Park <sj@kernel.org> Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: niecheng <niecheng1@uniontech.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Zenghui Yu <zenghui.yu@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocumentation/admin-guide/mm: fix typos in transhuge.rstLeon Hwang1-2/+2
Fix these two typos: 1. approporiately -> appropriately 2. presure -> pressure Link: https://lore.kernel.org/20260520051751.74396-1-leon.hwang@linux.dev Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Reviewed-by: Lance Yang <lance.yang@linux.dev> Reviewed-by: SeongJae Park <sj@kernel.org> Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: Dev Jain <dev.jain@arm.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Leon Hwang <leon.hwang@linux.dev> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Nico Pache <npache@redhat.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: update for memcg damon filterSeongJae Park1-2/+4
Update DAMON usage document for the newly added belonging memory cgroup attribute monitoring feature. Link: https://lore.kernel.org/20260518234119.97569-29-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/design: update for memcg damon filterSeongJae Park1-2/+2
Update DAMON design document for the newly added belonging memory cgroup attribute monitoring feature. Link: https://lore.kernel.org/20260518234119.97569-28-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: document data attributes monitoringSeongJae Park2-3/+43
Update DAMON usage document for the newly added data attributes monitoring feature. Link: https://lore.kernel.org/20260518234119.97569-22-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/design: document data attributes monitoringSeongJae Park1-0/+37
Update DAMON design document for newly added data attributes monitoring feature. Link: https://lore.kernel.org/20260518234119.97569-21-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysdocs/mm: fix typo in process_addrs.rstSakurai Shun1-1/+1
Replace "presense" with "presence" Link: https://lore.kernel.org/20260517103640.45444-1-ssh1326@icloud.com Signed-off-by: Sakurai Shun <ssh1326@icloud.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysmm/hugetlb_cma: restrict hugetlb_cma parameter to gigantic-page alignmentSang-Heon Jeon1-0/+4
Existing hugetlb_cma parameter handling logic rejects sizes smaller than one gigantic page, but rounds up larger sizes that are not a multiple of it. The two behaviors are inconsistent and neither is documented. To remove existing inconsistent and undefined behavior, restrict hugetlb_cma parameter to only accept multiples of the gigantic page size. After this restriction, the redundant round_up() in the allocation loop can be removed. The new restriction is also documented in kernel-parameters.txt. Also, including other minor changes for readability improvement with no functional change. Link: https://lore.kernel.org/20260503084225.415980-1-ekffu200098@gmail.com Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Suggested-by: Muchun Song <muchun.song@linux.dev> Acked-by: Muchun Song <muchun.song@linux.dev> Acked-by: Oscar Salvador <osalvador@suse.de> Cc: David Hildenbrand <david@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysraid6: improve the public interfaceChristoph Hellwig1-2/+2
Stop directly calling into function pointers from users of the RAID6 PQ API, and provide exported functions with proper documentation and API guarantees asserts where applicable instead. Link: https://lore.kernel.org/20260518051804.462141-8-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Ard Biesheuvel <ardb@kernel.org> # kunit only on arm64 Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Alexandre Ghiti <alex@ghiti.fr> Cc: Arnd Bergmann <arnd@arndb.de> Cc: "Borislav Petkov (AMD)" <bp@alien8.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Chris Mason <clm@fb.com> Cc: Christian Borntraeger <borntraeger@linux.ibm.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: David Sterba <dsterba@suse.com> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Li Nan <linan122@huawei.com> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Song Liu <song@kernel.org> Cc: Sven Schnelle <svens@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: WANG Xuerui <kernel@xen0n.name> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 dayskcov: allow simultaneous KCOV_ENABLE/KCOV_REMOTE_ENABLEJann Horn1-0/+6
Allow the same userspace thread to simultaneously collect normal coverage in syscall context (KCOV_ENABLE) and remote coverage of asynchronous work created by the thread (KCOV_REMOTE_ENABLE). With this, remote KCOV coverage becomes useful for generic fuzzing and not just fuzzing of specific data injection interfaces. This requires that the task_struct::kcov_* fields are separated into ones that are used by the task that generates coverage, and ones that are used by the task that requested remote coverage. To split this up: - Split task_struct::kcov into kcov and kcov_remote. kcov_task_exit() now has to clean up both separately. - Only use task_struct::kcov_mode on the task that generates coverage. - Only reset task_struct::kcov_handle on the task that requested remote coverage. After this change, fields used by the task that generates coverage are: - kcov_mode - kcov_size - kcov_area - kcov - kcov_sequence - kcov_softirq Fields used by the task that requested remote coverage are: - kcov_remote - kcov_handle [jannh@google.com: remove unused constant KCOV_MODE_REMOTE, per Dmitry] Link: https://lore.kernel.org/20260515-kcov-simultaneous-remote-v2-1-56fde1cfa509@google.com [jannh@google.com: update documentation on remote coverage collection] Link: https://lore.kernel.org/20260519-kcov-docs-v1-1-5bb22f4cb20c@google.com [jannh@google.com: move and reword sentence on simultaneous normal/remote collection Link: https://lore.kernel.org/20260520-kcov-docs-v2-1-819f78778763@google.com Link: https://lore.kernel.org/20260505-kcov-simultaneous-remote-v1-1-a670ba7cefd2@google.com Signed-off-by: Jann Horn <jannh@google.com> Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Marco Elver <elver@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 dayscheckpatch: add option to not force /* */ for SPDXPetr Vorel1-0/+7
Add option --spdx-cxx-comments to not force C comments (/* */) for SPDX, but allow also C++ comments (//). As documented in aa19a176df95d6, this is required for some old toolchains still have older assembler tools which cannot handle C++ style comments. This avoids forcing this for projects which vendored checkpatch.pl (e.g. LTP or u-boot). Link: https://lore.kernel.org/20260421211408.383972-2-pvorel@suse.cz Signed-off-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Perches <joe@perches.com> Cc: Dwaipayan Ray <dwaipayanray1@gmail.com> Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 dayscheckpatch: allow passing config directoryPetr Vorel1-0/+7
checkpatch.pl searches for .checkpatch.conf in $CWD, $HOME and $CWD/.scripts. Allow passing a single directory via CHECKPATCH_CONFIG_DIR environment variable (empty value is ignored). This allows to directly use project configuration file for projects which vendored checkpatch.pl (e.g. LTP or u-boot). Although it'd be more convenient for user to have --conf-dir option (instead of using environment variable), code would get ugly because options from the configuration file needs to be read before processing command line options with Getopt::Long. While at it, document directories and environment variable in -h help and HTML doc. Link: https://lore.kernel.org/20260421211408.383972-1-pvorel@suse.cz Signed-off-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Perches <joe@perches.com> Cc: Dwaipayan Ray <dwaipayanray1@gmail.com> Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/stat: document kdamond_pid parameterSeongJae Park1-0/+7
Update DAMON_STAT usage document for newly added kdamond_pid parameter. Link: https://lore.kernel.org/20260502020505.80822-3-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/reclaim: update for autotune_monitoring_intervalsSeongJae Park1-0/+11
Update DAMON_RECLAIM usage document for the newly added monitoring intervals auto-tuning enablement parameter. Link: https://lore.kernel.org/20260501011740.81988-3-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/ABI/damon: mark schemes/<S>/filters/ deprecatedSeongJae Park1-28/+34
Now the 'filters/' directory is deprecated. Update ABI document to also announce the fact. Also update the descriptions of the files to be based on 'core_filter/' directory, to make the old descriptions ready to be removed when the time arrives. Link: https://lore.kernel.org/20260429150309.82282-3-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: mark scheme filters sysfs dir as deprecatedSeongJae Park1-4/+4
Patch series "mm/damon/sysfs: document filters/ directory as deprecated". Commit ab71d2d30121 ("mm/damon/sysfs-schemes: let damon_sysfs_scheme_set_filters() be used for different named directories") introduced alternatives of 'filters' directory, namely core_filters/ and 'ops_filters/ directories. Now the alternatives are well stabilized and ready for all users. All filters/ directory use cases are expected to be able to be migrated to the alternatives. An LTS kernel having the alternatives, namely 6.18.y, is also released. Existence of filters/ directory is only confusing. It would be better not immediately removing the directory, though. There could be users that need time before migrating to the alternatives. There might be unexpected use cases that the alternatives cannot support. Doing the deprecation step by step across multiple years like DAMON debugfs deprecation would be safer. Start the deprecation changes by announcing the deprecation on the documents. Every year, one more action for completely removing the directory will be followed, like DAMON debugfs deprecation did. Following yearly actions are currently expected. In 2027, deprecation warning kernel messages will be printed once, for use of filters/ directory. In 2028, filters/ directory will be renamed to filters_DEPRECATED/. In 2029, filters_DEPRECATED/ directory will be removed. This patch (of 2): The alternatives of 'filters/' directory, namely 'core_filters/' and 'ops_filters/', can fully support all the features 'filters/' directory can do, and provide better user experience. Having 'filters/' directory is only confusing to users. Announce it as deprecated on the usage document. Link: https://lore.kernel.org/20260429150309.82282-1-sj@kernel.org Link: https://lore.kernel.org/20260429150309.82282-2-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/lru_sort: update for entire memory monitoringSeongJae Park1-2/+4
Update DAMON_LRU_SORT usage document for the changed default monitoring target region selection. Link: https://lore.kernel.org/20260429041232.90257-8-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/reclaim: update for entire memory monitoringSeongJae Park1-2/+4
Update DAMON_RECLAIM usage document for the changed default monitoring target region selection. Link: https://lore.kernel.org/20260429041232.90257-7-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/ABI/damon: update for pause sysfs fileSeongJae Park1-0/+7
Update DAMON ABI document for the DAMON context execution pause/resume feature. Link: https://lore.kernel.org/20260427151231.113429-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: update for pause fileSeongJae Park1-4/+8
Update DAMON usage document for the DAMON context execution pause/resume feature. Link: https://lore.kernel.org/20260427151231.113429-5-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/design: update for context pause/resume featureSeongJae Park1-0/+7
Update DAMON design document for the context execution pause/resume feature. Link: https://lore.kernel.org/20260427151231.113429-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysmm/damon: support MADV_COLLAPSE via DAMOS_COLLAPSE scheme actionAsier Gutierrez1-0/+4
This patch set introces a new action: DAMOS_COLLAPSE. For DAMOS_HUGEPAGE and DAMOS_NOHUGEPAGE to work, khugepaged should be working, since it relies on hugepage_madvise to add a new slot. This slot should be picked up by khugepaged and eventually collapse (or not, if we are using DAMOS_NOHUGEPAGE) the pages. If THP is not enabled, khugepaged will not be working, and therefore no collapse will happen. DAMOS_COLLAPSE eventually calls madvise_collapse, which will collapse the address range synchronously. In cases where there is a large VMA (databases, for example), DAMOS_COLLAPSE allows us to collapse only the hot region, and not the entire VMA. This new action may be required to support autotuning with hugepage as a goal[1]. ========= Benchmarks: ========= MySQL ===== Tests were performed in an ARM physical server with MariaDB 10.5 and sysbench. Read only benchmark was perform with gaussian row hitting, which follows a normal distribution. T n, D h: THP set to never, DAMON action set to hugepage T m, D h: THP set to madvise, DAMON action set to hugepage T n, D c: THP set to never, DAMON action set to collapse Memory consumption. Lower is better. +------------------+----------+----------+----------+ | | T n, D h | T m, D h | T n, D c | +------------------+----------+----------+----------+ | Total memory use | 2.13 | 2.20 | 2.20 | | Huge pages | 0 | 1.3 | 1.27 | +------------------+----------+----------+----------+ Performance in TPS (Transactions Per Second). Higher is better. T n, D h: 18225.58 T m, D h 18252.93 T n, D c: 18270.21 Performance counter I got the number of L1 D/I TLB accesses and the number a D/I TLB accesses that triggered a page walk. I divided the second by the first to get the percentage of page walkes per TLB access. The lower the better. +---------------+--------------+--------------+--------------+ | | T n, D h | T m, D h | T n, D c | +---------------+--------------+--------------+--------------+ | L1 DTLB | 127248242753 | 125431020479 | 125327001821 | | L1 ITLB | 80332558619 | 79346759071 | 79298139590 | | DTLB walk | 75011087 | 52800418 | 55895794 | | ITLB walk | 71577076 | 71505137 | 67262140 | | DTLB % misses | 0.058948623 | 0.042095183 | 0.044599961 | | ITLB % misses | 0.089100954 | 0.090117275 | 0.084821839 | +---------------+--------------+--------------+--------------+ Masim ===== I used masim with the "demo" configuration, but changing the times to 100 seconds for the initial phase and 50 seconds for the rest of the phases. Memory consumption: +------------------+----------+----------+----------+ | | T n, D h | T m, D h | T n, D c | +------------------+----------+----------+----------+ | Total memory use | 2.38 GB | 2.36 GB | 2.37 GB | | Huge pages | 0 | 190 MB | 188 MB | +------------------+----------+----------+----------+ Performance: THP never, DAMOS_HUGEPAGE initial phase: 40,491 accesses/msec, 100001 msecs run low phase 0: 39,658 accesses/msec, 50002 msecs run high phase 0: 41,678 accesses/msec, 50000 msecs run low phase 1: 39,625 accesses/msec, 50003 msecs run high phase 1: 41,658 accesses/msec, 50002 msecs run low phase 2: 39,642 accesses/msec, 50002 msecs run high phase 2: 41,640 accesses/msec, 50001 msecs run THP madvise, DAMOS_HUGEPAGE initial phase: 51,977 accesses/msec, 100000 msecs run low phase 0: 86,953 accesses/msec, 50000 msecs run high phase 0: 94,812 accesses/msec, 50000 msecs run low phase 1: 101,017 accesses/msec, 50000 msecs run high phase 1: 94,841 accesses/msec, 50000 msecs run low phase 2: 100,993 accesses/msec, 50000 msecs run high phase 2: 94,791 accesses/msec, 50001 msecs run THP never, DAMOS_COLLAPSE initial phase: 93,678 accesses/msec, 100001 msecs run low phase 0: 101,475 accesses/msec, 50000 msecs run high phase 0: 98,589 accesses/msec, 50000 msecs run low phase 1: 101,531 accesses/msec, 50001 msecs run high phase 1: 98,506 accesses/msec, 50001 msecs run low phase 2: 101,458 accesses/msec, 50001 msecs run high phase 2: 98,555 accesses/msec, 50000 msecs run Memory consumption dynamic (how quickly collapses occur): It shows in seconds how many huge pages are allocated. +----+----------+----------+ | | T m, D h | T n, D c | +----+----------+----------+ | 5 | 32 | 188 | | 10 | 48 | 188 | | 15 | 64 | 188 | | 20 | 96 | 188 | | 30 | 112 | 188 | | 35 | 144 | 188 | | 40 | 160 | 188 | | 45 | 190 | 188 | | 50 | 190 | 188 | | 55 | 190 | 188 | | 60 | 190 | 188 | +----+----------+----------+ ========= - We can see that DAMOS "hugepage" action works only when THP is set to madvise. "collapse" action works even when THP is set to never. - Performance for "collapse" action is slightly lower than "hugepage" action and THP madvise. This is due to the fact that collapases occur synchronously. With "hugepage" they may occur during page faults. - Memory consumption is slighly lower for "collapse" than "hugepage" with THP madvise. This is due to the khugepage collapses all VMAs, while "collapse" action only collapses the VMAs in the hot region. - There is an improvement in TLB utilization when collapse through "hugepage" or "collapse" actions are triggered. The amount of TLB misses is lower. - "collapse" action is performance synchronously, which means that page collapses happen earlier and more rapidly. This can be useful or not, depending on the scenario. - "hugepage" action may trigger a VMA split in some scenarios, since it needs to change the flag of the VMA to THP enabled. This may lead to additional overhead. Collapse action just adds a new option to chose the correct system balance. Link: https://lore.kernel.org/20260426231619.107231-5-sj@kernel.org Link: https://lore.kernel.org/damon/20260313000816.79933-1-sj@kernel.org/ [1] Signed-off-by: Asier Gutierrez <gutierrez.asier@huawei-partners.com> Signed-off-by: SeongJae Park <sj@kernel.org> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: Cheng-Han Wu <hank20010209@gmail.com> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Liew Rui Yan <aethernet65535@gmail.com> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon: fix 'parametrs' typoCheng-Han Wu2-2/+2
Fix the misspelling of "parametrs" as "parameters" in reclaim.rst and lru_sort.rst. Link: https://lore.kernel.org/20260426231619.107231-3-sj@kernel.org Signed-off-by: Cheng-Han Wu <hank20010209@gmail.com> Signed-off-by: SeongJae Park <sj@kernel.org> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: Asier Gutierrez <gutierrez.asier@huawei-partners.com> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Liew Rui Yan <aethernet65535@gmail.com> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <skhan@linuxfoundation.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/maintainer-profile: add AI review usage guidelineSeongJae Park1-0/+21
DAMON is opted-in for DAMON patches scanning [1] and email delivery [2]. Clarify how that could be used on DAMON maintainer profile. Link: https://lore.kernel.org/20260412211932.89038-1-sj@kernel.org Link: https://github.com/sashiko-dev/sashiko/commit/ad9f4a98f958 [1] Link: https://github.com/sashiko-dev/sashiko/commit/b554c7b6e733 [2] Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/ABI/damon: document fail_charge_{num,denom}SeongJae Park1-0/+12
Update DAMON ABI document for the DAMOS action failed regions quota charge ratio control sysfs files. Link: https://lore.kernel.org/20260428013402.115171-8-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/admin-guide/mm/damon/usage: document fail_charge_{num,denom} filesSeongJae Park1-4/+14
Update DAMON usage document for the DAMOS action failed regions quota charge ratio control sysfs files. Link: https://lore.kernel.org/20260428013402.115171-7-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 daysDocs/mm/damon/design: document fail_charge_{num,denom}SeongJae Park1-0/+22
Update DAMON design document for the DAMOS action failed region quota charge ratio. Link: https://lore.kernel.org/20260428013402.115171-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
3 days9p: Add mount option for negative dentry cache retentionRemi Pommarel1-0/+5
Introduce a new mount option, negtimeout, for v9fs that allows users to specify how long negative dentries are retained in the cache. The retention time can be set in milliseconds (e.g. negtimeout=10000 for a 10secs retention time) or a negative value (e.g. negtimeout=-1) to keep negative entries until the buffer cache management removes them. For consistency reasons, this option should only be used in exclusive or read-only mount scenarios, aligning with the cache=loose usage. Signed-off-by: Remi Pommarel <repk@triplefau.lt> Message-ID: <b2d66500aa5a2f6540347c4aa46a4be10dd01bc6.1779355927.git.repk@triplefau.lt> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
3 daysdocs/filesystems/9p: fix broken external linksAayush Patil1-4/+1
The xcpu.org links for xcpu-talk, kvmfs, and cellfs-talk are dead with no archived snapshots available on the Wayback Machine, so remove them. The PROSE I/O link redirects to a dead server; replace it with an archived version from web.archive.org. Signed-off-by: Aayush Patil <aayushpatilsch@gmail.com> Message-ID: <20260510182856.17569-1-aayushpatilsch@gmail.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
3 daysMerge branch 'clk-renesas' into clk-nextStephen Boyd1-2/+6
* clk-renesas: (29 commits) clk: renesas: r8a73a4: Add ZT/ZTR trace clocks dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile APE6 clk: renesas: r9a08g046: Add RSPI clocks and resets clk: renesas: r9a08g046: Add SSIF-2 clocks and resets clk: renesas: r9a08g046: Add RSCI clocks and resets clk: renesas: cpg-mssr: Add number of clock cells check clk: renesas: rzg2l: Refactor rzg3l_cpg_pll_clk_endisable() clk: renesas: rzg2l: Consolidate DEF_MUX() and DEF_MUX_FLAGS() clk: renesas: r9a08g046: Add IA55_PCLK to critical module clocks clk: renesas: r9a09g047: Add support for LCDC{0,1} clocks and resets clk: renesas: r9a09g047: Add support for DSI clocks and resets clk: renesas: r9a09g047: Add support for SMUX2_DSI{0,1}_CLK clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1}_CSDIV clocks clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1}_DIV7 clocks clk: renesas: r9a09g047: Add CLK_PLLDSI{0,1} clocks clk: renesas: r9a09g047: Add CLK_PLLETH_LPCLK support clk: renesas: rzv2h: Add PLLDSI clk mux support clk: renesas: r8a7740: Add ZT/ZTR trace clocks dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile A1 clk: renesas: r9a09g077: Add MTU3 module clock ...
3 daysAutomated merge of 'dev' into 'next'Paul Moore4-1/+553
* dev: crypto: pkcs7: export verify_pkcs7_message_sig() as EXPORT_SYMBOL_GPL ipe: restore the kdoc comments for evaluate_property() hornet: depend on CONFIG_SECURITY and CONFIG_BPF_SYSCALL ipe: Add BPF program load policy enforcement via Hornet integration selftests/hornet: Add a selftest for the Hornet LSM hornet: Add a light skeleton data extractor scripts hornet: Introduce gen_sig lsm: introduce the Hornet LSM lsm: add additional enum values for bpf integrity checks lsm: framework for BPF integrity verification crypto: pkcs7: add tests for pkcs7_get_authattr crypto: pkcs7: add ability to extract signed attributes by OID crypto: pkcs7: add flag for validated trust on a signed info block security,fs,nfs,net: update security_inode_listsecurity() interface
3 daysdt-bindings: spmi: glymur-spmi-pmic-arb: Add compatible for Qualcomm Hawi SoCFenglin Wu1-0/+1
The PMIC arbiter in the Qualcomm Hawi SoC is version v8.5, which introduces parity and CRC checks for data received from the PMIC, as well as NACK checks for command sequences except for read. All other features in PMIC arbiter remain the same as the one in the Qualcomm Glymur SoC, with the only differences being some additional error status checks. Therefore, add a string for "qcom,hawi-spmi-pmic-arb" as a compatible entry for "qcom,glymur-spmi-pmic-arb". Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
3 daysdocs: page_pool: drop the mention of the legacy stats APIJakub Kicinski1-34/+12
The Netlink support for querying page pool stats has been proven out in production, let's remove the mention of the helper meant for dumping page pool stats into ethtool -S from the docs. Call out in the kdoc that this API is deprecated. Some drivers may not be able to use the Netlink API (if page pool is shared across netdevs). So the old API is not _completely_ dead. But we shouldn't advertise it. Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260526155722.2790742-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: clarify page pool NAPI consumer requirementJakub Kicinski1-2/+7
The comment about requirements when to set the NAPI pointer may not be super clear. Add more words. Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260526155722.2790742-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: page_pool: drop reference to removed PP_FLAG_PAGE_FRAGJakub Kicinski1-3/+2
The flag was removed in commit 09d96ee5674a ("page_pool: remove PP_FLAG_PAGE_FRAG"), but the documentation still mentions it when describing fragment usage. Drop the stale reference; the fragment API does not require any opt-in flag. Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260526155722.2790742-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysMerge branch for-7.2/arm/dt into for-nextThierry Reding2-171/+34
Signed-off-by: Thierry Reding <treding@nvidia.com>
3 daysMerge branch for-7.2/soc into for-nextThierry Reding1-1/+1
Signed-off-by: Thierry Reding <treding@nvidia.com>
3 daysMerge branch 'arm/fixes' into for-nextArnd Bergmann1-1/+34
* arm/fixes: ARM: dts: gemini: Fix partition offsets soc: qcom: ice: Fix the error code when 'qcom,ice' property is not found arm64: dts: qcom: eliza: Add power-domain and iface clk for ice node arm64: dts: qcom: milos: Add power-domain and iface clk for ice node tee: qcomtee: add missing va_end in early return qcomtee_object_user_init() tee: fix params_from_user() error path in tee_ioctl_supp_recv tee: shm: fix shm leak in register_shm_helper() tee: fix tee_ioctl_object_invoke_arg padding arm64: defconfig: Enable PCI M.2 power sequencing driver scsi: ufs: ufs-qcom: Remove NULL check from devm_of_qcom_ice_get() mmc: sdhci-msm: Remove NULL check from devm_of_qcom_ice_get() soc: qcom: ice: Return proper error codes from devm_of_qcom_ice_get() instead of NULL soc: qcom: ice: Return -ENODEV if the ICE platform device is not found soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get() arm64: dts: qcom: x1-dell-thena: remove i2c20 (battery SMBus) and reserve its pins arm64: dts: qcom: glymur: Drop RPMh CXO clocks from QMP PHYs soc: qcom: ice: Allow explicit votes on 'iface' clock for ICE dt-bindings: crypto: qcom,ice: Fix missing power-domain and iface clk soc: imx8m: Fix match data lookup for soc device tee: optee: prevent use-after-free when the client exits before the supplicant
3 daysMerge tag 'qcom-drivers-fixes-for-7.1' of ↵Arnd Bergmann1-1/+34
https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes Qualcomm driver fixes for v7.1 The Qualcomm ICE driver suffers from race conditions between probe() and get() and will in certain cases return the wrong error code, which results in storage drivers failing to probe. Fix these issues. Also correct the DeviceTree binding, to ensure that relevant clocks are described and voted for, to prevent the driver from accessing unclocked hardware during boot. * tag 'qcom-drivers-fixes-for-7.1' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: soc: qcom: ice: Fix the error code when 'qcom,ice' property is not found scsi: ufs: ufs-qcom: Remove NULL check from devm_of_qcom_ice_get() mmc: sdhci-msm: Remove NULL check from devm_of_qcom_ice_get() soc: qcom: ice: Return proper error codes from devm_of_qcom_ice_get() instead of NULL soc: qcom: ice: Return -ENODEV if the ICE platform device is not found soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get() soc: qcom: ice: Allow explicit votes on 'iface' clock for ICE dt-bindings: crypto: qcom,ice: Fix missing power-domain and iface clk Signed-off-by: Arnd Bergmann <arnd@arndb.de>
3 daysdocs: net: fix minor issues with segmentation offloadsJakub Kicinski1-1/+36
Update the segmentation offload documentation to match current GSO types: - clarify csum_start for encapsulated TSO - document TCP AccECN GSO and NETIF_F_GSO_ACCECN - distinguish legacy UFO from UDP L4 GSO - add ESP and fraglist GSO entries Link: https://patch.msgid.link/20260526160151.2793354-11-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: render the checksum comment in checksum-offloads.rstJakub Kicinski2-14/+10
checksum-offloads.rst seems like a better place to render the checksum comment than skbuff.rst. Remove the stale references to sections in that comment (it no longer has A, B, C, D, E sections). Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260526160151.2793354-10-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: add Rx notes to the checksum guideJakub Kicinski1-1/+16
The Rx checksum processing gives people pause. The two main questions in my experience are: - what to do with bad IPv4 checksum; and - what to do with packets with bad checksum. Folks often feel the urge to drop the latter, to "avoid overloading the host". Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260526160151.2793354-9-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: fix minor issues with checksum offloadsJakub Kicinski1-19/+17
Update the checksum offload documentation to match current code: - SCTP CRC32c offload requires NETIF_F_SCTP_CRC, not ordinary IP checksum offload - NETIF_F_IP_CSUM and NETIF_F_IPV6_CSUM are restricted legacy features; new devices should use NETIF_F_HW_CSUM - GRE LCO is handled by the shared gre_build_header() helper used by both IPv4 and IPv6 GRE - VXLAN_F_REMCSUM_TX is a VXLAN configuration flag, not a field of struct vxlan_rdst Link: https://patch.msgid.link/20260526160151.2793354-8-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: refresh netdev feature guidanceJakub Kicinski1-21/+39
Update netdev feature documentation for current locking rules and feature semantics. Clarify hw_features updates and netdev_update_features() locking, keep the NETIF_F_NEVER_CHANGE rule with the VLAN challenged exception, fix the HSR duplication wording, and document netdev->netmem_tx as a device flag rather than a feature bit. Split the list of basic feature sets from the "extra" ones like vlan_features. A bunch of the newer fields weren't documented and having them all together would be confusing. Link: https://patch.msgid.link/20260526160151.2793354-7-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: fix minor issues with the NAPI guideJakub Kicinski1-3/+8
Update the NAPI documentation to match current API behavior: - repeated napi_disable() calls hang waiting for ownership, rather than deadlock - NAPI IDs are exposed through SO_INCOMING_NAPI_ID and netdev Netlink - epoll uses the maxevents parameter spelling - add that drivers holding the netdev instance lock may need _locked() variants Link: https://patch.msgid.link/20260526160151.2793354-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: update devmem code examplesJakub Kicinski1-16/+11
Update the code examples - update the YNL sample with the latest(?) APIs - struct dmabuf_tx_cmsg does not exist, use __u32 directly Acked-by: Stanislav Fomichev <sdf@fomichev.me> Link: https://patch.msgid.link/20260526160151.2793354-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: statistics: fix kernel-internal stats listJakub Kicinski1-4/+15
Update the kernel-internal ethtool stats list to match current code: - spell the entries as "struct ethtool_*_stats", not as functions - list the full set of structures, not only pause and fec - mention that fields are pre-initialized to ETHTOOL_STAT_NOT_SET by ethtool_stats_init() and drivers should leave unsupported fields at that value rather than zeroing them Link: https://patch.msgid.link/20260526160151.2793354-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: fix minor issues with driver guideJakub Kicinski1-2/+5
Update the driver documentation TX queue example to match current APIs: - use the ring-local tx_ring_mask field in drv_tx_avail() - stop the selected netdev_queue with netif_tx_stop_queue() instead of stopping queue 0 with netif_stop_queue() Link: https://patch.msgid.link/20260526160151.2793354-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdocs: net: netdevices: small fixes and clarificationsJakub Kicinski1-14/+17
A handful of unrelated nits: - free_netdevice() does not exist; replace two stray references with free_netdev(). - The simple-driver probe example fell through into err_undo after register_netdev() success; add return 0 for clarity. - Clarify the netdev_priv() paragraph: "(netdev_priv())" was easy to misread as the thing that needs explicit freeing; spell out that it refers to extra pointers stored in the device private struct. - ndo_setup_tc synchronization note: TC_SETUP_BLOCK / TC_SETUP_FT actually run under block->cb_lock, not "NFT locks", and rtnl_lock may or may not be held depending on path. - ->lltx guidance reads as very outdated, it's not really deprecated. I suspect people may have been trying to use it for HW drivers in the past but I can't think of such a case in the last decade. Acked-by: Stanislav Fomichev <sdf@fomichev.me> Link: https://patch.msgid.link/20260526160151.2793354-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdt-bindings: tegra: pmc: Add Tegra238 compatiblePrathamesh Shete1-0/+2
The PMC found on Tegra238 is similar to the version in earlier chips but some of the register offsets and bitfields differ, so add a specific compatible string for this new variant. Signed-off-by: Prathamesh Shete <pshete@nvidia.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
3 daysMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski11-32/+81
Cross-merge networking fixes after downstream PR (net-7.1-rc6). Conflicts: drivers/net/phy/air_en8811h.c d895767c33781 ("net: phy: air_en8811h: add AN8811HB MCU assert/deassert support") dddfadd75197e ("net: phy: Add Airoha phy library for shared code") 5226bb6634cdf ("net: phy: air_phy_lib: Factorize BuckPBus register accessors") e08f0ea6daf2e ("net: phy: Rename Airoha common BuckPBus register accessors") net/sched/sch_netem.c a2f6ed7b4873 ("net/sched: netem: add per-impairment extended statistics") 9552b11e3eda ("net/sched: fix packet loop on netem when duplicate is on") Adjacent changes: drivers/dpll/zl3073x/core.c c1224569cef0 ("dpll: zl3073x: make frequency monitor a per-device attribute") 54e65df8cf18 ("dpll: zl3073x: report FFO as DPLL vs input reference offset") net/iucv/af_iucv.c 347fdd4df85f ("af_iucv: convert to getsockopt_iter") 3589d20a666c ("net/iucv: fix locking in .getsockopt") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
3 daysdt-bindings: reserved-memory: Change maintainer for BPMP SHMEMThierry Reding1-1/+2
Peter sadly passed away a while ago, so change the maintainers for BPMP SHMEM to Jon and myself. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
3 daysDocumentation: ABI: Take over as contact for sysfs-driver-tegra-fuseThierry Reding1-1/+1
Peter sadly passed away a while ago, so I'll be taking over as contact for this ABI documentation. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
3 daysARM: Add a neon-intrinsics.h header like on arm64Ard Biesheuvel1-1/+3
Add a header asm/neon-intrinsics.h similar to the one that arm64 has. This makes it possible for NEON intrinsics code to be shared seamlessly between ARM and arm64. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Link: https://patch.msgid.link/20260422171655.3437334-11-ardb+git@google.com Signed-off-by: Eric Biggers <ebiggers@kernel.org>
3 daysMerge tag 'net-7.1-rc6' of ↵Linus Torvalds1-0/+8
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net Pull networking fixes from Paolo Abeni: "This is again significantly bigger than the same point into the previous cycle, but at least smaller than last week. I'm not aware of any pending regression for the current cycle. Including fixes from netfilter. Current release - regressions: - netfilter: walk fib6_siblings under RCU Previous releases - regressions: - netlink: fix sending unassigned nsid after assigned one - bridge: fix sleep in atomic context in netlink path - sched: fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop - ipv4: fix net->ipv4.sysctl_local_reserved_ports UaF - eth: tun: free page on short-frame rejection in tun_xdp_one() Previous releases - always broken: - skbuff: fix missing zerocopy reference in pskb_carve helpers - handshake: drain pending requests at net namespace exit - ethtool: - rss: avoid modifying the RSS context response - module: avoid leaking a netdev ref on module flash errors - coalesce: cap profile updates at NET_DIM_PARAMS_NUM_PROFILES - netfilter: fix dst corruption in same register operation - nfc: hci: fix out-of-bounds read in HCP header parsing - ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo() - eth: - vti: use ip6_tnl.net in vti6_changelink(). - vxlan: do not reuse cached ip_hdr() value after skb_tunnel_check_pmtu()" * tag 'net-7.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (94 commits) dpll: zl3073x: make frequency monitor a per-device attribute dpll: zl3073x: use __dpll_device_change_ntf() and remove change_work dpll: export __dpll_device_change_ntf() for use under dpll_lock net/handshake: Drain pending requests at net namespace exit net/handshake: Verify file-reference balance in submit paths net/handshake: Close the submit-side sock_hold race net/handshake: hand off the pinned file reference to accept_doit net/handshake: Take a long-lived file reference at submit net/handshake: Pass negative errno through handshake_complete() nvme-tcp: store negative errno in queue->tls_err net/handshake: Use spin_lock_bh for hn_lock net: skbuff: fix missing zerocopy reference in pskb_carve helpers net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path net: hibmcge: disable Relaxed Ordering to fix RX packet corruption selftests/tc-testing: Add netem test case exercising loops selftests/tc-testing: Add mirred test cases exercising loops net/sched: act_mirred: Fix return code in early mirred redirect error paths net/sched: act_mirred: Fix blockcast recursion bypass leading to stack overflow net/sched: Fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop net/sched: fix packet loop on netem when duplicate is on ...
3 daysdt-bindings: reserved-memory: Wakeup Mailbox for Intel processorsRicardo Neri1-0/+49
Add DeviceTree bindings to enumerate the wakeup mailbox used in platform firmware for Intel processors. x86 platforms commonly boot secondary CPUs using an INIT assert, de-assert followed by Start-Up IPI messages. The wakeup mailbox can be used when this mechanism is unavailable. The wakeup mailbox offers more control to the operating system to boot secondary CPUs than a spin-table. It allows the reuse of the same wakeup vector for all CPUs while maintaining control over which CPUs to boot and when. While it is possible to achieve the same level of control using a spin-table, it would require specifying a separate `cpu-release-addr` for each secondary CPU. The operation and structure of the mailbox are described in the Multiprocessor Wakeup Structure defined in the ACPI specification. Note that this structure does not specify how to publish the mailbox to the operating system (ACPI-based platform firmware uses a separate table). No ACPI table is needed in DeviceTree-based firmware to enumerate the mailbox. Nodes that want to refer to the reserved memory usually define a `memory-region` property. /cpus/cpu* nodes would want to refer to the mailbox, but they do not have such property defined in the DeviceTree specification. Moreover, it would imply that there is a memory region per CPU. Instead, add a `compatible` property that the operating system can use to discover the mailbox. Reviewed-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Acked-by: Rafael J. Wysocki (Intel) <rafael.j.wysocki@intel.com> Co-developed-by: Yunhong Jiang <yunhong.jiang@linux.intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@linux.intel.com> Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by: Dexuan Cui <dexuan@kernel.org>
3 daysMerge remote-tracking branch 'drm/drm-next' into drm-rust-nextDanilo Krummrich97-320/+1759
Backmerge to pull in commit 838d852da850 ("rust: allow `clippy::collapsible_match` globally"), in order to get rid of spurious warnings messing with developer tooling. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
3 daysmedia: dt-bindings: add rockchip rk3588 vicapMichael Riesch1-19/+154
Add documentation for the Rockchip RK3588 Video Capture (VICAP) unit. To that end, make the existing rockchip,rk3568-vicap documentation more general and introduce variant specific constraints. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michael Riesch <michael.riesch@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
3 daysDocumentation: admin-guide: media: add rk3588 vicapMichael Riesch2-0/+61
Add a section that describes the Rockchip RK3588 VICAP. Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com> Signed-off-by: Michael Riesch <michael.riesch@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
4 daysNFSD: Add NFSD_CMD_UNLOCK_EXPORT netlink commandChuck Lever1-0/+27
When a filesystem is exported to NFS clients, NFSv4 state (opens, locks, delegations, layouts) holds references that prevent the underlying filesystem from being unmounted. NFSD_CMD_UNLOCK_FILESYSTEM addresses this at superblock granularity, but administrators unexporting a single path on a shared filesystem (e.g., one of several exports on the same device) need finer control. Add NFSD_CMD_UNLOCK_EXPORT, which revokes NFSv4 state acquired through exports of a specific path. Matching is by path identity (dentry + vfsmount) via the sc_export field on each nfs4_stid, so multiple svc_export objects for the same path -- one per auth_domain -- are handled correctly without requiring the caller to name a specific client. The command takes a single "path" attribute. Userspace (exportfs -u) sends this after removing the last client for a given path, enabling the underlying filesystem to be unmounted. When multiple clients share an export path, individual unexports do not trigger state revocation; only the final one does. Reviewed-by: Jeff Layton <jlayton@kernel.org> Tested-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysNFSD: Add NFSD_CMD_UNLOCK_FILESYSTEM netlink commandChuck Lever1-0/+16
Add NFSD_CMD_UNLOCK_FILESYSTEM as a dedicated netlink command for revoking NFS state under a filesystem path, providing a netlink equivalent of /proc/fs/nfsd/unlock_fs. The command requires a "path" string attribute containing the filesystem path whose state should be released. The handler resolves the path to its superblock, then cancels async copies, releases NLM locks, and revokes NFSv4 state on that superblock. Reviewed-by: Jeff Layton <jlayton@kernel.org> Tested-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysNFSD: Add NFSD_CMD_UNLOCK_IP netlink commandChuck Lever1-0/+18
The existing write_unlock_ip procfs interface releases NLM file locks held by a specific client IP address, but procfs provides no structured way to extend that operation to other scopes such as revoking NFSv4 state. Add NFSD_CMD_UNLOCK_IP as a dedicated netlink command for releasing NLM locks by client address. The command accepts a binary sockaddr_in or sockaddr_in6 in its address attribute. The handler validates the address family and length, then calls nlmsvc_unlock_all_by_ip() to release matching NLM locks. Because lockd is a single global instance, that call operates across all network namespaces regardless of which namespace the caller inhabits. A separate netlink command for filesystem-scoped unlock is added in a subsequent commit. The nfsd_ctl_unlock_ip tracepoint is updated from string-based address logging to __sockaddr, which stores the binary sockaddr and formats it with %pISpc. This affects both the new netlink path and the existing procfs write_unlock_ip path, giving consistent structured output in both cases. Reviewed-by: Jeff Layton <jlayton@kernel.org> Tested-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysNFSD: Put cache get-reqs dump attrs under replyChuck Lever2-4/+4
The new get-reqs dump operations added to sunrpc_cache.yaml and nfsd.yaml place the "requests" nested attribute under dump.request. A netlink dump carries an empty request; its payload travels back in the reply. Because the spec names no reply attributes, the YNL C code generator synthesizes a forward reference to a <op>_rsp struct that is never defined, breaking any consumer of these specs. This first surfaced when Thorsten Leemhuis built tools/net/ynl against -next: nfsd-user.h:746: error: field 'obj' has incomplete type struct nfsd_svc_export_get_reqs_rsp obj ... nfsd-user.h:826: error: field 'obj' has incomplete type struct nfsd_expkey_get_reqs_rsp obj ... nfsd-user.c:1211: error: 'nfsd_svc_export_get_reqs_rsp_parse' undeclared sunrpc_cache.yaml has the same defect in ip-map-get-reqs and unix-gid-get-reqs, but nfsd.yaml errors out first in the Makefile's alphabetical build order and hides the sunrpc failures. These bugs were introduced by incorrect merge conflict resolution. Reported-by: Thorsten Leemhuis <linux@leemhuis.info> Closes: https://lore.kernel.org/linux-nfs/f6a3ca6d-e5cb-4a5c-9af2-8d2b1ce33ef0@leemhuis.info/ Fixes: 1045ccf519ce30 ("sunrpc: add netlink upcall for the auth.unix.ip cache") Tested-by: Thorsten Leemhuis <linux@leemhuis.info> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysnfsd: add NFSD_CMD_CACHE_FLUSH netlink commandJeff Layton1-0/+17
Add a new NFSD_CMD_CACHE_FLUSH generic netlink command that allows userspace to flush the nfsd export caches (svc_export and expkey) without writing to /proc/net/rpc/*/flush. An optional NFSD_A_CACHE_FLUSH_MASK u32 attribute selects which caches to flush (bit 1 = svc_export, bit 2 = expkey). If the attribute is omitted, all nfsd caches are flushed. This is used by exportfs to replace its /proc-based cache_flush() with a netlink equivalent, with /proc fallback for older kernels. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 dayssunrpc: add SUNRPC_CMD_CACHE_FLUSH netlink commandJeff Layton1-0/+17
Add a new SUNRPC_CMD_CACHE_FLUSH generic netlink command that allows userspace to flush the sunrpc auth caches (ip_map and unix_gid) without writing to /proc/net/rpc/*/flush. An optional SUNRPC_A_CACHE_FLUSH_MASK u32 attribute selects which caches to flush (bit 1 = ip_map, bit 2 = unix_gid). If the attribute is omitted, all sunrpc caches are flushed. This is used by exportfs to replace its /proc-based cache_flush() with a netlink equivalent, with /proc fallback for older kernels. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysnfsd: add netlink upcall for the nfsd.fh cacheJeff Layton1-1/+51
Add netlink-based cache upcall support for the expkey (nfsd.fh) cache, following the same pattern as the existing svc_export netlink support. Add expkey to the cache-type enum, a new expkey attribute-set with client, fsidtype, fsid, negative, expiry, and path fields, and the expkey-get-reqs / expkey-set-reqs operations to the nfsd YAML spec and generated headers. Implement nfsd_nl_expkey_get_reqs_dumpit() which snapshots pending expkey cache requests and sends each entry's seqno, client name, fsidtype, and fsid over netlink. Implement nfsd_nl_expkey_set_reqs_doit() which parses expkey cache responses from userspace (client, fsidtype, fsid, expiry, and path or negative flag) and updates the cache via svc_expkey_lookup() / svc_expkey_update(). Wire up the expkey_notify() callback in svc_expkey_cache_template so cache misses trigger NFSD_CMD_CACHE_NOTIFY multicast events with NFSD_CACHE_TYPE_EXPKEY. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
4 daysnfsd: add netlink upcall for the svc_export cacheJeff Layton1-0/+162
Add netlink-based cache upcall support for the svc_export (nfsd.export) cache to Documentation/netlink/specs/nfsd.yaml and regenerate the resulting files. Implement nfsd_cache_notify() which sends a NFSD_CMD_CACHE_NOTIFY multicast event to the "exportd" group, carrying the cache type so userspace knows which cache has pending requests. Implement nfsd_nl_svc_export_get_reqs_dumpit() which snapshots pending svc_export cache requests and sends each entry's seqno, client name, and path over netlink. Implement nfsd_nl_svc_export_set_reqs_doit() which parses svc_export cache responses from userspace (client, path, expiry, flags, anon uid/gid, fslocations, uuid, secinfo, xprtsec, fsid, or negative flag) and updates the cache via svc_export_lookup() / svc_export_update(). Wire up the svc_export_notify() callback in svc_export_cache_template so cache misses trigger NFSD_CMD_CACHE_NOTIFY multicast events with NFSD_CACHE_TYPE_SVC_EXPORT. Note that the export-flags and xprtsec-mode enums are organized to match their counterparts in include/uapi/linux/nfsd/export.h. The intent is that future export options will only be added to the netlink headers, which should eliminate the need to keep so much in sync. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>