Skip to content

Commit 1cf4fb8

Browse files
author
pswbuild
committed
Synchronize code for OnePlus PJD110_14.0.0.604(CN01)
Based on QCOM release TAG:AU_LINUX_KERNEL.PLATFORM.3.0.R1.00.00.00.017.045
1 parent 8af6e7b commit 1cf4fb8

File tree

4,532 files changed

+88465
-35797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,532 files changed

+88465
-35797
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ drivers/soc/oplus
179179
include/soc/oplus/dfr
180180
include/soc/oplus/dft
181181
include/soc/oplus/boot
182+
# Android ABI build files
183+
abi_gki_protected_exports
184+
all_kmi_symbols

BUILD.bazel

Lines changed: 152 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
load("@bazel_skylib//rules:write_file.bzl", "write_file")
55
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
66
load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels")
7+
load("//build/kernel/kleaf:constants.bzl", "X86_64_OUTS")
78
load(
89
"//build/kernel/kleaf:kernel.bzl",
910
"checkpatch",
@@ -14,7 +15,7 @@ load(
1415
"kernel_modules_install",
1516
"merged_kernel_uapi_headers",
1617
)
17-
load(":modules.bzl", "COMMON_GKI_MODULES_LIST")
18+
load(":modules.bzl", "get_gki_modules_list")
1819

1920
package(
2021
default_visibility = [
@@ -46,10 +47,49 @@ checkpatch(
4647
checkpatch_pl = "scripts/checkpatch.pl",
4748
)
4849

49-
write_file(
50+
# Deprecated - Use arch specific files from below.
51+
alias(
5052
name = "gki_system_dlkm_modules",
51-
out = "android/gki_system_dlkm_modules",
52-
content = COMMON_GKI_MODULES_LIST + [
53+
actual = "gki_system_dlkm_modules_arm64",
54+
deprecation = """
55+
Common list for all architectures is deprecated.
56+
Instead use the file corresponding to the architecture used:
57+
i.e. `gki_system_dlkm_modules_{arch}`
58+
""",
59+
)
60+
61+
alias(
62+
name = "android/gki_system_dlkm_modules",
63+
actual = "android/gki_system_dlkm_modules_arm64",
64+
deprecation = """
65+
Common list for all architectures is deprecated.
66+
Instead use the file corresponding to the architecture used:
67+
i.e. `gki_system_dlkm_modules_{arch}`
68+
""",
69+
)
70+
71+
write_file(
72+
name = "gki_system_dlkm_modules_arm64",
73+
out = "android/gki_system_dlkm_modules_arm64",
74+
content = get_gki_modules_list("arm64") + [
75+
# Ensure new line at the end.
76+
"",
77+
],
78+
)
79+
80+
write_file(
81+
name = "gki_system_dlkm_modules_x86_64",
82+
out = "android/gki_system_dlkm_modules_x86_64",
83+
content = get_gki_modules_list("x86_64") + [
84+
# Ensure new line at the end.
85+
"",
86+
],
87+
)
88+
89+
write_file(
90+
name = "gki_system_dlkm_modules_risc64",
91+
out = "android/gki_system_dlkm_modules_riscv64",
92+
content = get_gki_modules_list("riscv64") + [
5393
# Ensure new line at the end.
5494
"",
5595
],
@@ -59,16 +99,21 @@ filegroup(
5999
name = "aarch64_additional_kmi_symbol_lists",
60100
srcs = [
61101
# keep sorted
102+
"android/abi_gki_aarch64_asus",
62103
"android/abi_gki_aarch64_db845c",
63104
"android/abi_gki_aarch64_exynos",
64105
"android/abi_gki_aarch64_exynosauto",
65106
"android/abi_gki_aarch64_galaxy",
66107
"android/abi_gki_aarch64_honor",
67108
"android/abi_gki_aarch64_imx",
109+
"android/abi_gki_aarch64_meizu",
68110
"android/abi_gki_aarch64_mtk",
69111
"android/abi_gki_aarch64_oplus",
70112
"android/abi_gki_aarch64_pixel",
71113
"android/abi_gki_aarch64_qcom",
114+
"android/abi_gki_aarch64_rockchip",
115+
"android/abi_gki_aarch64_sony",
116+
"android/abi_gki_aarch64_tuxera",
72117
"android/abi_gki_aarch64_unisoc",
73118
"android/abi_gki_aarch64_virtual_device",
74119
"android/abi_gki_aarch64_vivo",
@@ -80,7 +125,7 @@ filegroup(
80125
define_common_kernels(target_configs = {
81126
"kernel_aarch64": {
82127
"kmi_symbol_list_strict_mode": True,
83-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
128+
"module_implicit_outs": get_gki_modules_list("arm64"),
84129
"kmi_symbol_list": "android/abi_gki_aarch64",
85130
"kmi_symbol_list_add_only": True,
86131
"additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"],
@@ -90,12 +135,12 @@ define_common_kernels(target_configs = {
90135
},
91136
"kernel_aarch64_16k": {
92137
"kmi_symbol_list_strict_mode": False,
93-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
138+
"module_implicit_outs": get_gki_modules_list("arm64"),
94139
"make_goals": _GKI_AARCH64_MAKE_GOALS,
95140
},
96141
"kernel_aarch64_debug": {
97142
"kmi_symbol_list_strict_mode": False,
98-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
143+
"module_implicit_outs": get_gki_modules_list("arm64"),
99144
"kmi_symbol_list": "android/abi_gki_aarch64",
100145
"kmi_symbol_list_add_only": True,
101146
"additional_kmi_symbol_lists": [":aarch64_additional_kmi_symbol_lists"],
@@ -105,25 +150,120 @@ define_common_kernels(target_configs = {
105150
},
106151
"kernel_riscv64": {
107152
"kmi_symbol_list_strict_mode": False,
108-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
153+
"module_implicit_outs": get_gki_modules_list("riscv64"),
109154
"make_goals": _GKI_RISCV64_MAKE_GOALS,
110155
},
111156
"kernel_x86_64": {
112157
"kmi_symbol_list_strict_mode": False,
113-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
158+
"module_implicit_outs": get_gki_modules_list("x86_64"),
114159
"protected_exports_list": "android/abi_gki_protected_exports_x86_64",
115160
"protected_modules_list": "android/gki_x86_64_protected_modules",
116161
"make_goals": _GKI_X86_64_MAKE_GOALS,
117162
},
118163
"kernel_x86_64_debug": {
119164
"kmi_symbol_list_strict_mode": False,
120-
"module_implicit_outs": COMMON_GKI_MODULES_LIST,
165+
"module_implicit_outs": get_gki_modules_list("x86_64"),
121166
"protected_exports_list": "android/abi_gki_protected_exports_x86_64",
122167
"protected_modules_list": "android/gki_x86_64_protected_modules",
123168
"make_goals": _GKI_X86_64_MAKE_GOALS,
124169
},
125170
})
126171

172+
# Microdroid is not a real device. The kernel image is built with special
173+
# configs to reduce the size. Hence, not using mixed build.
174+
kernel_build(
175+
name = "kernel_aarch64_microdroid",
176+
srcs = ["//common:kernel_aarch64_sources"],
177+
outs = [
178+
"Image",
179+
"System.map",
180+
"modules.builtin",
181+
"modules.builtin.modinfo",
182+
"vmlinux",
183+
"vmlinux.symvers",
184+
],
185+
build_config = "build.config.microdroid.aarch64",
186+
make_goals = [
187+
"Image",
188+
],
189+
)
190+
191+
copy_to_dist_dir(
192+
name = "kernel_aarch64_microdroid_dist",
193+
data = [
194+
":kernel_aarch64_microdroid",
195+
],
196+
dist_dir = "out/kernel_aarch64_microdroid/dist",
197+
flat = True,
198+
log = "info",
199+
)
200+
201+
# Microdroid is not a real device. The kernel image is built with special
202+
# configs to reduce the size. Hence, not using mixed build.
203+
kernel_build(
204+
name = "kernel_x86_64_microdroid",
205+
srcs = ["//common:kernel_x86_64_sources"],
206+
outs = X86_64_OUTS,
207+
arch = "x86_64",
208+
build_config = "build.config.microdroid.x86_64",
209+
make_goals = [
210+
"bzImage",
211+
],
212+
)
213+
214+
copy_to_dist_dir(
215+
name = "kernel_x86_64_microdroid_dist",
216+
data = [
217+
":kernel_x86_64_microdroid",
218+
],
219+
dist_dir = "out/kernel_x86_64_microdroid/dist",
220+
flat = True,
221+
log = "info",
222+
)
223+
224+
kernel_build(
225+
name = "kernel_aarch64_crashdump",
226+
srcs = ["//common:kernel_aarch64_sources"],
227+
outs = [
228+
"Image",
229+
],
230+
build_config = "build.config.crashdump.aarch64",
231+
make_goals = [
232+
"Image",
233+
],
234+
)
235+
236+
copy_to_dist_dir(
237+
name = "kernel_aarch64_crashdump_dist",
238+
data = [
239+
":kernel_aarch64_crashdump",
240+
],
241+
dist_dir = "out/kernel_aarch64_crashdump/dist",
242+
flat = True,
243+
log = "info",
244+
)
245+
246+
kernel_build(
247+
name = "kernel_x86_64_crashdump",
248+
srcs = ["//common:kernel_x86_64_sources"],
249+
outs = X86_64_OUTS,
250+
arch = "x86_64",
251+
build_config = "build.config.crashdump.x86_64",
252+
make_goals = [
253+
"bzImage",
254+
],
255+
)
256+
257+
copy_to_dist_dir(
258+
name = "kernel_x86_64_crashdump_dist",
259+
data = [
260+
":kernel_x86_64_crashdump",
261+
],
262+
dist_dir = "out/kernel_x86_64_crashdump/dist",
263+
flat = True,
264+
log = "info",
265+
)
266+
127267
_DB845C_MODULE_OUTS = [
128268
# keep sorted
129269
"crypto/michael_mic.ko",
@@ -511,7 +651,7 @@ kernel_build(
511651
"modules",
512652
"rk3399-rock-pi-4b.dtb",
513653
],
514-
module_outs = COMMON_GKI_MODULES_LIST + _ROCKPI4_MODULE_OUTS + _ROCKPI4_WATCHDOG_MODULE_OUTS,
654+
module_outs = get_gki_modules_list("arm64") + _ROCKPI4_MODULE_OUTS + _ROCKPI4_WATCHDOG_MODULE_OUTS,
515655
visibility = ["//visibility:private"],
516656
)
517657

@@ -534,7 +674,7 @@ kernel_build(
534674
"modules",
535675
"rk3399-rock-pi-4b.dtb",
536676
],
537-
module_outs = COMMON_GKI_MODULES_LIST + _ROCKPI4_MODULE_OUTS,
677+
module_outs = get_gki_modules_list("arm64") + _ROCKPI4_MODULE_OUTS,
538678
visibility = ["//visibility:private"],
539679
)
540680

Documentation/ABI/testing/sysfs-bus-fsi-devices-sbefifo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Description:
55
Indicates whether or not this SBE device has experienced a
66
timeout; i.e. the SBE did not respond within the time allotted
77
by the driver. A value of 1 indicates that a timeout has
8-
ocurred and no transfers have completed since the timeout. A
9-
value of 0 indicates that no timeout has ocurred, or if one
10-
has, more recent transfers have completed successful.
8+
occurred and no transfers have completed since the timeout. A
9+
value of 0 indicates that no timeout has occurred, or if one
10+
has, more recent transfers have completed successfully.

Documentation/ABI/testing/sysfs-bus-usb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,17 @@ Description:
264264
attached to the port will not be detected, initialized,
265265
or enumerated.
266266

267+
What: /sys/bus/usb/devices/.../<hub_interface>/port<X>/early_stop
268+
Date: Sep 2022
269+
Contact: Ray Chi <[email protected]>
270+
Description:
271+
Some USB hosts have some watchdog mechanisms so that the device
272+
may enter ramdump if it takes a long time during port initialization.
273+
This attribute allows each port just has two attempts so that the
274+
port initialization will be failed quickly. In addition, if a port
275+
which is marked with early_stop has failed to initialize, it will ignore
276+
all future connections until this attribute is clear.
277+
267278
What: /sys/bus/usb/devices/.../<hub_interface>/port<X>/state
268279
Date: June 2023
269280
Contact: Roy Luo <[email protected]>

Documentation/ABI/testing/sysfs-devices-system-cpu

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -513,17 +513,18 @@ Description: information about CPUs heterogeneity.
513513
cpu_capacity: capacity of cpuX.
514514

515515
What: /sys/devices/system/cpu/vulnerabilities
516+
/sys/devices/system/cpu/vulnerabilities/gather_data_sampling
517+
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
518+
/sys/devices/system/cpu/vulnerabilities/l1tf
519+
/sys/devices/system/cpu/vulnerabilities/mds
516520
/sys/devices/system/cpu/vulnerabilities/meltdown
521+
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
522+
/sys/devices/system/cpu/vulnerabilities/retbleed
523+
/sys/devices/system/cpu/vulnerabilities/spec_store_bypass
517524
/sys/devices/system/cpu/vulnerabilities/spectre_v1
518525
/sys/devices/system/cpu/vulnerabilities/spectre_v2
519-
/sys/devices/system/cpu/vulnerabilities/spec_store_bypass
520-
/sys/devices/system/cpu/vulnerabilities/l1tf
521-
/sys/devices/system/cpu/vulnerabilities/mds
522526
/sys/devices/system/cpu/vulnerabilities/srbds
523527
/sys/devices/system/cpu/vulnerabilities/tsx_async_abort
524-
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
525-
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
526-
/sys/devices/system/cpu/vulnerabilities/retbleed
527528
Date: January 2018
528529
Contact: Linux kernel mailing list <[email protected]>
529530
Description: Information about CPU vulnerabilities

Documentation/ABI/testing/sysfs-driver-chromeos-acpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ KernelVersion: 5.19
134134
Description:
135135
Returns the verified boot data block shared between the
136136
firmware verification step and the kernel verification step
137-
(binary).
137+
(hex dump).

Documentation/ABI/testing/sysfs-driver-eud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What: /sys/bus/platform/drivers/eud/.../enable
1+
What: /sys/bus/platform/drivers/qcom_eud/.../enable
22
Date: February 2022
33
Contact: Souradeep Chowdhury <[email protected]>
44
Description:

Documentation/ABI/testing/sysfs-module

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,14 @@ Description: Module taint flags:
6060
C staging driver module
6161
E unsigned module
6262
== =====================
63+
64+
What: /sys/module/grant_table/parameters/free_per_iteration
65+
Date: July 2023
66+
KernelVersion: 6.5 but backported to all supported stable branches
67+
Contact: Xen developer discussion <[email protected]>
68+
Description: Read and write number of grant entries to attempt to free per iteration.
69+
70+
Note: Future versions of Xen and Linux may provide a better
71+
interface for controlling the rate of deferred grant reclaim
72+
or may not need it at all.
73+
Users: Qubes OS (https://www.qubes-os.org)

Documentation/admin-guide/cgroup-v1/memory.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ Brief summary of control files.
9191
memory.oom_control set/show oom controls.
9292
memory.numa_stat show the number of memory usage per numa
9393
node
94-
memory.kmem.limit_in_bytes This knob is deprecated and writing to
95-
it will return -ENOTSUPP.
94+
memory.kmem.limit_in_bytes Deprecated knob to set and read the kernel
95+
memory hard limit. Kernel hard limit is not
96+
supported since 5.16. Writing any value to
97+
do file will not have any effect same as if
98+
nokmem kernel parameter was specified.
99+
Kernel memory is still charged and reported
100+
by memory.kmem.usage_in_bytes.
96101
memory.kmem.usage_in_bytes show current kernel memory allocation
97102
memory.kmem.failcnt show the number of kernel memory usage
98103
hits limits

0 commit comments

Comments
 (0)