Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: x86: convert i386/IO-APIC.txt to reST

This converts the plain text documentation to reStructuredText format and
add it to Sphinx TOC tree. No essential content change.

Signed-off-by: Changbin Du <changbin.du@gmail.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Changbin Du and committed by
Jonathan Corbet
8fffdc93 71892b25

+27 -12
+16 -12
Documentation/x86/i386/IO-APIC.txt Documentation/x86/i386/IO-APIC.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ======= 4 + IO-APIC 5 + ======= 6 + 7 + :Author: Ingo Molnar <mingo@kernel.org> 8 + 1 9 Most (all) Intel-MP compliant SMP boards have the so-called 'IO-APIC', 2 10 which is an enhanced interrupt controller. It enables us to route 3 11 hardware interrupts to multiple CPUs, or to CPU groups. Without an ··· 21 13 not boot Linux, then consult the linux-smp mailing list archives first. 22 14 23 15 If your box boots fine with enabled IO-APIC IRQs, then your 24 - /proc/interrupts will look like this one: 16 + /proc/interrupts will look like this one:: 25 17 26 - ----------------------------> 27 18 hell:~> cat /proc/interrupts 28 19 CPU0 29 20 0: 1360293 IO-APIC-edge timer ··· 35 28 NMI: 0 36 29 ERR: 0 37 30 hell:~> 38 - <---------------------------- 39 31 40 32 Some interrupts are still listed as 'XT PIC', but this is not a problem; 41 33 none of those IRQ sources is performance-critical. ··· 43 37 In the unlikely case that your board does not create a working mp-table, 44 38 you can use the pirq= boot parameter to 'hand-construct' IRQ entries. This 45 39 is non-trivial though and cannot be automated. One sample /etc/lilo.conf 46 - entry: 40 + entry:: 47 41 48 42 append="pirq=15,11,10" 49 43 50 44 The actual numbers depend on your system, on your PCI cards and on their 51 45 PCI slot position. Usually PCI slots are 'daisy chained' before they are 52 46 connected to the PCI chipset IRQ routing facility (the incoming PIRQ1-4 53 - lines): 47 + lines):: 54 48 55 49 ,-. ,-. ,-. ,-. ,-. 56 50 PIRQ4 ----| |-. ,-| |-. ,-| |-. ,-| |--------| | ··· 62 56 PIRQ1 ----| |- `----| |- `----| |- `----| |--------| | 63 57 `-' `-' `-' `-' `-' 64 58 65 - Every PCI card emits a PCI IRQ, which can be INTA, INTB, INTC or INTD: 59 + Every PCI card emits a PCI IRQ, which can be INTA, INTB, INTC or INTD:: 66 60 67 61 ,-. 68 62 INTD--| | ··· 84 78 do not use interrupts normally, thus they are not daisy chained either. 85 79 86 80 so if you have your SCSI card (IRQ11) in Slot1, Tulip card (IRQ9) in 87 - Slot2, then you'll have to specify this pirq= line: 81 + Slot2, then you'll have to specify this pirq= line:: 88 82 89 83 append="pirq=11,9" 90 84 91 85 the following script tries to figure out such a default pirq= line from 92 - your PCI configuration: 86 + your PCI configuration:: 93 87 94 88 echo -n pirq=; echo `scanpci | grep T_L | cut -c56-` | sed 's/ /,/g' 95 89 96 90 note that this script won't work if you have skipped a few slots or if your 97 91 board does not do default daisy-chaining. (or the IO-APIC has the PIRQ pins 98 92 connected in some strange way). E.g. if in the above case you have your SCSI 99 - card (IRQ11) in Slot3, and have Slot1 empty: 93 + card (IRQ11) in Slot3, and have Slot1 empty:: 100 94 101 95 append="pirq=0,9,11" 102 96 ··· 111 105 If you have 2 PCI buses, then you can use up to 8 pirq values, although such 112 106 boards tend to have a good configuration. 113 107 114 - Be prepared that it might happen that you need some strange pirq line: 108 + Be prepared that it might happen that you need some strange pirq line:: 115 109 116 110 append="pirq=0,0,0,0,0,0,9,11" 117 111 ··· 120 114 Good luck and mail to linux-smp@vger.kernel.org or 121 115 linux-kernel@vger.kernel.org if you have any problems that are not covered 122 116 by this document. 123 - 124 - -- mingo 125 117
+10
Documentation/x86/i386/index.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ============ 4 + i386 Support 5 + ============ 6 + 7 + .. toctree:: 8 + :maxdepth: 2 9 + 10 + IO-APIC
+1
Documentation/x86/index.rst
··· 26 26 microcode 27 27 resctrl_ui 28 28 usb-legacy-support 29 + i386/index