Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am working on documenting and, if required, implementing error handling code for a project. We have an Intel Tylersburg IO Hub on the board. According to the datasheet, the IOH will generate an NMI for any error it encounters, and then software can read some IOH registers to discern what the condition is. It is also possible to program the IOH to generate SMI instead but I don't think I want BIOS doing any of the error handling. Sounds fair enough.
What I am confused about is: it seems a little strange that I have to go into the Linux NMI handler and add a bunch of stuff for a specific device. The existing NMI handler I looked at (do_nmi() in arch/x86_64/kernel/nmi.c) was pretty simple and straightforward and didn't seem to handle any of the errors reported by my IOH. Also, how do I access the IOH registers within the NMI? Would IOH registers be at a well-known memory address? I've asked Intel if a software device driver is needed for the IOH, but they said "no, everything should be configured by BIOS." But they have indicated that some code for error handling may be needed.