Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .bazelignore

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,7 @@ sphinx_*/

# Rust analyzer configuration
/rust-project.json
drivers/soc/oplus/
kernel/locking/locking_main.h
kernel/locking/oplus_locking.c
kernel/locking/sa_common_struct.h
52 changes: 50 additions & 2 deletions BUILD.bazel
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ filegroup(
"android/abi_gki_aarch64_virtual_device",
"android/abi_gki_aarch64_vivo",
"android/abi_gki_aarch64_xiaomi",
"android/abi_gki_aarch64_xiaomi2",
"android/abi_gki_aarch64_xiaomi_wear",
"android/abi_gki_aarch64_xiaomi_xring",
],
visibility = ["//visibility:public"],
)
Expand Down Expand Up @@ -174,7 +175,7 @@ define_common_kernels(target_configs = {
"ddk_headers_archive": ":kernel_aarch64_ddk_headers_archive",
"extra_dist": [
":test_mappings_zip",
":tests_zip_arm64",
":tests_zip_arm64_16k",
],
},
"kernel_aarch64_autofdo": {
Expand Down Expand Up @@ -889,6 +890,16 @@ pkg_files(
visibility = ["//visibility:private"],
)

pkg_files(
name = "kunit_modules_arm64_16k",
srcs = [
":kernel_aarch64_16k/" + e
for e in get_kunit_modules_list("arm64")
],
prefix = _KUNIT_DIR + "/arm64",
visibility = ["//visibility:private"],
)

pkg_files(
name = "kunit_modules_x86_64",
srcs = [
Expand All @@ -908,6 +919,15 @@ pkg_filegroup(
visibility = ["//visibility:private"],
)

pkg_filegroup(
name = "kunit_tests_arm64_16k_pkg_files",
srcs = [
":kunit_modules_arm64_16k",
":kunit_tests_config_arm64",
],
visibility = ["//visibility:private"],
)

pkg_filegroup(
name = "kunit_tests_x86_64_pkg_files",
srcs = [
Expand All @@ -927,6 +947,14 @@ pkg_install(
visibility = ["//visibility:private"],
)

pkg_install(
name = "kunit_tests_arm64_16k",
srcs = [
":kunit_tests_arm64_16k_pkg_files",
],
visibility = ["//visibility:private"],
)

pkg_install(
name = "kunit_tests_x86_64",
srcs = [
Expand Down Expand Up @@ -1025,6 +1053,7 @@ ddk_headers(
name = "all_headers_allowlist_aarch64",
hdrs = [
"drivers/dma-buf/heaps/deferred-free-helper.h",
"drivers/dma/dmaengine.h",
"drivers/extcon/extcon.h",
"drivers/pci/controller/dwc/pcie-designware.h",
"drivers/thermal/thermal_core.h",
Expand All @@ -1046,6 +1075,7 @@ ddk_headers(
"arch/arm64/include",
"arch/arm64/include/uapi",
"drivers/dma-buf",
"drivers/dma",
"drivers/extcon",
"drivers/pci/controller/dwc",
"drivers/thermal",
Expand Down Expand Up @@ -2478,6 +2508,16 @@ pkg_zip(
visibility = ["//visibility:public"],
)

pkg_zip(
name = "tests_zip_arm64_16k",
srcs = [
":kselftest_tests_arm64_pkg_files",
":kunit_tests_arm64_16k_pkg_files",
],
out = "arm64_16k/tests.zip",
visibility = ["//visibility:public"],
)

copy_to_dist_dir(
name = "tests_zip_x86_64_dist",
data = [":tests_zip_x86_64"],
Expand All @@ -2492,6 +2532,14 @@ copy_to_dist_dir(
flat = True,
)

load(":consolidate.bzl", "define_consolidate")

define_consolidate()

load(":consolidate_16k.bzl", "define_consolidate_16k")

define_consolidate_16k()

_TEST_MAPPINGS = glob(["**/TEST_MAPPING"])

pkg_files(
Expand Down
6 changes: 6 additions & 0 deletions Documentation/ABI/stable/sysfs-driver-dma-idxd
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ Description: Shows the operation capability bits displayed in bitmap format
correlates to the operations allowed. It's visible only
on platforms that support the capability.

What: /sys/bus/dsa/devices/wq<m>.<n>/driver_name
Date: Sept 8, 2023
KernelVersion: 6.7.0
Contact: dmaengine@vger.kernel.org
Description: Name of driver to be bounded to the wq.

What: /sys/bus/dsa/devices/engine<m>.<n>/group_id
Date: Oct 25, 2019
KernelVersion: 5.6.0
Expand Down
10 changes: 10 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ Description:
The default value is 1 (GNU Remote Debug command).
Other permissible value is 0 which is for vendor defined debug
target.

What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_poll_interval_ms
Date: February 2024
Contact: Mathias Nyman <mathias.nyman@linux.intel.com>
Description:
This attribute adjust the polling interval used to check for
DbC events. Unit is milliseconds. Accepted values range from 0
up to 5000. The default value is 64 ms.
This polling interval is used while DbC is enabled but has no
active data transfers.
3 changes: 3 additions & 0 deletions Documentation/ABI/testing/sysfs-devices-system-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ Description: information about CPUs heterogeneity.

What: /sys/devices/system/cpu/vulnerabilities
/sys/devices/system/cpu/vulnerabilities/gather_data_sampling
/sys/devices/system/cpu/vulnerabilities/indirect_target_selection
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
/sys/devices/system/cpu/vulnerabilities/l1tf
/sys/devices/system/cpu/vulnerabilities/mds
Expand All @@ -525,7 +526,9 @@ What: /sys/devices/system/cpu/vulnerabilities
/sys/devices/system/cpu/vulnerabilities/spectre_v1
/sys/devices/system/cpu/vulnerabilities/spectre_v2
/sys/devices/system/cpu/vulnerabilities/srbds
/sys/devices/system/cpu/vulnerabilities/tsa
/sys/devices/system/cpu/vulnerabilities/tsx_async_abort
/sys/devices/system/cpu/vulnerabilities/vmscape
Date: January 2018
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Description: Information about CPU vulnerabilities
Expand Down
10 changes: 10 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-typec-displayport
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,13 @@ Description:
by VESA DisplayPort Alt Mode on USB Type-C Standard.
- 0 when HPD’s logical state is low (HPD_Low) as defined by
VESA DisplayPort Alt Mode on USB Type-C Standard.

What: /sys/bus/typec/devices/.../displayport/irq_hpd
Date: June 2025
Contact: RD Babiera <rdbabiera@google.com>
Description:
IRQ_HPD events are sent over the USB PD protocol in Status Update and
Attention messages. IRQ_HPD can only be asserted when HPD is high,
and is asserted when an IRQ_HPD has been issued since the last Status
Update. This is a read only node that returns the number of IRQ events
raised in the driver's lifetime.
2 changes: 1 addition & 1 deletion Documentation/ABI/testing/sysfs-driver-ufs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ Description: This file shows the thin provisioning type. This is one of

The file is read only.

What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resourse_count
What: /sys/class/scsi_device/*/device/unit_descriptor/physical_memory_resource_count
Date: February 2018
Contact: Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
Description: This file shows the total physical memory resources. This is
Expand Down
56 changes: 56 additions & 0 deletions Documentation/ABI/testing/sysfs-fs-f2fs
Original file line number Diff line number Diff line change
Expand Up @@ -867,3 +867,59 @@ Description: This threshold is used to control triggering garbage collection whi
reserved section before preallocating on pinned file.
By default, the value is ovp_sections, especially, for zoned ufs, the
value is 1.

What: /sys/fs/f2fs/<disk>/effective_lookup_mode
Date: August 2025
Contact: "Daniel Lee" <chullee@google.com>
Description:
This is a read-only entry to show the effective directory lookup mode
F2FS is currently using for casefolded directories.
This considers both the "lookup_mode" mount option and the on-disk
encoding flag, SB_ENC_NO_COMPAT_FALLBACK_FL.

Possible values are:
- "perf": Hash-only lookup.
- "compat": Hash-based lookup with a linear search fallback enabled
- "auto:perf": lookup_mode is auto and fallback is disabled on-disk
- "auto:compat": lookup_mode is auto and fallback is enabled on-disk

What: /sys/fs/f2fs/<disk>/max_lock_elapsed_time
Date: December 2025
Contact: "Chao Yu" <chao@kernel.org>
Description: This is a threshold, once a thread enters critical region that lock covers, total
elapsed time exceeds this threshold, f2fs will print tracepoint to dump information
of related context. This sysfs entry can be used to control the value of threshold,
by default, the value is 500 ms.

What: /sys/fs/f2fs/<disk>/adjust_lock_priority
Date: January 2026
Contact: "Chao Yu" <chao@kernel.org>
Description: This sysfs entry can be used to enable/disable to adjust priority for task
which is in critical region covered by lock.
========== ==================
Flag_Value Flag_Description
========== ==================
0x00000000 Disabled (default)
0x00000001 cp_rwsem
0x00000002 node_change
0x00000004 node_write
0x00000008 gc_lock
0x00000010 cp_global
0x00000020 io_rwsem
========== ==================

What: /sys/fs/f2fs/<disk>/lock_duration_priority
Date: January 2026
Contact: "Chao Yu" <chao@kernel.org>
Description: f2fs can tune priority of thread which has entered into critical region covered by
f2fs rwsemphore lock. This sysfs entry can be used to control priority value, the
range is [100,139], by default the value is 120.

What: /sys/fs/f2fs/<disk>/critical_task_priority
Date: February 2026
Contact: "Chao Yu" <chao@kernel.org>
Description: It can be used to tune priority of f2fs critical task, e.g. f2fs_ckpt, f2fs_gc
threads, limitation as below:
- it requires user has CAP_SYS_NICE capability.
- the range is [100, 139], by default the value is 100.

45 changes: 38 additions & 7 deletions Documentation/admin-guide/cgroup-v2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,24 @@ All cgroup core files are prefixed with "cgroup."
A dying cgroup can consume system resources not exceeding
limits, which were active at the moment of cgroup deletion.

cgroup.stat.local
A read-only flat-keyed file which exists in non-root cgroups.
The following entry is defined:

frozen_usec
Cumulative time that this cgroup has spent between freezing and
thawing, regardless of whether by self or ancestor groups.
NB: (not) reaching "frozen" state is not accounted here.

Using the following ASCII representation of a cgroup's freezer
state, ::

1 _____
frozen 0 __/ \__
ab cd

the duration being measured is the span between a and c.

cgroup.freeze
A read-write single value file which exists on non-root cgroups.
Allowed values are "0" and "1". The default is "0".
Expand Down Expand Up @@ -1246,17 +1264,10 @@ PAGE_SIZE multiple when read back.
This is a simple interface to trigger memory reclaim in the
target cgroup.

This file accepts a single key, the number of bytes to reclaim.
No nested keys are currently supported.

Example::

echo "1G" > memory.reclaim

The interface can be later extended with nested keys to
configure the reclaim behavior. For example, specify the
type of memory to reclaim from (anon, file, ..).

Please note that the kernel can over or under reclaim from
the target cgroup. If less bytes are reclaimed than the
specified amount, -EAGAIN is returned.
Expand All @@ -1268,6 +1279,17 @@ PAGE_SIZE multiple when read back.
This means that the networking layer will not adapt based on
reclaim induced by memory.reclaim.

The following nested keys are defined.

========== ================================
swappiness Swappiness value to reclaim with
========== ================================

Specifying a swappiness value instructs the kernel to perform
the reclaim with that swappiness value. Note that this has the
same semantics as vm.swappiness applied to memcg reclaim with
all the existing limitations and potential future extensions.

memory.peak
A read-only single value file which exists on non-root
cgroups.
Expand Down Expand Up @@ -1532,6 +1554,15 @@ PAGE_SIZE multiple when read back.
collapsing an existing range of pages. This counter is not
present when CONFIG_TRANSPARENT_HUGEPAGE is not set.

thp_swpout (npn)
Number of transparent hugepages which are swapout in one piece
without splitting.

thp_swpout_fallback (npn)
Number of transparent hugepages which were split before swapout.
Usually because failed to allocate some continuous swap space
for the huge page.

memory.numa_stat
A read-only nested-keyed file which exists on non-root cgroups.

Expand Down
2 changes: 2 additions & 0 deletions Documentation/admin-guide/hw-vuln/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ are configurable at compile, boot or run time.
srso
gather_data_sampling
reg-file-data-sampling
indirect-target-selection
vmscape
Loading