forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'docs-6.1' of git://git.lwn.net/linux
Pull documentation updates from Jonathan Corbet: "There's not a huge amount of activity in the docs tree this time around, but a few significant changes even so: - A complete rewriting of the top-level index.rst file, which mostly reflects itself in a redone top page in the HTML-rendered docs. The hope is that the new organization will be a friendlier starting point for both users and developers. - Some math-rendering improvements. - A coding-style.rst update on the use of BUG() and WARN() - A big maintainer-PHP guide update. - Some code-of-conduct updates - More Chinese translation work Plus the usual pile of typo fixes, corrections, and updates" * tag 'docs-6.1' of git://git.lwn.net/linux: (66 commits) checkpatch: warn on usage of VM_BUG_ON() and other BUG variants coding-style.rst: document BUG() and WARN() rules ("do not crash the kernel") Documentation: devres: add missing IO helper Documentation: devres: update IRQ helper Documentation/mm: modify page_referenced to folio_referenced Documentation/CoC: Reflect current CoC interpretation and practices docs/doc-guide: Add documentation on SPHINX_IMGMATH docs: process/5.Posting.rst: clarify use of Reported-by: tag docs, kprobes: Fix the wrong location of Kprobes docs: add a man-pages link to the front page docs: put atomic*.txt and memory-barriers.txt into the core-api book docs: move asm-annotations.rst into core-api docs: remove some index.rst cruft docs: reconfigure the HTML left column docs: Rewrite the front page docs: promote the title of process/index.rst Documentation: devres: add missing SPI helper Documentation: devres: add missing PINCTRL helpers docs: hugetlbpage.rst: fix a typo of hugepage size docs/zh_CN: Add new translation of admin-guide/bootconfig.rst ...
- Loading branch information
Showing
84 changed files
with
2,957 additions
and
1,731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Date: May 2011 | |
KernelVersion: 3.0 | ||
Contact: Rafał Miłecki <[email protected]> | ||
Description: | ||
Each BCMA core has it's manufacturer id. See | ||
Each BCMA core has its manufacturer id. See | ||
include/linux/bcma/bcma.h for possible values. | ||
|
||
What: /sys/bus/bcma/devices/.../id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ What: /sys/bus/platform/devices/ci_hdrc.0/role | |
Date: Mar 2017 | ||
Contact: Peter Chen <[email protected]> | ||
Description: | ||
It returns string "gadget" or "host" when read it, it indicates | ||
current controller role. | ||
When read, it returns string "gadget" or "host", indicating | ||
the current controller role. | ||
|
||
It will do role switch when write "gadget" or "host" to it. | ||
It will do role switch when "gadget" or "host" is written to it. | ||
Only controller at dual-role configuration supports writing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -262,8 +262,6 @@ Compiling the kernel | |
- Make sure you have at least gcc 5.1 available. | ||
For more information, refer to :ref:`Documentation/process/changes.rst <changes>`. | ||
|
||
Please note that you can still run a.out user programs with this kernel. | ||
|
||
- Do a ``make`` to create a compressed kernel image. It is also | ||
possible to do ``make install`` if you have lilo installed to suit the | ||
kernel makefiles, but you may want to check your particular lilo setup first. | ||
|
@@ -332,85 +330,10 @@ Compiling the kernel | |
If something goes wrong | ||
----------------------- | ||
|
||
- If you have problems that seem to be due to kernel bugs, please check | ||
the file MAINTAINERS to see if there is a particular person associated | ||
with the part of the kernel that you are having trouble with. If there | ||
isn't anyone listed there, then the second best thing is to mail | ||
them to me ([email protected]), and possibly to any other | ||
relevant mailing-list or to the newsgroup. | ||
|
||
- In all bug-reports, *please* tell what kernel you are talking about, | ||
how to duplicate the problem, and what your setup is (use your common | ||
sense). If the problem is new, tell me so, and if the problem is | ||
old, please try to tell me when you first noticed it. | ||
|
||
- If the bug results in a message like:: | ||
|
||
unable to handle kernel paging request at address C0000010 | ||
Oops: 0002 | ||
EIP: 0010:XXXXXXXX | ||
eax: xxxxxxxx ebx: xxxxxxxx ecx: xxxxxxxx edx: xxxxxxxx | ||
esi: xxxxxxxx edi: xxxxxxxx ebp: xxxxxxxx | ||
ds: xxxx es: xxxx fs: xxxx gs: xxxx | ||
Pid: xx, process nr: xx | ||
xx xx xx xx xx xx xx xx xx xx | ||
|
||
or similar kernel debugging information on your screen or in your | ||
system log, please duplicate it *exactly*. The dump may look | ||
incomprehensible to you, but it does contain information that may | ||
help debugging the problem. The text above the dump is also | ||
important: it tells something about why the kernel dumped code (in | ||
the above example, it's due to a bad kernel pointer). More information | ||
on making sense of the dump is in Documentation/admin-guide/bug-hunting.rst | ||
|
||
- If you compiled the kernel with CONFIG_KALLSYMS you can send the dump | ||
as is, otherwise you will have to use the ``ksymoops`` program to make | ||
sense of the dump (but compiling with CONFIG_KALLSYMS is usually preferred). | ||
This utility can be downloaded from | ||
https://www.kernel.org/pub/linux/utils/kernel/ksymoops/ . | ||
Alternatively, you can do the dump lookup by hand: | ||
|
||
- In debugging dumps like the above, it helps enormously if you can | ||
look up what the EIP value means. The hex value as such doesn't help | ||
me or anybody else very much: it will depend on your particular | ||
kernel setup. What you should do is take the hex value from the EIP | ||
line (ignore the ``0010:``), and look it up in the kernel namelist to | ||
see which kernel function contains the offending address. | ||
|
||
To find out the kernel function name, you'll need to find the system | ||
binary associated with the kernel that exhibited the symptom. This is | ||
the file 'linux/vmlinux'. To extract the namelist and match it against | ||
the EIP from the kernel crash, do:: | ||
|
||
nm vmlinux | sort | less | ||
|
||
This will give you a list of kernel addresses sorted in ascending | ||
order, from which it is simple to find the function that contains the | ||
offending address. Note that the address given by the kernel | ||
debugging messages will not necessarily match exactly with the | ||
function addresses (in fact, that is very unlikely), so you can't | ||
just 'grep' the list: the list will, however, give you the starting | ||
point of each kernel function, so by looking for the function that | ||
has a starting address lower than the one you are searching for but | ||
is followed by a function with a higher address you will find the one | ||
you want. In fact, it may be a good idea to include a bit of | ||
"context" in your problem report, giving a few lines around the | ||
interesting one. | ||
|
||
If you for some reason cannot do the above (you have a pre-compiled | ||
kernel image or similar), telling me as much about your setup as | ||
possible will help. Please read | ||
'Documentation/admin-guide/reporting-issues.rst' for details. | ||
|
||
- Alternatively, you can use gdb on a running kernel. (read-only; i.e. you | ||
cannot change values or set break points.) To do this, first compile the | ||
kernel with -g; edit arch/x86/Makefile appropriately, then do a ``make | ||
clean``. You'll also need to enable CONFIG_PROC_FS (via ``make config``). | ||
|
||
After you've rebooted with the new kernel, do ``gdb vmlinux /proc/kcore``. | ||
You can now use all the usual gdb commands. The command to look up the | ||
point where your system crashed is ``l *0xXXXXXXXX``. (Replace the XXXes | ||
with the EIP value.) | ||
|
||
gdb'ing a non-running kernel currently fails because ``gdb`` (wrongly) | ||
disregards the starting offset for which the kernel is compiled. | ||
If you have problems that seem to be due to kernel bugs, please follow the | ||
instructions at 'Documentation/admin-guide/reporting-issues.rst'. | ||
|
||
Hints on understanding kernel bug reports are in | ||
'Documentation/admin-guide/bug-hunting.rst'. More on debugging the kernel | ||
with gdb is in 'Documentation/dev-tools/gdb-kernel-debugging.rst' and | ||
'Documentation/dev-tools/kgdb.rst'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
This is a simple wrapper to bring atomic_bitops.txt into the RST world | ||
until such a time as that file can be converted directly. | ||
============= | ||
Atomic bitops | ||
============= | ||
|
||
.. raw:: latex | ||
|
||
\footnotesize | ||
|
||
.. include:: ../../atomic_bitops.txt | ||
:literal: | ||
|
||
.. raw:: latex | ||
|
||
\normalsize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
This is a simple wrapper to bring atomic_t.txt into the RST world | ||
until such a time as that file can be converted directly. | ||
============ | ||
Atomic types | ||
============ | ||
|
||
.. raw:: latex | ||
|
||
\footnotesize | ||
|
||
.. include:: ../../atomic_t.txt | ||
:literal: | ||
|
||
.. raw:: latex | ||
|
||
\normalsize | ||
|
Oops, something went wrong.