⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irq-redir.txt

📁 linux 内核源代码
💻 TXT
字号:
IRQ affinity on IA64 platforms------------------------------                           07.01.2002, Erich Focht <efocht@ess.nec.de>By writing to /proc/irq/IRQ#/smp_affinity the interrupt routing can becontrolled. The behavior on IA64 platforms is slightly different fromthat described in Documentation/IRQ-affinity.txt for i386 systems.Because of the usage of SAPIC mode and physical destination mode theIRQ target is one particular CPU and cannot be a mask of severalCPUs. Only the first non-zero bit is taken into account.Usage examples:The target CPU has to be specified as a hexadecimal CPU mask. Thefirst non-zero bit is the selected CPU. This format has been kept forcompatibility reasons with i386.Set the delivery mode of interrupt 41 to fixed and route theinterrupts to CPU #3 (logical CPU number) (2^3=0x08):     echo "8" >/proc/irq/41/smp_affinitySet the default route for IRQ number 41 to CPU 6 in lowest prioritydelivery mode (redirectable):     echo "r 40" >/proc/irq/41/smp_affinityThe output of the command     cat /proc/irq/IRQ#/smp_affinitygives the target CPU mask for the specified interrupt vector. If the CPUmask is preceded by the character "r", the interrupt is redirectable(i.e. lowest priority mode routing is used), otherwise its route isfixed.Initialization and default behavior:If the platform features IRQ redirection (info provided by SAL) allIO-SAPIC interrupts are initialized with CPU#0 as their default targetand the routing is the so called "lowest priority mode" (actuallyfixed SAPIC mode with hint). The XTP chipset registers are used as hintsfor the IRQ routing. Currently in Linux XTP registers can have threevalues:	- minimal for an idle task,	- normal if any other task runs,	- maximal if the CPU is going to be switched off.The IRQ is routed to the CPU with lowest XTP register value, thesearch begins at the default CPU. Therefore most of the interruptswill be handled by CPU #0.If the platform doesn't feature interrupt redirection IOSAPIC fixedrouting is used. The target CPUs are distributed in a round robinmanner. IRQs will be routed only to the selected target CPUs. Checkwith        cat /proc/interruptsComments:On large (multi-node) systems it is recommended to route the IRQs tothe node to which the corresponding device is connected.For systems like the NEC AzusA we get IRQ node-affinity for free. Thisis because usually the chipsets on each node redirect the interruptsonly to their own CPUs (as they cannot see the XTP registers on theother nodes).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -