Skip to content

Commit

Permalink
docs: add IRQ documentation at the core-api book
Browse files Browse the repository at this point in the history
There are 4 IRQ documentation files under Documentation/*.txt.

Move them into a new directory (core-api/irq) and add a new
index file for it.

While here, use a title markup for the Debugging section of the
irq-domain.rst file.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/2da7485c3718e1442e6b4c2dd66857b776e8899b.1588345503.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Mauro Carvalho Chehab authored and Jonathan Corbet committed May 15, 2020
1 parent a74e2a2 commit e00b0ab
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/admin-guide/hw-vuln/l1tf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Guest mitigation mechanisms
/proc/irq/$NR/smp_affinity[_list] files. Limited documentation is
available at:

https://www.kernel.org/doc/Documentation/IRQ-affinity.txt
https://www.kernel.org/doc/Documentation/core-api/irq/irq-affinity.rst

.. _smt_control:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/kernel-per-CPU-kthreads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ them to a "housekeeping" CPU dedicated to such work.
References
==========

- Documentation/IRQ-affinity.txt: Binding interrupts to sets of CPUs.
- Documentation/core-api/irq/irq-affinity.rst: Binding interrupts to sets of CPUs.

- Documentation/admin-guide/cgroup-v1: Using cgroups to bind tasks to sets of CPUs.

Expand Down
1 change: 1 addition & 0 deletions Documentation/core-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ How Linux keeps everything from happening at the same time. See

atomic_ops
refcount-vs-atomic
irq/index
local_ops
padata
../RCU/index
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions Documentation/core-api/irq/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
====
IRQs
====

.. toctree::
:maxdepth: 1

concepts
irq-affinity
irq-domain
irqflags-tracing
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ needs to:
Hierarchy irq_domain is in no way x86 specific, and is heavily used to
support other architectures, such as ARM, ARM64 etc.

=== Debugging ===
Debugging
=========

Most of the internals of the IRQ subsystem are exposed in debugfs by
turning CONFIG_GENERIC_IRQ_DEBUGFS on.
File renamed without changes.
2 changes: 1 addition & 1 deletion Documentation/ia64/irq-redir.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IRQ affinity on IA64 platforms

By writing to /proc/irq/IRQ#/smp_affinity the interrupt routing can be
controlled. The behavior on IA64 platforms is slightly different from
that described in Documentation/IRQ-affinity.txt for i386 systems.
that described in Documentation/core-api/irq/irq-affinity.rst for i386 systems.

Because of the usage of SAPIC mode and physical destination mode the
IRQ target is one particular CPU and cannot be a mask of several
Expand Down
4 changes: 2 additions & 2 deletions Documentation/networking/scaling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ of queues to IRQs can be determined from /proc/interrupts. By default,
an IRQ may be handled on any CPU. Because a non-negligible part of packet
processing takes place in receive interrupt handling, it is advantageous
to spread receive interrupts between CPUs. To manually adjust the IRQ
affinity of each interrupt see Documentation/IRQ-affinity.txt. Some systems
affinity of each interrupt see Documentation/core-api/irq/irq-affinity.rst. Some systems
will be running irqbalance, a daemon that dynamically optimizes IRQ
assignments and as a result may override any manual settings.

Expand Down Expand Up @@ -160,7 +160,7 @@ can be configured for each receive queue using a sysfs file entry::

This file implements a bitmap of CPUs. RPS is disabled when it is zero
(the default), in which case packets are processed on the interrupting
CPU. Documentation/IRQ-affinity.txt explains how CPUs are assigned to
CPU. Documentation/core-api/irq/irq-affinity.rst explains how CPUs are assigned to
the bitmap.


Expand Down
4 changes: 2 additions & 2 deletions Documentation/translations/zh_CN/IRQ.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Chinese translated version of Documentation/IRQ.txt
Chinese translated version of Documentation/core-api/irq/index.rst

If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
Expand All @@ -9,7 +9,7 @@ or if there is a problem with the translation.
Maintainer: Eric W. Biederman <ebiederman@xmission.com>
Chinese maintainer: Fu Wei <tekkamanninja@gmail.com>
---------------------------------------------------------------------
Documentation/IRQ.txt 的中文翻译
Documentation/core-api/irq/index.rst 的中文翻译

如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -8952,7 +8952,7 @@ IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY)
M: Marc Zyngier <maz@kernel.org>
S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
F: Documentation/IRQ-domain.txt
F: Documentation/core-api/irq/irq-domain.rst
F: include/linux/irqdomain.h
F: kernel/irq/irqdomain.c
F: kernel/irq/msi.c
Expand Down

0 comments on commit e00b0ab

Please sign in to comment.