Skip to content

Commit 346658a

Browse files
committed
Merge tag 'docs-5.18' of git://git.lwn.net/linux
Pull documentation updates from Jonathan Corbet: "It has been a moderately busy cycle for documentation; some of the highlights are: - Numerous PDF-generation improvements - Kees's new document with guidelines for researchers studying the development community. - The ongoing stream of Chinese translations - Thorsten's new document on regression handling - A major reworking of the internal documentation for the kernel-doc script. Plus the usual stream of typo fixes and such" * tag 'docs-5.18' of git://git.lwn.net/linux: (80 commits) docs/kernel-parameters: update description of mem= docs/zh_CN: Add sched-nice-design Chinese translation docs: scheduler: Convert schedutil.txt to ReST Docs: ktap: add code-block type docs: serial: fix a reference file name in driver.rst docs: UML: Mention telnetd for port channel docs/zh_CN: add damon reclaim translation docs/zh_CN: add damon usage translation docs/zh_CN: add admin-guide damon start translation docs/zh_CN: add admin-guide damon index translation docs/zh_CN: Refactoring the admin-guide directory index zh_CN: Add translation for admin-guide/mm/index.rst zh_CN: Add translations for admin-guide/mm/ksm.rst Add Chinese translation for vm/ksm.rst docs/zh_CN: Add sched-stats Chinese translation docs/zh_CN: add devicetree of_unittest translation docs/zh_CN: add devicetree usage-model translation docs/zh_CN: add devicetree index translation Documentation: describe how to apply incremental stable patches docs/zh_CN: add peci subsystem translation ...
2 parents d2eb550 + 75c05fa commit 346658a

Some content is hidden

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

70 files changed

+6323
-549
lines changed

Documentation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SPHINX_CONF = conf.py
2626
PAPER =
2727
BUILDDIR = $(obj)/output
2828
PDFLATEX = xelatex
29-
LATEXOPTS = -interaction=batchmode
29+
LATEXOPTS = -interaction=batchmode -no-shell-escape
3030

3131
ifeq ($(KBUILD_VERBOSE),0)
3232
SPHINXOPTS += "-q"

Documentation/admin-guide/blockdev/zram.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ To use the feature, admin should set up backing device via::
315315

316316
echo /dev/sda5 > /sys/block/zramX/backing_dev
317317

318-
before disksize setting. It supports only partition at this moment.
319-
If admin wants to use incompressible page writeback, they could do via::
318+
before disksize setting. It supports only partitions at this moment.
319+
If admin wants to use incompressible page writeback, they could do it via::
320320

321321
echo huge > /sys/block/zramX/writeback
322322

@@ -341,9 +341,9 @@ Admin can request writeback of those idle pages at right timing via::
341341

342342
echo idle > /sys/block/zramX/writeback
343343

344-
With the command, zram writeback idle pages from memory to the storage.
344+
With the command, zram will writeback idle pages from memory to the storage.
345345

346-
If admin want to write a specific page in zram device to backing device,
346+
If an admin wants to write a specific page in zram device to the backing device,
347347
they could write a page index into the interface.
348348

349349
echo "page_index=1251" > /sys/block/zramX/writeback
@@ -354,7 +354,7 @@ to guarantee storage health for entire product life.
354354

355355
To overcome the concern, zram supports "writeback_limit" feature.
356356
The "writeback_limit_enable"'s default value is 0 so that it doesn't limit
357-
any writeback. IOW, if admin wants to apply writeback budget, he should
357+
any writeback. IOW, if admin wants to apply writeback budget, they should
358358
enable writeback_limit_enable via::
359359

360360
$ echo 1 > /sys/block/zramX/writeback_limit_enable
@@ -365,7 +365,7 @@ until admin sets the budget via /sys/block/zramX/writeback_limit.
365365
(If admin doesn't enable writeback_limit_enable, writeback_limit's value
366366
assigned via /sys/block/zramX/writeback_limit is meaningless.)
367367

368-
If admin want to limit writeback as per-day 400M, he could do it
368+
If admin wants to limit writeback as per-day 400M, they could do it
369369
like below::
370370

371371
$ MB_SHIFT=20
@@ -375,16 +375,16 @@ like below::
375375
$ echo 1 > /sys/block/zram0/writeback_limit_enable
376376

377377
If admins want to allow further write again once the budget is exhausted,
378-
he could do it like below::
378+
they could do it like below::
379379

380380
$ echo $((400<<MB_SHIFT>>4K_SHIFT)) > \
381381
/sys/block/zram0/writeback_limit
382382

383-
If admin wants to see remaining writeback budget since last set::
383+
If an admin wants to see the remaining writeback budget since last set::
384384

385385
$ cat /sys/block/zramX/writeback_limit
386386

387-
If admin want to disable writeback limit, he could do::
387+
If an admin wants to disable writeback limit, they could do::
388388

389389
$ echo 0 > /sys/block/zramX/writeback_limit_enable
390390

@@ -393,7 +393,7 @@ system reboot, echo 1 > /sys/block/zramX/reset) so keeping how many of
393393
writeback happened until you reset the zram to allocate extra writeback
394394
budget in next setting is user's job.
395395

396-
If admin wants to measure writeback count in a certain period, he could
396+
If admin wants to measure writeback count in a certain period, they could
397397
know it via /sys/block/zram0/bd_stat's 3rd column.
398398

399399
memory tracking

Documentation/admin-guide/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ problems and bugs in particular.
3535
:maxdepth: 1
3636

3737
reporting-issues
38+
reporting-regressions
3839
security-bugs
3940
bug-hunting
4041
bug-bisect

Documentation/admin-guide/iostats.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Field 3 -- # of sectors read (unsigned long)
7676

7777
Field 4 -- # of milliseconds spent reading (unsigned int)
7878
This is the total number of milliseconds spent by all reads (as
79-
measured from __make_request() to end_that_request_last()).
79+
measured from blk_mq_alloc_request() to __blk_mq_end_request()).
8080

8181
Field 5 -- # of writes completed (unsigned long)
8282
This is the total number of writes completed successfully.
@@ -89,7 +89,7 @@ Field 7 -- # of sectors written (unsigned long)
8989

9090
Field 8 -- # of milliseconds spent writing (unsigned int)
9191
This is the total number of milliseconds spent by all writes (as
92-
measured from __make_request() to end_that_request_last()).
92+
measured from blk_mq_alloc_request() to __blk_mq_end_request()).
9393

9494
Field 9 -- # of I/Os currently in progress (unsigned int)
9595
The only field that should go to zero. Incremented as requests are
@@ -120,7 +120,7 @@ Field 14 -- # of sectors discarded (unsigned long)
120120

121121
Field 15 -- # of milliseconds spent discarding (unsigned int)
122122
This is the total number of milliseconds spent by all discards (as
123-
measured from __make_request() to end_that_request_last()).
123+
measured from blk_mq_alloc_request() to __blk_mq_end_request()).
124124

125125
Field 16 -- # of flush requests completed
126126
This is the total number of flush requests completed successfully.

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,13 +2827,23 @@
28272827

28282828
For details see: Documentation/admin-guide/hw-vuln/mds.rst
28292829

2830+
mem=nn[KMG] [HEXAGON] Set the memory size.
2831+
Must be specified, otherwise memory size will be 0.
2832+
28302833
mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
28312834
Amount of memory to be used in cases as follows:
28322835

28332836
1 for test;
28342837
2 when the kernel is not able to see the whole system memory;
28352838
3 memory that lies after 'mem=' boundary is excluded from
28362839
the hypervisor, then assigned to KVM guests.
2840+
4 to limit the memory available for kdump kernel.
2841+
2842+
[ARC,MICROBLAZE] - the limit applies only to low memory,
2843+
high memory is not affected.
2844+
2845+
[ARM64] - only limits memory covered by the linear
2846+
mapping. The NOMAP regions are not affected.
28372847

28382848
[X86] Work as limiting max address. Use together
28392849
with memmap= to avoid physical address space collisions.
@@ -2844,6 +2854,14 @@
28442854
in above case 3, memory may need be hot added after boot
28452855
if system memory of hypervisor is not sufficient.
28462856

2857+
mem=nn[KMG]@ss[KMG]
2858+
[ARM,MIPS] - override the memory layout reported by
2859+
firmware.
2860+
Define a memory region of size nn[KMG] starting at
2861+
ss[KMG].
2862+
Multiple different regions can be specified with
2863+
multiple mem= parameters on the command line.
2864+
28472865
mem=nopentium [BUGS=X86-32] Disable usage of 4MB pages for kernel
28482866
memory.
28492867

Documentation/admin-guide/perf/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Performance monitor support
88
:maxdepth: 1
99

1010
hisi-pmu
11+
hisi-pcie-pmu
1112
imx-ddr
1213
qcom_l2_pmu
1314
qcom_l3_pmu

Documentation/admin-guide/reporting-issues.rst

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
.. SPDX-License-Identifier: (GPL-2.0+ OR CC-BY-4.0)
2-
..
3-
If you want to distribute this text under CC-BY-4.0 only, please use 'The
4-
Linux kernel developers' for author attribution and link this as source:
5-
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/admin-guide/reporting-issues.rst
6-
..
7-
Note: Only the content of this RST file as found in the Linux kernel sources
8-
is available under CC-BY-4.0, as versions of this text that were processed
9-
(for example by the kernel's build system) might contain content taken from
10-
files which use a more restrictive license.
11-
2+
.. See the bottom of this file for additional redistribution information.
123
134
Reporting issues
145
++++++++++++++++
@@ -395,22 +386,16 @@ fixed as soon as possible, hence there are 'issues of high priority' that get
395386
handled slightly differently in the reporting process. Three type of cases
396387
qualify: regressions, security issues, and really severe problems.
397388

398-
You deal with a 'regression' if something that worked with an older version of
399-
the Linux kernel does not work with a newer one or somehow works worse with it.
400-
It thus is a regression when a WiFi driver that did a fine job with Linux 5.7
401-
somehow misbehaves with 5.8 or doesn't work at all. It's also a regression if
402-
an application shows erratic behavior with a newer kernel, which might happen
403-
due to incompatible changes in the interface between the kernel and the
404-
userland (like procfs and sysfs). Significantly reduced performance or
405-
increased power consumption also qualify as regression. But keep in mind: the
406-
new kernel needs to be built with a configuration that is similar to the one
407-
from the old kernel (see below how to achieve that). That's because the kernel
408-
developers sometimes can not avoid incompatibilities when implementing new
409-
features; but to avoid regressions such features have to be enabled explicitly
410-
during build time configuration.
389+
You deal with a regression if some application or practical use case running
390+
fine with one Linux kernel works worse or not at all with a newer version
391+
compiled using a similar configuration. The document
392+
Documentation/admin-guide/reporting-regressions.rst explains this in more
393+
detail. It also provides a good deal of other information about regressions you
394+
might want to be aware of; it for example explains how to add your issue to the
395+
list of tracked regressions, to ensure it won't fall through the cracks.
411396

412397
What qualifies as security issue is left to your judgment. Consider reading
413-
'Documentation/admin-guide/security-bugs.rst' before proceeding, as it
398+
Documentation/admin-guide/security-bugs.rst before proceeding, as it
414399
provides additional details how to best handle security issues.
415400

416401
An issue is a 'really severe problem' when something totally unacceptably bad
@@ -517,7 +502,7 @@ line starting with 'CPU:'. It should end with 'Not tainted' if the kernel was
517502
not tainted when it noticed the problem; it was tainted if you see 'Tainted:'
518503
followed by a few spaces and some letters.
519504

520-
If your kernel is tainted, study 'Documentation/admin-guide/tainted-kernels.rst'
505+
If your kernel is tainted, study Documentation/admin-guide/tainted-kernels.rst
521506
to find out why. Try to eliminate the reason. Often it's caused by one these
522507
three things:
523508

@@ -1043,7 +1028,7 @@ down the culprit, as maintainers often won't have the time or setup at hand to
10431028
reproduce it themselves.
10441029

10451030
To find the change there is a process called 'bisection' which the document
1046-
'Documentation/admin-guide/bug-bisect.rst' describes in detail. That process
1031+
Documentation/admin-guide/bug-bisect.rst describes in detail. That process
10471032
will often require you to build about ten to twenty kernel images, trying to
10481033
reproduce the issue with each of them before building the next. Yes, that takes
10491034
some time, but don't worry, it works a lot quicker than most people assume.
@@ -1073,10 +1058,11 @@ When dealing with regressions make sure the issue you face is really caused by
10731058
the kernel and not by something else, as outlined above already.
10741059

10751060
In the whole process keep in mind: an issue only qualifies as regression if the
1076-
older and the newer kernel got built with a similar configuration. The best way
1077-
to archive this: copy the configuration file (``.config``) from the old working
1078-
kernel freshly to each newer kernel version you try. Afterwards run ``make
1079-
olddefconfig`` to adjust it for the needs of the new version.
1061+
older and the newer kernel got built with a similar configuration. This can be
1062+
achieved by using ``make olddefconfig``, as explained in more detail by
1063+
Documentation/admin-guide/reporting-regressions.rst; that document also
1064+
provides a good deal of other information about regressions you might want to be
1065+
aware of.
10801066

10811067

10821068
Write and send the report
@@ -1283,7 +1269,7 @@ them when sending the report by mail. If you filed it in a bug tracker, forward
12831269
the report's text to these addresses; but on top of it put a small note where
12841270
you mention that you filed it with a link to the ticket.
12851271

1286-
See 'Documentation/admin-guide/security-bugs.rst' for more information.
1272+
See Documentation/admin-guide/security-bugs.rst for more information.
12871273

12881274

12891275
Duties after the report went out
@@ -1571,7 +1557,7 @@ Once your report is out your might get asked to do a proper one, as it allows to
15711557
pinpoint the exact change that causes the issue (which then can easily get
15721558
reverted to fix the issue quickly). Hence consider to do a proper bisection
15731559
right away if time permits. See the section 'Special care for regressions' and
1574-
the document 'Documentation/admin-guide/bug-bisect.rst' for details how to
1560+
the document Documentation/admin-guide/bug-bisect.rst for details how to
15751561
perform one. In case of a successful bisection add the author of the culprit to
15761562
the recipients; also CC everyone in the signed-off-by chain, which you find at
15771563
the end of its commit message.
@@ -1594,7 +1580,7 @@ Some fixes are too complex
15941580
Even small and seemingly obvious code-changes sometimes introduce new and
15951581
totally unexpected problems. The maintainers of the stable and longterm kernels
15961582
are very aware of that and thus only apply changes to these kernels that are
1597-
within rules outlined in 'Documentation/process/stable-kernel-rules.rst'.
1583+
within rules outlined in Documentation/process/stable-kernel-rules.rst.
15981584

15991585
Complex or risky changes for example do not qualify and thus only get applied
16001586
to mainline. Other fixes are easy to get backported to the newest stable and
@@ -1756,10 +1742,23 @@ art will lay some groundwork to improve the situation over time.
17561742

17571743

17581744
..
1759-
This text is maintained by Thorsten Leemhuis <linux@leemhuis.info>. If you
1760-
spot a typo or small mistake, feel free to let him know directly and he'll
1761-
fix it. You are free to do the same in a mostly informal way if you want
1762-
to contribute changes to the text, but for copyright reasons please CC
1745+
end-of-content
1746+
..
1747+
This document is maintained by Thorsten Leemhuis <linux@leemhuis.info>. If
1748+
you spot a typo or small mistake, feel free to let him know directly and
1749+
he'll fix it. You are free to do the same in a mostly informal way if you
1750+
want to contribute changes to the text, but for copyright reasons please CC
17631751
linux-doc@vger.kernel.org and "sign-off" your contribution as
17641752
Documentation/process/submitting-patches.rst outlines in the section "Sign
17651753
your work - the Developer's Certificate of Origin".
1754+
..
1755+
This text is available under GPL-2.0+ or CC-BY-4.0, as stated at the top
1756+
of the file. If you want to distribute this text under CC-BY-4.0 only,
1757+
please use "The Linux kernel developers" for author attribution and link
1758+
this as source:
1759+
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/admin-guide/reporting-issues.rst
1760+
..
1761+
Note: Only the content of this RST file as found in the Linux kernel sources
1762+
is available under CC-BY-4.0, as versions of this text that were processed
1763+
(for example by the kernel's build system) might contain content taken from
1764+
files which use a more restrictive license.

0 commit comments

Comments
 (0)