€•'Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ#/translations/zh_CN/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/zh_TW/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/it_IT/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ja_JP/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ko_KR/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/pt_BR/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/sp_SP/driver-api/ipmi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒThe Linux IPMI Driver”h]”hŒThe Linux IPMI Driver”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ=/var/lib/git/docbuild/linux/Documentation/driver-api/ipmi.rst”h´KubhŒ field_list”“”)�”}”(hhh]”hŒfield”“”)�”}”(hhh]”(hŒ field_name”“”)�”}”(hŒAuthor”h]”hŒAuthor”…”�”}”(hh×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhhÒh³hÊh´KubhŒ field_body”“”)�”}”(hŒ7Corey Minyard / ”h]”hŒ paragraph”“”)�”}”(hŒ6Corey Minyard / ”h]”(hŒCorey Minyard <”…”�”}”(hhíh²hh³Nh´NubhŒ reference”“”)�”}”(hŒminyard@mvista.com”h]”hŒminyard@mvista.com”…”�”}”(hh÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:minyard@mvista.com”uh1hõhhíubhŒ> / <”…”�”}”(hhíh²hh³Nh´Nubhö)�”}”(hŒminyard@acm.org”h]”hŒminyard@acm.org”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:minyard@acm.org”uh1hõhhíubhŒ>”…”�”}”(hhíh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khhçubah}”(h]”h ]”h"]”h$]”h&]”uh1håhhÒubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÐh³hÊh´KhhÍh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhh·h²hh³hÊh´Kubhì)�”}”(hX’The Intelligent Platform Management Interface, or IPMI, is a standard for controlling intelligent devices that monitor a system. It provides for dynamic discovery of sensors in the system and the ability to monitor the sensors and be informed when the sensor's values change or go outside certain boundaries. It also has a standardized database for field-replaceable units (FRUs) and a watchdog timer.”h]”hX”The Intelligent Platform Management Interface, or IPMI, is a standard for controlling intelligent devices that monitor a system. It provides for dynamic discovery of sensors in the system and the ability to monitor the sensors and be informed when the sensor’s values change or go outside certain boundaries. It also has a standardized database for field-replaceable units (FRUs) and a watchdog timer.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khh·h²hubhì)�”}”(hŒ°To use this, you need an interface to an IPMI controller in your system (called a Baseboard Management Controller, or BMC) and management software that can use the IPMI system.”h]”hŒ°To use this, you need an interface to an IPMI controller in your system (called a Baseboard Management Controller, or BMC) and management software that can use the IPMI system.”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khh·h²hubhì)�”}”(hŒçThis document describes how to use the IPMI driver for Linux. If you are not familiar with IPMI itself, see the web site at https://www.intel.com/design/servers/ipmi/index.htm. IPMI is a big subject and I can't cover it all here!”h]”(hŒ}This document describes how to use the IPMI driver for Linux. If you are not familiar with IPMI itself, see the web site at ”…”�”}”(hjSh²hh³Nh´Nubhö)�”}”(hŒ3https://www.intel.com/design/servers/ipmi/index.htm”h]”hŒ3https://www.intel.com/design/servers/ipmi/index.htm”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j]uh1hõhjSubhŒ9. IPMI is a big subject and I can’t cover it all here!”…”�”}”(hjSh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khh·h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒ Configuration”h]”hŒ Configuration”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjth²hh³hÊh´Kubhì)�”}”(hŒÐThe Linux IPMI driver is modular, which means you have to pick several things to have it work right depending on your hardware. Most of these are available in the 'Character Devices' menu then the IPMI menu.”h]”hŒÔThe Linux IPMI driver is modular, which means you have to pick several things to have it work right depending on your hardware. Most of these are available in the ‘Character Devices’ menu then the IPMI menu.”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Khjth²hubhì)�”}”(hŒˆNo matter what, you must pick 'IPMI top-level message handler' to use IPMI. What you do beyond that depends on your needs and hardware.”h]”hŒŒNo matter what, you must pick ‘IPMI top-level message handler’ to use IPMI. What you do beyond that depends on your needs and hardware.”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K hjth²hubhì)�”}”(hŒïThe message handler does not provide any user-level interfaces. Kernel code (like the watchdog) can still use it. If you need access from userland, you need to select 'Device interface for IPMI' if you want access through a device driver.”h]”hŒóThe message handler does not provide any user-level interfaces. Kernel code (like the watchdog) can still use it. If you need access from userland, you need to select ‘Device interface for IPMI’ if you want access through a device driver.”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K#hjth²hubhì)�”}”(hXçThe driver interface depends on your hardware. If your system properly provides the SMBIOS info for IPMI, the driver will detect it and just work. If you have a board with a standard interface (These will generally be either "KCS", "SMIC", or "BT", consult your hardware manual), choose the 'IPMI SI handler' option. A driver also exists for direct I2C access to the IPMI management controller. Some boards support this, but it is unknown if it will work on every board. For this, choose 'IPMI SMBus handler', but be ready to try to do some figuring to see if it will work on your system if the SMBIOS/ACPI information is wrong or not present. It is fairly safe to have both these enabled and let the drivers auto-detect what is present.”h]”hXûThe driver interface depends on your hardware. If your system properly provides the SMBIOS info for IPMI, the driver will detect it and just work. If you have a board with a standard interface (These will generally be either “KCSâ€�, “SMICâ€�, or “BTâ€�, consult your hardware manual), choose the ‘IPMI SI handler’ option. A driver also exists for direct I2C access to the IPMI management controller. Some boards support this, but it is unknown if it will work on every board. For this, choose ‘IPMI SMBus handler’, but be ready to try to do some figuring to see if it will work on your system if the SMBIOS/ACPI information is wrong or not present. It is fairly safe to have both these enabled and let the drivers auto-detect what is present.”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K(hjth²hubhì)�”}”(hŒkYou should generally enable ACPI on your system, as systems with IPMI can have ACPI tables describing them.”h]”hŒkYou should generally enable ACPI on your system, as systems with IPMI can have ACPI tables describing them.”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K4hjth²hubhì)�”}”(hXÈIf you have a standard interface and the board manufacturer has done their job correctly, the IPMI controller should be automatically detected (via ACPI or SMBIOS tables) and should just work. Sadly, many boards do not have this information. The driver attempts standard defaults, but they may not work. If you fall into this situation, you need to read the section below named 'The SI Driver' or "The SMBus Driver" on how to hand-configure your system.”h]”hXÐIf you have a standard interface and the board manufacturer has done their job correctly, the IPMI controller should be automatically detected (via ACPI or SMBIOS tables) and should just work. Sadly, many boards do not have this information. The driver attempts standard defaults, but they may not work. If you fall into this situation, you need to read the section below named ‘The SI Driver’ or “The SMBus Driverâ€� on how to hand-configure your system.”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K7hjth²hubhì)�”}”(hXEIPMI defines a standard watchdog timer. You can enable this with the 'IPMI Watchdog Timer' config option. If you compile the driver into the kernel, then via a kernel command-line option you can have the watchdog timer start as soon as it initializes. It also has a lot of other options, see the 'Watchdog' section below for more details. Note that you can also have the watchdog continue to run if it is closed (by default it is disabled on close). Go into the 'Watchdog Cards' menu, enable 'Watchdog Timer Support', and enable the option 'Disable watchdog shutdown on close'.”h]”hXYIPMI defines a standard watchdog timer. You can enable this with the ‘IPMI Watchdog Timer’ config option. If you compile the driver into the kernel, then via a kernel command-line option you can have the watchdog timer start as soon as it initializes. It also has a lot of other options, see the ‘Watchdog’ section below for more details. Note that you can also have the watchdog continue to run if it is closed (by default it is disabled on close). Go into the ‘Watchdog Cards’ menu, enable ‘Watchdog Timer Support’, and enable the option ‘Disable watchdog shutdown on close’.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K?hjth²hubhì)�”}”(hXmIPMI systems can often be powered off using IPMI commands. Select 'IPMI Poweroff' to do this. The driver will auto-detect if the system can be powered off by IPMI. It is safe to enable this even if your system doesn't support this option. This works on ATCA systems, the Radisys CPI1 card, and any IPMI system that supports standard chassis management commands.”h]”hXsIPMI systems can often be powered off using IPMI commands. Select ‘IPMI Poweroff’ to do this. The driver will auto-detect if the system can be powered off by IPMI. It is safe to enable this even if your system doesn’t support this option. This works on ATCA systems, the Radisys CPI1 card, and any IPMI system that supports standard chassis management commands.”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KIhjth²hubhì)�”}”(hXâIf you want the driver to put an event into the event log on a panic, enable the 'Generate a panic event to all BMCs on a panic' option. If you want the whole panic string put into the event log using OEM events, enable the 'Generate OEM events containing the panic string' option. You can also enable these dynamically by setting the module parameter named "panic_op" in the ipmi_msghandler module to "event" or "string". Setting that parameter to "none" disables this function.”h]”hXúIf you want the driver to put an event into the event log on a panic, enable the ‘Generate a panic event to all BMCs on a panic’ option. If you want the whole panic string put into the event log using OEM events, enable the ‘Generate OEM events containing the panic string’ option. You can also enable these dynamically by setting the module parameter named “panic_opâ€� in the ipmi_msghandler module to “eventâ€� or “stringâ€�. Setting that parameter to “noneâ€� disables this function.”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KPhjth²hubeh}”(h]”Œ configuration”ah ]”h"]”Œ configuration”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)�”}”(hhh]”(h»)�”}”(hŒ Basic Design”h]”hŒ Basic Design”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj h²hh³hÊh´KYubhì)�”}”(hŒóThe Linux IPMI driver is designed to be very modular and flexible, you only need to take the pieces you need and you can use it in many different ways. Because of that, it's broken into many chunks of code. These chunks (by module name) are:”h]”hŒõThe Linux IPMI driver is designed to be very modular and flexible, you only need to take the pieces you need and you can use it in many different ways. Because of that, it’s broken into many chunks of code. These chunks (by module name) are:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K[hj h²hubhì)�”}”(hX|ipmi_msghandler - This is the central piece of software for the IPMI system. It handles all messages, message timing, and responses. The IPMI users tie into this, and the IPMI physical interfaces (called System Management Interfaces, or SMIs) also tie in here. This provides the kernelland interface for IPMI, but does not provide an interface for use by application processes.”h]”hX|ipmi_msghandler - This is the central piece of software for the IPMI system. It handles all messages, message timing, and responses. The IPMI users tie into this, and the IPMI physical interfaces (called System Management Interfaces, or SMIs) also tie in here. This provides the kernelland interface for IPMI, but does not provide an interface for use by application processes.”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K`hj h²hubhì)�”}”(hŒ›ipmi_devintf - This provides a userland IOCTL interface for the IPMI driver, each open file for this device ties in to the message handler as an IPMI user.”h]”hŒ›ipmi_devintf - This provides a userland IOCTL interface for the IPMI driver, each open file for this device ties in to the message handler as an IPMI user.”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kghj h²hubhì)�”}”(hŒ¿ipmi_si - A driver for various system interfaces. This supports KCS, SMIC, and BT interfaces. Unless you have an SMBus interface or your own custom interface, you probably need to use this.”h]”hŒ¿ipmi_si - A driver for various system interfaces. This supports KCS, SMIC, and BT interfaces. Unless you have an SMBus interface or your own custom interface, you probably need to use this.”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kkhj h²hubhì)�”}”(hŒ˜ipmi_ssif - A driver for accessing BMCs on the SMBus. It uses the I2C kernel driver's SMBus interfaces to send and receive IPMI messages over the SMBus.”h]”hŒšipmi_ssif - A driver for accessing BMCs on the SMBus. It uses the I2C kernel driver’s SMBus interfaces to send and receive IPMI messages over the SMBus.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kohj h²hubhì)�”}”(hŒ;ipmi_powernv - A driver for access BMCs on POWERNV systems.”h]”hŒ;ipmi_powernv - A driver for access BMCs on POWERNV systems.”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kshj h²hubhì)�”}”(hŒ´ipmi_watchdog - IPMI requires systems to have a very capable watchdog timer. This driver implements the standard Linux watchdog timer interface on top of the IPMI message handler.”h]”hŒ´ipmi_watchdog - IPMI requires systems to have a very capable watchdog timer. This driver implements the standard Linux watchdog timer interface on top of the IPMI message handler.”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kuhj h²hubhì)�”}”(hŒTipmi_poweroff - Some systems support the ability to be turned off via IPMI commands.”h]”hŒTipmi_poweroff - Some systems support the ability to be turned off via IPMI commands.”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kyhj h²hubhì)�”}”(hŒ¿bt-bmc - This is not part of the main driver, but instead a driver for accessing a BMC-side interface of a BT interface. It is used on BMCs running Linux to provide an interface to the host.”h]”hŒ¿bt-bmc - This is not part of the main driver, but instead a driver for accessing a BMC-side interface of a BT interface. It is used on BMCs running Linux to provide an interface to the host.”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K|hj h²hubhì)�”}”(hŒ@These are all individually selectable via configuration options.”h]”hŒ@These are all individually selectable via configuration options.”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K€hj h²hubhì)�”}”(hŒZMuch documentation for the interface is in the include files. The IPMI include files are:”h]”hŒZMuch documentation for the interface is in the include files. The IPMI include files are:”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K‚hj h²hubhì)�”}”(hŒHlinux/ipmi.h - Contains the user interface and IOCTL interface for IPMI.”h]”hŒHlinux/ipmi.h - Contains the user interface and IOCTL interface for IPMI.”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K…hj h²hubhì)�”}”(hŒ~linux/ipmi_smi.h - Contains the interface for system management interfaces (things that interface to IPMI controllers) to use.”h]”hŒ~linux/ipmi_smi.h - Contains the interface for system management interfaces (things that interface to IPMI controllers) to use.”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K‡hj h²hubhì)�”}”(hŒClinux/ipmi_msgdefs.h - General definitions for base IPMI messaging.”h]”hŒClinux/ipmi_msgdefs.h - General definitions for base IPMI messaging.”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KŠhj h²hubeh}”(h]”Œ basic-design”ah ]”h"]”Œ basic design”ah$]”h&]”uh1hµhh·h²hh³hÊh´KYubh¶)�”}”(hhh]”(h»)�”}”(hŒ Addressing”h]”hŒ Addressing”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjèh²hh³hÊh´KŽubhì)�”}”(hŒ~The IPMI addressing works much like IP addresses, you have an overlay to handle the different address types. The overlay is::”h]”hŒ}The IPMI addressing works much like IP addresses, you have an overlay to handle the different address types. The overlay is:”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K�hjèh²hubhŒ literal_block”“”)�”}”(hŒgstruct ipmi_addr { int addr_type; short channel; char data[IPMI_MAX_ADDR_SIZE]; };”h]”hŒgstruct ipmi_addr { int addr_type; short channel; char data[IPMI_MAX_ADDR_SIZE]; };”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jh³hÊh´K“hjèh²hubhì)�”}”(hŒxThe addr_type determines what the address really is. The driver currently understands two different types of addresses.”h]”hŒxThe addr_type determines what the address really is. The driver currently understands two different types of addresses.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kšhjèh²hubhì)�”}”(hŒ-"System Interface" addresses are defined as::”h]”hŒ0“System Interfaceâ€� addresses are defined as:”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K�hjèh²hubj)�”}”(hŒRstruct ipmi_system_interface_addr { int addr_type; short channel; };”h]”hŒRstruct ipmi_system_interface_addr { int addr_type; short channel; };”…”�”}”hj5sbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´KŸhjèh²hubhì)�”}”(hŒšand the type is IPMI_SYSTEM_INTERFACE_ADDR_TYPE. This is used for talking straight to the BMC on the current card. The channel must be IPMI_BMC_CHANNEL.”h]”hŒšand the type is IPMI_SYSTEM_INTERFACE_ADDR_TYPE. This is used for talking straight to the BMC on the current card. The channel must be IPMI_BMC_CHANNEL.”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K¥hjèh²hubhì)�”}”(hŒ…Messages that are destined to go out on the IPMB bus going through the BMC use the IPMI_IPMB_ADDR_TYPE address type. The format is::”h]”hŒ„Messages that are destined to go out on the IPMB bus going through the BMC use the IPMI_IPMB_ADDR_TYPE address type. The format is:”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K©hjèh²hubj)�”}”(hŒ�struct ipmi_ipmb_addr { int addr_type; short channel; unsigned char slave_addr; unsigned char lun; };”h]”hŒ�struct ipmi_ipmb_addr { int addr_type; short channel; unsigned char slave_addr; unsigned char lun; };”…”�”}”hj_sbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´K¬hjèh²hubhì)�”}”(hŒ�The "channel" here is generally zero, but some devices support more than one channel, it corresponds to the channel as defined in the IPMI spec.”h]”hŒ”The “channelâ€� here is generally zero, but some devices support more than one channel, it corresponds to the channel as defined in the IPMI spec.”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K´hjèh²hubhì)�”}”(hXThere is also an IPMB direct address for a situation where the sender is directly on an IPMB bus and doesn't have to go through the BMC. You can send messages to a specific management controller (MC) on the IPMB using the IPMI_IPMB_DIRECT_ADDR_TYPE with the following format::”h]”hXThere is also an IPMB direct address for a situation where the sender is directly on an IPMB bus and doesn’t have to go through the BMC. You can send messages to a specific management controller (MC) on the IPMB using the IPMI_IPMB_DIRECT_ADDR_TYPE with the following format:”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´K¸hjèh²hubj)�”}”(hŒµstruct ipmi_ipmb_direct_addr { int addr_type; short channel; unsigned char slave_addr; unsigned char rq_lun; unsigned char rs_lun; };”h]”hŒµstruct ipmi_ipmb_direct_addr { int addr_type; short channel; unsigned char slave_addr; unsigned char rq_lun; unsigned char rs_lun; };”…”�”}”hj‰sbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´K½hjèh²hubhì)�”}”(hŒÅThe channel is always zero. You can also receive commands from other MCs that you have registered to handle and respond to them, so you can use this to implement a management controller on a bus..”h]”hŒÅThe channel is always zero. You can also receive commands from other MCs that you have registered to handle and respond to them, so you can use this to implement a management controller on a bus..”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KÆhjèh²hubeh}”(h]”Œ addressing”ah ]”h"]”Œ addressing”ah$]”h&]”uh1hµhh·h²hh³hÊh´KŽubh¶)�”}”(hhh]”(h»)�”}”(hŒMessages”h]”hŒMessages”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj­h²hh³hÊh´KËubhì)�”}”(hŒMessages are defined as::”h]”hŒMessages are defined as:”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KÍhj­h²hubj)�”}”(hŒšstruct ipmi_msg { unsigned char netfn; unsigned char lun; unsigned char cmd; unsigned char *data; int data_len; };”h]”hŒšstruct ipmi_msg { unsigned char netfn; unsigned char lun; unsigned char cmd; unsigned char *data; int data_len; };”…”�”}”hjÌsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´KÏhj­h²hubhì)�”}”(hXzThe driver takes care of adding/stripping the header information. The data portion is just the data to be send (do NOT put addressing info here) or the response. Note that the completion code of a response is the first item in "data", it is not stripped out because that is how all the messages are defined in the spec (and thus makes counting the offsets a little easier :-).”h]”hX~The driver takes care of adding/stripping the header information. The data portion is just the data to be send (do NOT put addressing info here) or the response. Note that the completion code of a response is the first item in “dataâ€�, it is not stripped out because that is how all the messages are defined in the spec (and thus makes counting the offsets a little easier :-).”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´KØhj­h²hubhì)�”}”(hŒóWhen using the IOCTL interface from userland, you must provide a block of data for "data", fill it, and set data_len to the length of the block of data, even when receiving messages. Otherwise the driver will have no place to put the message.”h]”hŒ÷When using the IOCTL interface from userland, you must provide a block of data for “dataâ€�, fill it, and set data_len to the length of the block of data, even when receiving messages. Otherwise the driver will have no place to put the message.”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kßhj­h²hubhì)�”}”(hŒKMessages coming up from the message handler in kernelland will come in as::”h]”hŒJMessages coming up from the message handler in kernelland will come in as:”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kähj­h²hubj)�”}”(hX“struct ipmi_recv_msg { struct list_head link; /* The type of message as defined in the "Receive Types" defines above. */ int recv_type; ipmi_user_t *user; struct ipmi_addr addr; long msgid; struct ipmi_msg msg; /* Call this when done with the message. It will presumably free the message and do any other necessary cleanup. */ void (*done)(struct ipmi_recv_msg *msg); /* Place-holder for the data, don't make any assumptions about the size or existence of this, since it may change. */ unsigned char msg_data[IPMI_MAX_MSG_LENGTH]; };”h]”hX“struct ipmi_recv_msg { struct list_head link; /* The type of message as defined in the "Receive Types" defines above. */ int recv_type; ipmi_user_t *user; struct ipmi_addr addr; long msgid; struct ipmi_msg msg; /* Call this when done with the message. It will presumably free the message and do any other necessary cleanup. */ void (*done)(struct ipmi_recv_msg *msg); /* Place-holder for the data, don't make any assumptions about the size or existence of this, since it may change. */ unsigned char msg_data[IPMI_MAX_MSG_LENGTH]; };”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´Kçhj­h²hubhì)�”}”(hŒIYou should look at the receive type and handle the message appropriately.”h]”hŒIYou should look at the receive type and handle the message appropriately.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Kýhj­h²hubeh}”(h]”Œmessages”ah ]”h"]”Œmessages”ah$]”h&]”uh1hµhh·h²hh³hÊh´KËubh¶)�”}”(hhh]”(h»)�”}”(hŒ+The Upper Layer Interface (Message Handler)”h]”hŒ+The Upper Layer Interface (Message Handler)”…”�”}”(hj+h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj(h²hh³hÊh´Mubhì)�”}”(hXThe upper layer of the interface provides the users with a consistent view of the IPMI interfaces. It allows multiple SMI interfaces to be addressed (because some boards actually have multiple BMCs on them) and the user should not have to care what type of SMI is below them.”h]”hXThe upper layer of the interface provides the users with a consistent view of the IPMI interfaces. It allows multiple SMI interfaces to be addressed (because some boards actually have multiple BMCs on them) and the user should not have to care what type of SMI is below them.”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mhj(h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒWatching For Interfaces”h]”hŒWatching For Interfaces”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjGh²hh³hÊh´M ubhì)�”}”(hXtWhen your code comes up, the IPMI driver may or may not have detected if IPMI devices exist. So you might have to defer your setup until the device is detected, or you might be able to do it immediately. To handle this, and to allow for discovery, you register an SMI watcher with ipmi_smi_watcher_register() to iterate over interfaces and tell you when they come and go.”h]”hXtWhen your code comes up, the IPMI driver may or may not have detected if IPMI devices exist. So you might have to defer your setup until the device is detected, or you might be able to do it immediately. To handle this, and to allow for discovery, you register an SMI watcher with ipmi_smi_watcher_register() to iterate over interfaces and tell you when they come and go.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M hjGh²hubeh}”(h]”Œwatching-for-interfaces”ah ]”h"]”Œwatching for interfaces”ah$]”h&]”uh1hµhj(h²hh³hÊh´M ubh¶)�”}”(hhh]”(h»)�”}”(hŒCreating the User”h]”hŒCreating the User”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjnh²hh³hÊh´Mubhì)�”}”(hXLTo use the message handler, you must first create a user using ipmi_create_user. The interface number specifies which SMI you want to connect to, and you must supply callback functions to be called when data comes in. This also allows you to pass in a piece of data, the handler_data, that will be passed back to you on all calls.”h]”hXLTo use the message handler, you must first create a user using ipmi_create_user. The interface number specifies which SMI you want to connect to, and you must supply callback functions to be called when data comes in. This also allows you to pass in a piece of data, the handler_data, that will be passed back to you on all calls.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mhjnh²hubhì)�”}”(hŒCOnce you are done, call ipmi_destroy_user() to get rid of the user.”h]”hŒCOnce you are done, call ipmi_destroy_user() to get rid of the user.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mhjnh²hubhì)�”}”(hŒwFrom userland, opening the device automatically creates a user, and closing the device automatically destroys the user.”h]”hŒwFrom userland, opening the device automatically creates a user, and closing the device automatically destroys the user.”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M hjnh²hubeh}”(h]”Œcreating-the-user”ah ]”h"]”Œcreating the user”ah$]”h&]”uh1hµhj(h²hh³hÊh´Mubh¶)�”}”(hhh]”(h»)�”}”(hŒ Messaging”h]”hŒ Messaging”…”�”}”(hj´h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj±h²hh³hÊh´M%ubhì)�”}”(hXrTo send a message from kernel-land, the ipmi_request_settime() call does pretty much all message handling. Most of the parameter are self-explanatory. However, it takes a "msgid" parameter. This is NOT the sequence number of messages. It is simply a long value that is passed back when the response for the message is returned. You may use it for anything you like.”h]”hXvTo send a message from kernel-land, the ipmi_request_settime() call does pretty much all message handling. Most of the parameter are self-explanatory. However, it takes a “msgidâ€� parameter. This is NOT the sequence number of messages. It is simply a long value that is passed back when the response for the message is returned. You may use it for anything you like.”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M'hj±h²hubhì)�”}”(hŒ°Responses come back in the function pointed to by the ipmi_recv_hndl field of the "handler" that you passed in to ipmi_create_user(). Remember to look at the receive type, too.”h]”hŒ´Responses come back in the function pointed to by the ipmi_recv_hndl field of the “handlerâ€� that you passed in to ipmi_create_user(). Remember to look at the receive type, too.”…”�”}”(hjÐh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M.hj±h²hubhì)�”}”(hXFrom userland, you fill out an ipmi_req_t structure and use the IPMICTL_SEND_COMMAND ioctl. For incoming stuff, you can use select() or poll() to wait for messages to come in. However, you cannot use read() to get them, you must call the IPMICTL_RECEIVE_MSG with the ipmi_recv_t structure to actually get the message. Remember that you must supply a pointer to a block of data in the msg.data field, and you must fill in the msg.data_len field with the size of the data. This gives the receiver a place to actually put the message.”h]”hXFrom userland, you fill out an ipmi_req_t structure and use the IPMICTL_SEND_COMMAND ioctl. For incoming stuff, you can use select() or poll() to wait for messages to come in. However, you cannot use read() to get them, you must call the IPMICTL_RECEIVE_MSG with the ipmi_recv_t structure to actually get the message. Remember that you must supply a pointer to a block of data in the msg.data field, and you must fill in the msg.data_len field with the size of the data. This gives the receiver a place to actually put the message.”…”�”}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M2hj±h²hubhì)�”}”(hŒîIf the message cannot fit into the data you provide, you will get an EMSGSIZE error and the driver will leave the data in the receive queue. If you want to get it and have it truncate the message, use the IPMICTL_RECEIVE_MSG_TRUNC ioctl.”h]”hŒîIf the message cannot fit into the data you provide, you will get an EMSGSIZE error and the driver will leave the data in the receive queue. If you want to get it and have it truncate the message, use the IPMICTL_RECEIVE_MSG_TRUNC ioctl.”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M;hj±h²hubhì)�”}”(hXÉWhen you send a command (which is defined by the lowest-order bit of the netfn per the IPMI spec) on the IPMB bus, the driver will automatically assign the sequence number to the command and save the command. If the response is not received in the IPMI-specified 5 seconds, it will generate a response automatically saying the command timed out. If an unsolicited response comes in (if it was after 5 seconds, for instance), that response will be ignored.”h]”hXÉWhen you send a command (which is defined by the lowest-order bit of the netfn per the IPMI spec) on the IPMB bus, the driver will automatically assign the sequence number to the command and save the command. If the response is not received in the IPMI-specified 5 seconds, it will generate a response automatically saying the command timed out. If an unsolicited response comes in (if it was after 5 seconds, for instance), that response will be ignored.”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M@hj±h²hubhì)�”}”(hŒýIn kernelland, after you receive a message and are done with it, you MUST call ipmi_free_recv_msg() on it, or you will leak messages. Note that you should NEVER mess with the "done" field of a message, that is required to properly clean up the message.”h]”hXIn kernelland, after you receive a message and are done with it, you MUST call ipmi_free_recv_msg() on it, or you will leak messages. Note that you should NEVER mess with the “doneâ€� field of a message, that is required to properly clean up the message.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MHhj±h²hubhì)�”}”(hX�Note that when sending, there is an ipmi_request_supply_msgs() call that lets you supply the smi and receive message. This is useful for pieces of code that need to work even if the system is out of buffers (the watchdog timer uses this, for instance). You supply your own buffer and own free routines. This is not recommended for normal use, though, since it is tricky to manage your own buffers.”h]”hX�Note that when sending, there is an ipmi_request_supply_msgs() call that lets you supply the smi and receive message. This is useful for pieces of code that need to work even if the system is out of buffers (the watchdog timer uses this, for instance). You supply your own buffer and own free routines. This is not recommended for normal use, though, since it is tricky to manage your own buffers.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MMhj±h²hubeh}”(h]”Œ messaging”ah ]”h"]”Œ messaging”ah$]”h&]”uh1hµhj(h²hh³hÊh´M%ubh¶)�”}”(hhh]”(h»)�”}”(hŒEvents and Incoming Commands”h]”hŒEvents and Incoming Commands”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj,h²hh³hÊh´MVubhì)�”}”(hXThe driver takes care of polling for IPMI events and receiving commands (commands are messages that are not responses, they are commands that other things on the IPMB bus have sent you). To receive these, you must register for them, they will not automatically be sent to you.”h]”hXThe driver takes care of polling for IPMI events and receiving commands (commands are messages that are not responses, they are commands that other things on the IPMB bus have sent you). To receive these, you must register for them, they will not automatically be sent to you.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MXhj,h²hubhì)�”}”(hXJTo receive events, you must call ipmi_set_gets_events() and set the "val" to non-zero. Any events that have been received by the driver since startup will immediately be delivered to the first user that registers for events. After that, if multiple users are registered for events, they will all receive all events that come in.”h]”hXNTo receive events, you must call ipmi_set_gets_events() and set the “valâ€� to non-zero. Any events that have been received by the driver since startup will immediately be delivered to the first user that registers for events. After that, if multiple users are registered for events, they will all receive all events that come in.”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M^hj,h²hubhì)�”}”(hXÿFor receiving commands, you have to individually register commands you want to receive. Call ipmi_register_for_cmd() and supply the netfn and command name for each command you want to receive. You also specify a bitmask of the channels you want to receive the command from (or use IPMI_CHAN_ALL for all channels if you don't care). Only one user may be registered for each netfn/cmd/channel, but different users may register for different commands, or the same command if the channel bitmasks do not overlap.”h]”hXFor receiving commands, you have to individually register commands you want to receive. Call ipmi_register_for_cmd() and supply the netfn and command name for each command you want to receive. You also specify a bitmask of the channels you want to receive the command from (or use IPMI_CHAN_ALL for all channels if you don’t care). Only one user may be registered for each netfn/cmd/channel, but different users may register for different commands, or the same command if the channel bitmasks do not overlap.”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mdhj,h²hubhì)�”}”(hŒµTo respond to a received command, set the response bit in the returned netfn, use the address from the received message, and use the same msgid that you got in the received message.”h]”hŒµTo respond to a received command, set the response bit in the returned netfn, use the address from the received message, and use the same msgid that you got in the received message.”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mmhj,h²hubhì)�”}”(hŒDFrom userland, equivalent IOCTLs are provided to do these functions.”h]”hŒDFrom userland, equivalent IOCTLs are provided to do these functions.”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mqhj,h²hubeh}”(h]”Œevents-and-incoming-commands”ah ]”h"]”Œevents and incoming commands”ah$]”h&]”uh1hµhj(h²hh³hÊh´MVubeh}”(h]”Œ)the-upper-layer-interface-message-handler”ah ]”h"]”Œ+the upper layer interface (message handler)”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mubh¶)�”}”(hhh]”(h»)�”}”(hŒThe Lower Layer (SMI) Interface”h]”hŒThe Lower Layer (SMI) Interface”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj“h²hh³hÊh´Muubhì)�”}”(hX;As mentioned before, multiple SMI interfaces may be registered to the message handler, each of these is assigned an interface number when they register with the message handler. They are generally assigned in the order they register, although if an SMI unregisters and then another one registers, all bets are off.”h]”hX;As mentioned before, multiple SMI interfaces may be registered to the message handler, each of these is assigned an interface number when they register with the message handler. They are generally assigned in the order they register, although if an SMI unregisters and then another one registers, all bets are off.”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mwhj“h²hubhì)�”}”(hŒZThe ipmi_smi.h defines the interface for management interfaces, see that for more details.”h]”hŒZThe ipmi_smi.h defines the interface for management interfaces, see that for more details.”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M}hj“h²hubeh}”(h]”Œthe-lower-layer-smi-interface”ah ]”h"]”Œthe lower layer (smi) interface”ah$]”h&]”uh1hµhh·h²hh³hÊh´Muubh¶)�”}”(hhh]”(h»)�”}”(hŒ The SI Driver”h]”hŒ The SI Driver”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÈh²hh³hÊh´M‚ubhì)�”}”(hŒ¨The SI driver allows KCS, BT, and SMIC interfaces to be configured in the system. It discovers interfaces through a host of different methods, depending on the system.”h]”hŒ¨The SI driver allows KCS, BT, and SMIC interfaces to be configured in the system. It discovers interfaces through a host of different methods, depending on the system.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M„hjÈh²hubhì)�”}”(hŒbYou can specify up to four interfaces on the module load line and control some module parameters::”h]”hŒaYou can specify up to four interfaces on the module load line and control some module parameters:”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MˆhjÈh²hubj)�”}”(hXÀmodprobe ipmi_si.o type=,.... ports=,... addrs=,... irqs=,... regspacings=,,... regsizes=,,... regshifts=,,... slave_addrs=,,... force_kipmid=,,... kipmid_max_busy_us=,,... unload_when_empty=[0|1] trydmi=[0|1] tryacpi=[0|1] tryplatform=[0|1] trypci=[0|1]”h]”hXÀmodprobe ipmi_si.o type=,.... ports=,... addrs=,... irqs=,... regspacings=,,... regsizes=,,... regshifts=,,... slave_addrs=,,... force_kipmid=,,... kipmid_max_busy_us=,,... unload_when_empty=[0|1] trydmi=[0|1] tryacpi=[0|1] tryplatform=[0|1] trypci=[0|1]”…”�”}”hjõsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´M‹hjÈh²hubhì)�”}”(hŒEach of these except try... items is a list, the first item for the first interface, second item for the second interface, etc.”h]”hŒEach of these except try... items is a list, the first item for the first interface, second item for the second interface, etc.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M—hjÈh²hubhì)�”}”(hŒ_The si_type may be either "kcs", "smic", or "bt". If you leave it blank, it defaults to "kcs".”h]”hŒoThe si_type may be either “kcsâ€�, “smicâ€�, or “btâ€�. If you leave it blank, it defaults to “kcsâ€�.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MšhjÈh²hubhì)�”}”(hŒ—If you specify addrs as non-zero for an interface, the driver will use the memory address given as the address of the device. This overrides si_ports.”h]”hŒ—If you specify addrs as non-zero for an interface, the driver will use the memory address given as the address of the device. This overrides si_ports.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M�hjÈh²hubhì)�”}”(hŒpIf you specify ports as non-zero for an interface, the driver will use the I/O port given as the device address.”h]”hŒpIf you specify ports as non-zero for an interface, the driver will use the I/O port given as the device address.”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M¡hjÈh²hubhì)�”}”(hŒtIf you specify irqs as non-zero for an interface, the driver will attempt to use the given interrupt for the device.”h]”hŒtIf you specify irqs as non-zero for an interface, the driver will attempt to use the given interrupt for the device.”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M¤hjÈh²hubhì)�”}”(hŒ³The other try... items disable discovery by their corresponding names. These are all enabled by default, set them to zero to disable them. The tryplatform disables openfirmware.”h]”hŒ³The other try... items disable discovery by their corresponding names. These are all enabled by default, set them to zero to disable them. The tryplatform disables openfirmware.”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M§hjÈh²hubhì)�”}”(hXThe next three parameters have to do with register layout. The registers used by the interfaces may not appear at successive locations and they may not be in 8-bit registers. These parameters allow the layout of the data in the registers to be more precisely specified.”h]”hXThe next three parameters have to do with register layout. The registers used by the interfaces may not appear at successive locations and they may not be in 8-bit registers. These parameters allow the layout of the data in the registers to be more precisely specified.”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M«hjÈh²hubhì)�”}”(hŒúThe regspacings parameter give the number of bytes between successive register start addresses. For instance, if the regspacing is set to 4 and the start address is 0xca2, then the address for the second register would be 0xca6. This defaults to 1.”h]”hŒúThe regspacings parameter give the number of bytes between successive register start addresses. For instance, if the regspacing is set to 4 and the start address is 0xca2, then the address for the second register would be 0xca6. This defaults to 1.”…”�”}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M±hjÈh²hubhì)�”}”(hŒùThe regsizes parameter gives the size of a register, in bytes. The data used by IPMI is 8-bits wide, but it may be inside a larger register. This parameter allows the read and write type to be specified. It may be 1, 2, 4, or 8. The default is 1.”h]”hŒùThe regsizes parameter gives the size of a register, in bytes. The data used by IPMI is 8-bits wide, but it may be inside a larger register. This parameter allows the read and write type to be specified. It may be 1, 2, 4, or 8. The default is 1.”…”�”}”(hjsh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M¶hjÈh²hubhì)�”}”(hŒ¼Since the register size may be larger than 32 bits, the IPMI data may not be in the lower 8 bits. The regshifts parameter give the amount to shift the data to get to the actual IPMI data.”h]”hŒ¼Since the register size may be larger than 32 bits, the IPMI data may not be in the lower 8 bits. The regshifts parameter give the amount to shift the data to get to the actual IPMI data.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M»hjÈh²hubhì)�”}”(hŒ¸The slave_addrs specifies the IPMI address of the local BMC. This is usually 0x20 and the driver defaults to that, but in case it's not, it can be specified when the driver starts up.”h]”hŒºThe slave_addrs specifies the IPMI address of the local BMC. This is usually 0x20 and the driver defaults to that, but in case it’s not, it can be specified when the driver starts up.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M¿hjÈh²hubhì)�”}”(hX=The force_ipmid parameter forcefully enables (if set to 1) or disables (if set to 0) the kernel IPMI daemon. Normally this is auto-detected by the driver, but systems with broken interrupts might need an enable, or users that don't want the daemon (don't need the performance, don't want the CPU hit) can disable it.”h]”hXCThe force_ipmid parameter forcefully enables (if set to 1) or disables (if set to 0) the kernel IPMI daemon. Normally this is auto-detected by the driver, but systems with broken interrupts might need an enable, or users that don’t want the daemon (don’t need the performance, don’t want the CPU hit) can disable it.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MÃhjÈh²hubhì)�”}”(hŒëIf unload_when_empty is set to 1, the driver will be unloaded if it doesn't find any interfaces or all the interfaces fail to work. The default is one. Setting to 0 is useful with the hotmod, but is obviously only useful for modules.”h]”hŒíIf unload_when_empty is set to 1, the driver will be unloaded if it doesn’t find any interfaces or all the interfaces fail to work. The default is one. Setting to 0 is useful with the hotmod, but is obviously only useful for modules.”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MÉhjÈh²hubhì)�”}”(hŒ^When compiled into the kernel, the parameters can be specified on the kernel command line as::”h]”hŒ]When compiled into the kernel, the parameters can be specified on the kernel command line as:”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MÎhjÈh²hubj)�”}”(hX ipmi_si.type=,... ipmi_si.ports=,... ipmi_si.addrs=,... ipmi_si.irqs=,... ipmi_si.regspacings=,,... ipmi_si.regsizes=,,... ipmi_si.regshifts=,,... ipmi_si.slave_addrs=,,... ipmi_si.force_kipmid=,,... ipmi_si.kipmid_max_busy_us=,,...”h]”hX ipmi_si.type=,... ipmi_si.ports=,... ipmi_si.addrs=,... ipmi_si.irqs=,... ipmi_si.regspacings=,,... ipmi_si.regsizes=,,... ipmi_si.regshifts=,,... ipmi_si.slave_addrs=,,... ipmi_si.force_kipmid=,,... ipmi_si.kipmid_max_busy_us=,,...”…”�”}”hjÇsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´MÑhjÈh²hubhì)�”}”(hŒ=It works the same as the module parameters of the same names.”h]”hŒ=It works the same as the module parameters of the same names.”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MÛhjÈh²hubhì)�”}”(hXìIf your IPMI interface does not support interrupts and is a KCS or SMIC interface, the IPMI driver will start a kernel thread for the interface to help speed things up. This is a low-priority kernel thread that constantly polls the IPMI driver while an IPMI operation is in progress. The force_kipmid module parameter will allow the user to force this thread on or off. If you force it off and don't have interrupts, the driver will run VERY slowly. Don't blame me, these interfaces suck.”h]”hXðIf your IPMI interface does not support interrupts and is a KCS or SMIC interface, the IPMI driver will start a kernel thread for the interface to help speed things up. This is a low-priority kernel thread that constantly polls the IPMI driver while an IPMI operation is in progress. The force_kipmid module parameter will allow the user to force this thread on or off. If you force it off and don’t have interrupts, the driver will run VERY slowly. Don’t blame me, these interfaces suck.”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MÝhjÈh²hubhì)�”}”(hXHUnfortunately, this thread can use a lot of CPU depending on the interface's performance. This can waste a lot of CPU and cause various issues with detecting idle CPU and using extra power. To avoid this, the kipmid_max_busy_us sets the maximum amount of time, in microseconds, that kipmid will spin before sleeping for a tick. This value sets a balance between performance and CPU waste and needs to be tuned to your needs. Maybe, someday, auto-tuning will be added, but that's not a simple thing and even the auto-tuning would need to be tuned to the user's desired performance.”h]”hXNUnfortunately, this thread can use a lot of CPU depending on the interface’s performance. This can waste a lot of CPU and cause various issues with detecting idle CPU and using extra power. To avoid this, the kipmid_max_busy_us sets the maximum amount of time, in microseconds, that kipmid will spin before sleeping for a tick. This value sets a balance between performance and CPU waste and needs to be tuned to your needs. Maybe, someday, auto-tuning will be added, but that’s not a simple thing and even the auto-tuning would need to be tuned to the user’s desired performance.”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MæhjÈh²hubhì)�”}”(hX(The driver supports a hot add and remove of interfaces. This way, interfaces can be added or removed after the kernel is up and running. This is done using /sys/module/ipmi_si/parameters/hotmod, which is a write-only parameter. You write a string to this interface. The string has the format::”h]”hX'The driver supports a hot add and remove of interfaces. This way, interfaces can be added or removed after the kernel is up and running. This is done using /sys/module/ipmi_si/parameters/hotmod, which is a write-only parameter. You write a string to this interface. The string has the format:”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MðhjÈh²hubj)�”}”(hŒ[:op2[:op3...]]”h]”hŒ[:op2[:op3...]]”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´MöhjÈh²hubhì)�”}”(hŒThe "op"s are::”h]”hŒThe “opâ€�s are:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MøhjÈh²hubj)�”}”(hŒ@add|remove,kcs|bt|smic,mem|i/o,
[,[,[,...]]]”h]”hŒ@add|remove,kcs|bt|smic,mem|i/o,
[,[,[,...]]]”…”�”}”hj)sbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´MúhjÈh²hubhì)�”}”(hŒFYou can specify more than one interface on the line. The "opt"s are::”h]”hŒIYou can specify more than one interface on the line. The “optâ€�s are:”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MühjÈh²hubj)�”}”(hŒNrsp= rsi= rsh= irq= ipmb=”h]”hŒNrsp= rsi= rsh= irq= ipmb=”…”�”}”hjEsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´MþhjÈh²hubhì)�”}”(hXWand these have the same meanings as discussed above. Note that you can also use this on the kernel command line for a more compact format for specifying an interface. Note that when removing an interface, only the first three parameters (si type, address type, and address) are used for the comparison. Any options are ignored for removing.”h]”hXWand these have the same meanings as discussed above. Note that you can also use this on the kernel command line for a more compact format for specifying an interface. Note that when removing an interface, only the first three parameters (si type, address type, and address) are used for the comparison. Any options are ignored for removing.”…”�”}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MhjÈh²hubeh}”(h]”Œ the-si-driver”ah ]”h"]”Œ the si driver”ah$]”h&]”uh1hµhh·h²hh³hÊh´M‚ubh¶)�”}”(hhh]”(h»)�”}”(hŒThe SMBus Driver (SSIF)”h]”hŒThe SMBus Driver (SSIF)”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjih²hh³hÊh´M ubhì)�”}”(hŒæThe SMBus driver allows up to 4 SMBus devices to be configured in the system. By default, the driver will only register with something it finds in DMI or ACPI tables. You can change this at module load time (for a module) with::”h]”hŒåThe SMBus driver allows up to 4 SMBus devices to be configured in the system. By default, the driver will only register with something it finds in DMI or ACPI tables. You can change this at module load time (for a module) with:”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M hjih²hubj)�”}”(hŒömodprobe ipmi_ssif.o addr=[,[,...]] adapter=[,[...]] dbg=,... slave_addrs=,,... tryacpi=[0|1] trydmi=[0|1] [dbg_probe=1] alerts_broken”h]”hŒömodprobe ipmi_ssif.o addr=[,[,...]] adapter=[,[...]] dbg=,... slave_addrs=,,... tryacpi=[0|1] trydmi=[0|1] [dbg_probe=1] alerts_broken”…”�”}”hjˆsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´Mhjih²hubhì)�”}”(hXfThe addresses are normal I2C addresses. The adapter is the string name of the adapter, as shown in /sys/bus/i2c/devices/i2c-/name. It is *NOT* i2c- itself. Also, the comparison is done ignoring spaces, so if the name is "This is an I2C chip" you can say adapter_name=ThisisanI2cchip. This is because it's hard to pass in spaces in kernel parameters.”h]”(hŒ�The addresses are normal I2C addresses. The adapter is the string name of the adapter, as shown in /sys/bus/i2c/devices/i2c-/name. It is ”…”�”}”(hj–h²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ*NOT*”h]”hŒNOT”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jžhj–ubhŒÚ i2c- itself. Also, the comparison is done ignoring spaces, so if the name is “This is an I2C chipâ€� you can say adapter_name=ThisisanI2cchip. This is because it’s hard to pass in spaces in kernel parameters.”…”�”}”(hj–h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´Mhjih²hubhì)�”}”(hŒvThe debug flags are bit flags for each BMC found, they are: IPMI messages: 1, driver state: 2, timing: 4, I2C probe: 8”h]”hŒvThe debug flags are bit flags for each BMC found, they are: IPMI messages: 1, driver state: 2, timing: 4, I2C probe: 8”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M"hjih²hubhì)�”}”(hŒWThe tryxxx parameters can be used to disable detecting interfaces from various sources.”h]”hŒWThe tryxxx parameters can be used to disable detecting interfaces from various sources.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M%hjih²hubhì)�”}”(hŒkSetting dbg_probe to 1 will enable debugging of the probing and detection process for BMCs on the SMBusses.”h]”hŒkSetting dbg_probe to 1 will enable debugging of the probing and detection process for BMCs on the SMBusses.”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M(hjih²hubhì)�”}”(hŒ¸The slave_addrs specifies the IPMI address of the local BMC. This is usually 0x20 and the driver defaults to that, but in case it's not, it can be specified when the driver starts up.”h]”hŒºThe slave_addrs specifies the IPMI address of the local BMC. This is usually 0x20 and the driver defaults to that, but in case it’s not, it can be specified when the driver starts up.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M+hjih²hubhì)�”}”(hŒpalerts_broken does not enable SMBus alert for SSIF. Otherwise SMBus alert will be enabled on supported hardware.”h]”hŒpalerts_broken does not enable SMBus alert for SSIF. Otherwise SMBus alert will be enabled on supported hardware.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M/hjih²hubhì)�”}”(hXªDiscovering the IPMI compliant BMC on the SMBus can cause devices on the I2C bus to fail. The SMBus driver writes a "Get Device ID" IPMI message as a block write to the I2C bus and waits for a response. This action can be detrimental to some I2C devices. It is highly recommended that the known I2C address be given to the SMBus driver in the smb_addr parameter unless you have DMI or ACPI data to tell the driver what to use.”h]”hX®Discovering the IPMI compliant BMC on the SMBus can cause devices on the I2C bus to fail. The SMBus driver writes a “Get Device IDâ€� IPMI message as a block write to the I2C bus and waits for a response. This action can be detrimental to some I2C devices. It is highly recommended that the known I2C address be given to the SMBus driver in the smb_addr parameter unless you have DMI or ACPI data to tell the driver what to use.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M2hjih²hubhì)�”}”(hŒ]When compiled into the kernel, the addresses can be specified on the kernel command line as::”h]”hŒ\When compiled into the kernel, the addresses can be specified on the kernel command line as:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M:hjih²hubj)�”}”(hXipmb_ssif.addr=[,[...]] ipmi_ssif.adapter=[,[...]] ipmi_ssif.dbg=[,[...]] ipmi_ssif.dbg_probe=1 ipmi_ssif.slave_addrs=[,[...]] ipmi_ssif.tryacpi=[0|1] ipmi_ssif.trydmi=[0|1]”h]”hXipmb_ssif.addr=[,[...]] ipmi_ssif.adapter=[,[...]] ipmi_ssif.dbg=[,[...]] ipmi_ssif.dbg_probe=1 ipmi_ssif.slave_addrs=[,[...]] ipmi_ssif.tryacpi=[0|1] ipmi_ssif.trydmi=[0|1]”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jh³hÊh´M=hjih²hubhì)�”}”(hŒ9These are the same options as on the module command line.”h]”hŒ9These are the same options as on the module command line.”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MDhjih²hubhì)�”}”(hXThe I2C driver does not support non-blocking access or polling, so this driver cannot do IPMI panic events, extend the watchdog at panic time, or other panic-related IPMI functions without special kernel patches and driver modifications. You can get those at the openipmi web page.”h]”hXThe I2C driver does not support non-blocking access or polling, so this driver cannot do IPMI panic events, extend the watchdog at panic time, or other panic-related IPMI functions without special kernel patches and driver modifications. You can get those at the openipmi web page.”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MFhjih²hubhì)�”}”(hŒWThe driver supports a hot add and remove of interfaces through the I2C sysfs interface.”h]”hŒWThe driver supports a hot add and remove of interfaces through the I2C sysfs interface.”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MLhjih²hubeh}”(h]”Œthe-smbus-driver-ssif”ah ]”h"]”Œthe smbus driver (ssif)”ah$]”h&]”uh1hµhh·h²hh³hÊh´M ubh¶)�”}”(hhh]”(h»)�”}”(hŒThe IPMI IPMB Driver”h]”hŒThe IPMI IPMB Driver”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjZh²hh³hÊh´MPubhì)�”}”(hXThis driver is for supporting a system that sits on an IPMB bus; it allows the interface to look like a normal IPMI interface. Sending system interface addressed messages to it will cause the message to go to the registered BMC on the system (default at IPMI address 0x20).”h]”hXThis driver is for supporting a system that sits on an IPMB bus; it allows the interface to look like a normal IPMI interface. Sending system interface addressed messages to it will cause the message to go to the registered BMC on the system (default at IPMI address 0x20).”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MRhjZh²hubhì)�”}”(hŒéIt also allows you to directly address other MCs on the bus using the ipmb direct addressing. You can receive commands from other MCs on the bus and they will be handled through the normal received command mechanism described above.”h]”hŒéIt also allows you to directly address other MCs on the bus using the ipmb direct addressing. You can receive commands from other MCs on the bus and they will be handled through the normal received command mechanism described above.”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´MWhjZh²hubhì)�”}”(hŒParameters are::”h]”hŒParameters are:”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hëh³hÊh´M\hjZh²hubj)�”}”(hŒÈipmi_ipmb.bmcaddr=
ipmi_ipmb.retry_time_ms=