Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 2451736

Browse files
Tudor AmbarusTreehugger Robot
authored andcommitted
Merge cc8b10f ("Merge tag 'usb-6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb") into android-mainline
Steps on the way to v6.14-rc1 Change-Id: I5646665747f9ba05d3ff9f9d335cd1f022ba6882 Signed-off-by: Tudor Ambarus <tudordana@google.com>
2 parents 1632ce1 + cc8b10f commit 2451736

File tree

774 files changed

+18105
-12589
lines changed

Some content is hidden

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

774 files changed

+18105
-12589
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ Liam Mark <quic_lmark@quicinc.com> <lmark@codeaurora.org>
415415
Linas Vepstas <linas@austin.ibm.com>
416416
Linus Lüssing <linus.luessing@c0d3.blue> <linus.luessing@ascom.ch>
417417
Linus Lüssing <linus.luessing@c0d3.blue> <linus.luessing@web.de>
418+
Linus Lüssing <linus.luessing@c0d3.blue> <ll@simonwunderlich.de>
418419
<linux-hardening@vger.kernel.org> <kernel-hardening@lists.openwall.com>
419420
Li Yang <leoyang.li@nxp.com> <leoli@freescale.com>
420421
Li Yang <leoyang.li@nxp.com> <leo@zh-kernel.org>

CREDITS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,7 @@ D: Freescale Highspeed USB device driver
43394339
D: Freescale QE SoC support and Ethernet driver
43404340
S: B-1206 Jingmao Guojigongyu
43414341
S: 16 Baliqiao Nanjie, Beijing 101100
4342-
S: People's Repulic of China
4342+
S: People's Republic of China
43434343

43444344
N: Vlad Yasevich
43454345
E: vyasevich@gmail.com

Documentation/ABI/testing/sysfs-class-power

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,30 @@ Description:
407407

408408
Access: Read, Write
409409

410+
Reading this returns the current active value, e.g. 'Standard'.
411+
Check charge_types to get the values supported by the battery.
412+
410413
Valid values:
411414
"Unknown", "N/A", "Trickle", "Fast", "Standard",
412415
"Adaptive", "Custom", "Long Life", "Bypass"
413416

417+
What: /sys/class/power_supply/<supply_name>/charge_types
418+
Date: December 2024
419+
Contact: linux-pm@vger.kernel.org
420+
Description:
421+
Identical to charge_type but reading returns a list of supported
422+
charge-types with the currently active type surrounded by square
423+
brackets, e.g.: "Fast [Standard] Long_Life".
424+
425+
power_supply class devices may support both charge_type and
426+
charge_types for backward compatibility. In this case both will
427+
always have the same active value and the active value can be
428+
changed by writing either property.
429+
430+
Note charge-types which contain a space such as "Long Life" will
431+
have the space replaced by a '_' resulting in e.g. "Long_Life".
432+
When writing charge-types both variants are accepted.
433+
414434
What: /sys/class/power_supply/<supply_name>/charge_term_current
415435
Date: July 2014
416436
Contact: linux-pm@vger.kernel.org
@@ -433,7 +453,7 @@ Description:
433453

434454
Valid values:
435455
"Unknown", "Good", "Overheat", "Dead",
436-
"Over voltage", "Unspecified failure", "Cold",
456+
"Over voltage", "Under voltage", "Unspecified failure", "Cold",
437457
"Watchdog timer expire", "Safety timer expire",
438458
"Over current", "Calibration required", "Warm",
439459
"Cool", "Hot", "No battery"
@@ -793,3 +813,12 @@ Description:
793813

794814
Access: Read
795815
Valid values: 1-31
816+
817+
What: /sys/class/power_supply/<supply_name>/extensions/<extension_name>
818+
Date: March 2025
819+
Contact: linux-pm@vger.kernel.org
820+
Description:
821+
Reports the extensions registered to the power supply.
822+
Each entry is a link to the device which registered the extension.
823+
824+
Access: Read
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
What: /sys/class/power_supply/max1720x/temp_ain1
2+
Date: January 2025
3+
KernelVersion: 6.14
4+
Contact: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
5+
Description:
6+
Reports the current temperature reading from AIN1 thermistor.
7+
8+
Access: Read
9+
10+
Valid values: Represented in 1/10 Degrees Celsius
11+
12+
What: /sys/class/power_supply/max1720x/temp_ain2
13+
Date: January 2025
14+
KernelVersion: 6.14
15+
Contact: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
16+
Description:
17+
Reports the current temperature reading from AIN2 thermistor.
18+
19+
Access: Read
20+
21+
Valid values: Represented in 1/10 Degrees Celsius
22+
23+
What: /sys/class/power_supply/max1720x/temp_int
24+
Date: January 2025
25+
KernelVersion: 6.14
26+
Contact: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
27+
Description:
28+
Reports the current temperature reading from internal die.
29+
30+
Access: Read
31+
32+
Valid values: Represented in 1/10 Degrees Celsius

Documentation/ABI/testing/sysfs-kernel-mm-damon

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,15 @@ Description: If 'target' is written to the 'type' file, writing to or
355355
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/matching
356356
Date: Dec 2022
357357
Contact: SeongJae Park <sj@kernel.org>
358-
Description: Writing 'Y' or 'N' to this file sets whether to filter out
359-
pages that do or do not match to the 'type' and 'memcg_path',
360-
respectively. Filter out means the action of the scheme will
361-
not be applied to.
358+
Description: Writing 'Y' or 'N' to this file sets whether the filter is for
359+
the memory of the 'type', or all except the 'type'.
360+
361+
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/filters/<F>/allow
362+
Date: Jan 2025
363+
Contact: SeongJae Park <sj@kernel.org>
364+
Description: Writing 'Y' or 'N' to this file sets whether to allow or reject
365+
applying the scheme's action to the memory that satisfies the
366+
'type' and the 'matching' of the directory.
362367

363368
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/nr_tried
364369
Date: Mar 2022
@@ -384,6 +389,12 @@ Contact: SeongJae Park <sj@kernel.org>
384389
Description: Reading this file returns the total size of regions that the
385390
action of the scheme has successfully applied in bytes.
386391

392+
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/sz_ops_filter_passed
393+
Date: Dec 2024
394+
Contact: SeongJae Park <sj@kernel.org>
395+
Description: Reading this file returns the total size of memory that passed
396+
DAMON operations layer-handled filters of the scheme in bytes.
397+
387398
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/stats/qt_exceeds
388399
Date: Mar 2022
389400
Contact: SeongJae Park <sj@kernel.org>
@@ -424,3 +435,10 @@ Contact: SeongJae Park <sj@kernel.org>
424435
Description: Reading this file returns the 'age' of a memory region that
425436
corresponding DAMON-based Operation Scheme's action has tried
426437
to be applied.
438+
439+
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/sz_filter_passed
440+
Date: Dec 2024
441+
Contact: SeongJae Park <sj@kernel.org>
442+
Description: Reading this file returns the size of the memory in the region
443+
that passed DAMON operations layer-handled filters of the
444+
scheme in bytes.

Documentation/accounting/delay-accounting.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,29 +100,29 @@ Get delays, since system boot, for pid 10::
100100
# ./getdelays -d -p 10
101101
(output similar to next case)
102102

103-
Get sum of delays, since system boot, for all pids with tgid 5::
103+
Get sum and peak of delays, since system boot, for all pids with tgid 242::
104104

105-
# ./getdelays -d -t 5
105+
bash-4.4# ./getdelays -d -t 242
106106
print delayacct stats ON
107-
TGID 5
108-
109-
110-
CPU count real total virtual total delay total delay average
111-
8 7000000 6872122 3382277 0.423ms
112-
IO count delay total delay average
113-
0 0 0.000ms
114-
SWAP count delay total delay average
115-
0 0 0.000ms
116-
RECLAIM count delay total delay average
117-
0 0 0.000ms
118-
THRASHING count delay total delay average
119-
0 0 0.000ms
120-
COMPACT count delay total delay average
121-
0 0 0.000ms
122-
WPCOPY count delay total delay average
123-
0 0 0.000ms
124-
IRQ count delay total delay average
125-
0 0 0.000ms
107+
TGID 242
108+
109+
110+
CPU count real total virtual total delay total delay average delay max delay min
111+
39 156000000 156576579 2111069 0.054ms 0.212296ms 0.031307ms
112+
IO count delay total delay average delay max delay min
113+
0 0 0.000ms 0.000000ms 0.000000ms
114+
SWAP count delay total delay average delay max delay min
115+
0 0 0.000ms 0.000000ms 0.000000ms
116+
RECLAIM count delay total delay average delay max delay min
117+
0 0 0.000ms 0.000000ms 0.000000ms
118+
THRASHING count delay total delay average delay max delay min
119+
0 0 0.000ms 0.000000ms 0.000000ms
120+
COMPACT count delay total delay average delay max delay min
121+
0 0 0.000ms 0.000000ms 0.000000ms
122+
WPCOPY count delay total delay average delay max delay min
123+
156 11215873 0.072ms 0.207403ms 0.033913ms
124+
IRQ count delay total delay average delay max delay min
125+
0 0 0.000ms 0.000000ms 0.000000ms
126126

127127
Get IO accounting for pid 1, it works only with -p::
128128

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,8 +3503,8 @@
35033503
[KNL] Set the initial state for the memory hotplug
35043504
onlining policy. If not specified, the default value is
35053505
set according to the
3506-
CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE kernel config
3507-
option.
3506+
CONFIG_MHP_DEFAULT_ONLINE_TYPE kernel config
3507+
options.
35083508
See Documentation/admin-guide/mm/memory-hotplug.rst.
35093509

35103510
memmap=exactmap [KNL,X86,EARLY] Enable setting of an exact
@@ -7326,6 +7326,13 @@
73267326
See Documentation/admin-guide/mm/transhuge.rst
73277327
for more details.
73287328

7329+
transparent_hugepage_tmpfs= [KNL]
7330+
Format: [always|within_size|advise|never]
7331+
Can be used to control the default hugepage allocation policy
7332+
for the tmpfs mount.
7333+
See Documentation/admin-guide/mm/transhuge.rst
7334+
for more details.
7335+
73297336
trusted.source= [KEYS]
73307337
Format: <string>
73317338
This parameter identifies the trust source as a backend

Documentation/admin-guide/mm/damon/start.rst

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,45 @@ the execution. ::
4242

4343
$ git clone https://github.com/sjp38/masim; cd masim; make
4444
$ sudo damo start "./masim ./configs/stairs.cfg --quiet"
45-
$ sudo ./damo show
46-
0 addr [85.541 TiB , 85.541 TiB ) (57.707 MiB ) access 0 % age 10.400 s
47-
1 addr [85.541 TiB , 85.542 TiB ) (413.285 MiB) access 0 % age 11.400 s
48-
2 addr [127.649 TiB , 127.649 TiB) (57.500 MiB ) access 0 % age 1.600 s
49-
3 addr [127.649 TiB , 127.649 TiB) (32.500 MiB ) access 0 % age 500 ms
50-
4 addr [127.649 TiB , 127.649 TiB) (9.535 MiB ) access 100 % age 300 ms
51-
5 addr [127.649 TiB , 127.649 TiB) (8.000 KiB ) access 60 % age 0 ns
52-
6 addr [127.649 TiB , 127.649 TiB) (6.926 MiB ) access 0 % age 1 s
53-
7 addr [127.998 TiB , 127.998 TiB) (120.000 KiB) access 0 % age 11.100 s
54-
8 addr [127.998 TiB , 127.998 TiB) (8.000 KiB ) access 40 % age 100 ms
55-
9 addr [127.998 TiB , 127.998 TiB) (4.000 KiB ) access 0 % age 11 s
56-
total size: 577.590 MiB
57-
$ sudo ./damo stop
45+
$ sudo damo report access
46+
heatmap: 641111111000000000000000000000000000000000000000000000[...]33333333333333335557984444[...]7
47+
# min/max temperatures: -1,840,000,000, 370,010,000, column size: 3.925 MiB
48+
0 addr 86.182 TiB size 8.000 KiB access 0 % age 14.900 s
49+
1 addr 86.182 TiB size 8.000 KiB access 60 % age 0 ns
50+
2 addr 86.182 TiB size 3.422 MiB access 0 % age 4.100 s
51+
3 addr 86.182 TiB size 2.004 MiB access 95 % age 2.200 s
52+
4 addr 86.182 TiB size 29.688 MiB access 0 % age 14.100 s
53+
5 addr 86.182 TiB size 29.516 MiB access 0 % age 16.700 s
54+
6 addr 86.182 TiB size 29.633 MiB access 0 % age 17.900 s
55+
7 addr 86.182 TiB size 117.652 MiB access 0 % age 18.400 s
56+
8 addr 126.990 TiB size 62.332 MiB access 0 % age 9.500 s
57+
9 addr 126.990 TiB size 13.980 MiB access 0 % age 5.200 s
58+
10 addr 126.990 TiB size 9.539 MiB access 100 % age 3.700 s
59+
11 addr 126.990 TiB size 16.098 MiB access 0 % age 6.400 s
60+
12 addr 127.987 TiB size 132.000 KiB access 0 % age 2.900 s
61+
total size: 314.008 MiB
62+
$ sudo damo stop
5863

5964
The first command of the above example downloads and builds an artificial
6065
memory access generator program called ``masim``. The second command asks DAMO
61-
to execute the artificial generator process start via the given command and
62-
make DAMON monitors the generator process. The third command retrieves the
63-
current snapshot of the monitored access pattern of the process from DAMON and
64-
shows the pattern in a human readable format.
65-
66-
Each line of the output shows which virtual address range (``addr [XX, XX)``)
67-
of the process is how frequently (``access XX %``) accessed for how long time
68-
(``age XX``). For example, the fifth region of ~9 MiB size is being most
69-
frequently accessed for last 300 milliseconds. Finally, the fourth command
70-
stops DAMON.
66+
to start the program via the given command and make DAMON monitors the newly
67+
started process. The third command retrieves the current snapshot of the
68+
monitored access pattern of the process from DAMON and shows the pattern in a
69+
human readable format.
70+
71+
The first line of the output shows the relative access temperature (hotness) of
72+
the regions in a single row hetmap format. Each column on the heatmap
73+
represents regions of same size on the monitored virtual address space. The
74+
position of the colun on the row and the number on the column represents the
75+
relative location and access temperature of the region. ``[...]`` means
76+
unmapped huge regions on the virtual address spaces. The second line shows
77+
additional information for better understanding the heatmap.
78+
79+
Each line of the output from the third line shows which virtual address range
80+
(``addr XX size XX``) of the process is how frequently (``access XX %``)
81+
accessed for how long time (``age XX``). For example, the evelenth region of
82+
~9.5 MiB size is being most frequently accessed for last 3.7 seconds. Finally,
83+
the fourth command stops DAMON.
7184

7285
Note that DAMON can monitor not only virtual address spaces but multiple types
7386
of address spaces including the physical address space.
@@ -95,7 +108,7 @@ Visualizing Recorded Patterns
95108
You can visualize the pattern in a heatmap, showing which memory region
96109
(x-axis) got accessed when (y-axis) and how frequently (number).::
97110

98-
$ sudo damo report heats --heatmap stdout
111+
$ sudo damo report heatmap
99112
22222222222222222222222222222222222222211111111111111111111111111111111111111100
100113
44444444444444444444444444444444444444434444444444444444444444444444444444443200
101114
44444444444444444444444444444444444444433444444444444444444444444444444444444200
@@ -160,6 +173,6 @@ Data Access Pattern Aware Memory Management
160173
Below command makes every memory region of size >=4K that has not accessed for
161174
>=60 seconds in your workload to be swapped out. ::
162175

163-
$ sudo damo schemes --damos_access_rate 0 0 --damos_sz_region 4K max \
164-
--damos_age 60s max --damos_action pageout \
165-
<pid of your workload>
176+
$ sudo damo start --damos_access_rate 0 0 --damos_sz_region 4K max \
177+
--damos_age 60s max --damos_action pageout \
178+
<pid of your workload>

0 commit comments

Comments
 (0)