Linux acpi
ACPI的介绍能Google到很多,今天遇到一个与此相关的问题。一同事说设备nmi中断不触发,凌动D425的CPU芯片,2.4.37的linux内核,把设备拿来启动看看,发现启动参数里acpi=off,而/proc/cpuinfo显示为1个cpu,查看/proc/interrupts,发现中断类型皆为最原始的XT-PIC,想到nmi需要apic支持,难道是apic被连带的禁用了?试试将内核参数改为acpi=on,结果还真成了,nmi能够得以触发,/proc/cpuinfo显示出2个cpu,原来D425是单核心双线程,/proc/interrupts里显示的各个中断类型为IO-APIC-edge或IO-APIC-level。
试了2.6的内核,禁用acpi貌似并不会导致apci也无法使用,不知是否是因为2.4的内核太矬了?嘛,算了,贴一下相关内核参数:
acpi=off或noacpi
禁止一切ACPI功能;This parameter disables the whole ACPI system.
acpi=force
强制使用ACPI功能;Activates the ACPI system even if your computer BIOS date is older than 2000. This parameter overrides acpi=off and can also be used with current hardware if the ACPI support is not activated despite apm=off.
acpi=oldboot
禁止除与启动过程相关内容以外的所有ACPI功能;Deactivates the ACPI system almost completely; only the components required for the boot process will be used.
acpi=ht
禁止除多处理器配置相关内容以外的所有ACPI功能;Deactivates the ACPI system almost completely; only the components required for hyper threading will be used.
pci=noacpi
禁用ACPI来处理任何PCI相关的内容,包括PCI root bus的枚举和PCI设备中断路由;These parameters disable the PCI IRQ routing.
pci=acpi
启用ACPI来处理任何PCI相关的内容;This parameter activates the PCI IRQ routing.
acpi=noirq
禁止使用ACPI来处理PCI设备中断路由,和pci=noacpi的区别是它允许使用ACPI来枚举PCI root bus;These parameters disable the PCI IRQ routing.
pnpacpi=off
禁止使用ACPI来枚举PNP设备,比如串口、PS2键盘鼠标等;
noapic
禁止使用APIC(Advanced Programmable Interrupt Controller),那么只能使用最古老的PIC 8259;Disable the “Advanced Programmable Interrupt Controller (APIC)”.
nolapic
禁止使用Local-APIC;Disable the “local APIC”.
irqpoll
改中断为轮询;Changes the way the kernel handles interrupt calls (set it to polling). Can be useful in case of hardware interrupt issues.
参考链接:http://www.kernel.org/doc/Documentation/kernel-parameters.txt
转载请保留地址:http://lenky.info/archives/2012/06/18/1734 或 http://lenky.info/?p=1734
备注:如无特殊说明,文章内容均出自Lenky个人的真实理解而并非存心妄自揣测来故意愚人耳目。由于个人水平有限,虽力求内容正确无误,但仍然难免出错,请勿见怪,如果可以则请留言告之,并欢迎来讨论。另外值得说明的是,Lenky的部分文章以及部分内容参考借鉴了网络上各位网友的热心分享,特别是一些带有完全参考的文章,其后附带的链接内容也许更直接、更丰富,而我只是做了一下归纳&转述,在此也一并表示感谢。关于本站的所有技术文章,欢迎转载,但请遵从CC创作共享协议,而一些私人性质较强的心情随笔,建议不要转载。
法律:根据最新颁布的《信息网络传播权保护条例》,如果您认为本文章的任何内容侵犯了您的权利,请以或书面等方式告知,本站将及时删除相关内容或链接。