€•i>Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”(hhŒparent”hubaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ#/translations/zh_CN/driver-api/ipmb”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”(hhhh2ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/zh_TW/driver-api/ipmb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”(hhhhFubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/it_IT/driver-api/ipmb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”(hhhhZubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ja_JP/driver-api/ipmb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”(hhhhnubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ko_KR/driver-api/ipmb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”(hhhh‚ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/sp_SP/driver-api/ipmb”Œ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ŒIPMB Driver for a Satellite MC”h]”hŒIPMB Driver for a Satellite MC”…””}”(hhªhh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒ=/var/lib/git/docbuild/linux/Documentation/driver-api/ipmb.rst”h KubhŒ paragraph”“”)”}”(hX8The Intelligent Platform Management Bus or IPMB, is an I2C bus that provides a standardized interconnection between different boards within a chassis. This interconnection is between the baseboard management (BMC) and chassis electronics. IPMB is also associated with the messaging protocol through the IPMB bus.”h]”hX8The Intelligent Platform Management Bus or IPMB, is an I2C bus that provides a standardized interconnection between different boards within a chassis. This interconnection is between the baseboard management (BMC) and chassis electronics. IPMB is also associated with the messaging protocol through the IPMB bus.”…””}”(hh»hh¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hŒÞThe devices using the IPMB are usually management controllers that perform management functions such as servicing the front panel interface, monitoring the baseboard, hot-swapping disk drivers in the system chassis, etc...”h]”hŒÞThe devices using the IPMB are usually management controllers that perform management functions such as servicing the front panel interface, monitoring the baseboard, hot-swapping disk drivers in the system chassis, etc...”…””}”(hhÉhhÇhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hh£hžhubh¸)”}”(hXWhen an IPMB is implemented in the system, the BMC serves as a controller to give system software access to the IPMB. The BMC sends IPMI requests to a device (usually a Satellite Management Controller or Satellite MC) via IPMB and the device sends a response back to the BMC.”h]”hXWhen an IPMB is implemented in the system, the BMC serves as a controller to give system software access to the IPMB. The BMC sends IPMI requests to a device (usually a Satellite Management Controller or Satellite MC) via IPMB and the device sends a response back to the BMC.”…””}”(hh×hhÕhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hŒjFor more information on IPMB and the format of an IPMB message, refer to the IPMB and IPMI specifications.”h]”hŒjFor more information on IPMB and the format of an IPMB message, refer to the IPMB and IPMI specifications.”…””}”(hhåhhãhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¢)”}”(hhh]”(h§)”}”(hŒIPMB driver for Satellite MC”h]”hŒIPMB driver for Satellite MC”…””}”(hhöhhôhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hhñhžhhŸh¶h Kubh¸)”}”(hŒÈipmb-dev-int - This is the driver needed on a Satellite MC to receive IPMB messages from a BMC and send a response back. This driver works with the I2C driver and a userspace program such as OpenIPMI:”h]”hŒÈipmb-dev-int - This is the driver needed on a Satellite MC to receive IPMB messages from a BMC and send a response back. This driver works with the I2C driver and a userspace program such as OpenIPMI:”…””}”(hjhjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhhñhžhubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒªIt is an I2C slave backend driver. So, it defines a callback function to set the Satellite MC as an I2C slave. This callback function handles the received IPMI requests. ”h]”h¸)”}”(hŒ©It is an I2C slave backend driver. So, it defines a callback function to set the Satellite MC as an I2C slave. This callback function handles the received IPMI requests.”h]”hŒ©It is an I2C slave backend driver. So, it defines a callback function to set the Satellite MC as an I2C slave. This callback function handles the received IPMI requests.”…””}”(hjhjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K"hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjhžhhŸh¶h Nubj)”}”(hŒ{It defines the read and write functions to enable a user space program (such as OpenIPMI) to communicate with the kernel. ”h]”h¸)”}”(hŒyIt defines the read and write functions to enable a user space program (such as OpenIPMI) to communicate with the kernel.”h]”hŒyIt defines the read and write functions to enable a user space program (such as OpenIPMI) to communicate with the kernel.”…””}”(hj5hj3hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K&hj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1jhhñhžhhŸh¶h K"ubeh}”(h]”Œipmb-driver-for-satellite-mc”ah ]”h"]”Œipmb driver for satellite mc”ah$]”h&]”uh1h¡hh£hžhhŸh¶h Kubh¢)”}”(hhh]”(h§)”}”(hŒLoad the IPMB driver”h]”hŒLoad the IPMB driver”…””}”(hj_hj]hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjZhžhhŸh¶h K+ubh¸)”}”(hŒ™The driver needs to be loaded at boot time or manually first. First, make sure you have the following in your config file: CONFIG_IPMB_DEVICE_INTERFACE=y”h]”hŒ™The driver needs to be loaded at boot time or manually first. First, make sure you have the following in your config file: CONFIG_IPMB_DEVICE_INTERFACE=y”…””}”(hjmhjkhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K-hjZhžhubj)”}”(hhh]”j)”}”(hŒ2If you want the driver to be loaded at boot time: ”h]”h¸)”}”(hŒ1If you want the driver to be loaded at boot time:”h]”hŒ1If you want the driver to be loaded at boot time:”…””}”(hj‚hj€hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K1hj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjyhžhhŸh¶h Nubah}”(h]”h ]”h"]”h$]”h&]”jMjNjOhjPjQuh1jhjZhžhhŸh¶h K1ubj)”}”(hhh]”(j)”}”(hXƒAdd this entry to your ACPI table, under the appropriate SMBus:: Device (SMB0) // Example SMBus host controller { Name (_HID, "") // Vendor-Specific HID Name (_UID, 0) // Unique ID of particular host controller : : Device (IPMB) { Name (_HID, "IPMB0001") // IPMB device interface Name (_UID, 0) // Unique device identifier } } ”h]”(h¸)”}”(hŒ@Add this entry to your ACPI table, under the appropriate SMBus::”h]”hŒ?Add this entry to your ACPI table, under the appropriate SMBus:”…””}”(hŒ?Add this entry to your ACPI table, under the appropriate SMBus:”hj¡hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K3hjubhŒ literal_block”“”)”}”(hX(Device (SMB0) // Example SMBus host controller { Name (_HID, "") // Vendor-Specific HID Name (_UID, 0) // Unique ID of particular host controller : : Device (IPMB) { Name (_HID, "IPMB0001") // IPMB device interface Name (_UID, 0) // Unique device identifier } }”h]”hX(Device (SMB0) // Example SMBus host controller { Name (_HID, "") // Vendor-Specific HID Name (_UID, 0) // Unique ID of particular host controller : : Device (IPMB) { Name (_HID, "IPMB0001") // IPMB device interface Name (_UID, 0) // Unique device identifier } }”…””}”(hhhj²ubah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1j°hŸh¶h K5hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjšhžhhŸh¶h Nubj)”}”(hŒÌExample for device tree:: &i2c2 { status = "okay"; ipmb@10 { compatible = "ipmb-dev"; reg = <0x10>; i2c-protocol; }; }; ”h]”(h¸)”}”(hŒExample for device tree::”h]”hŒExample for device tree:”…””}”(hŒExample for device tree:”hjÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KBhjÈubj±)”}”(hŒ &i2c2 { status = "okay"; ipmb@10 { compatible = "ipmb-dev"; reg = <0x10>; i2c-protocol; }; };”h]”hŒ &i2c2 { status = "okay"; ipmb@10 { compatible = "ipmb-dev"; reg = <0x10>; i2c-protocol; }; };”…””}”(hhhjÛubah}”(h]”h ]”h"]”h$]”h&]”jÀjÁuh1j°hŸh¶h KDhjÈubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjšhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”jMŒ loweralpha”jOhjPjQuh1jhjZhžhhŸh¶h K3ubh¸)”}”(hŒiIf xmit of data to be done using raw i2c block vs smbus then "i2c-protocol" needs to be defined as above.”h]”hŒmIf xmit of data to be done using raw i2c block vs smbus then “i2c-protocol†needs to be defined as above.”…””}”(hjøhjöhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KNhjZhžhubj)”}”(hhh]”j)”}”(hŒ0Manually from Linux:: modprobe ipmb-dev-int ”h]”(h¸)”}”(hŒManually from Linux::”h]”hŒManually from Linux:”…””}”(hŒManually from Linux:”hj hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KQhjubj±)”}”(hŒmodprobe ipmb-dev-int”h]”hŒmodprobe ipmb-dev-int”…””}”(hhhjubah}”(h]”h ]”h"]”h$]”h&]”jÀjÁuh1j°hŸh¶h KShjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjhžhhŸh¶h Nubah}”(h]”h ]”h"]”h$]”h&]”jMjNjOhjPjQŒstart”Kuh1jhjZhžhhŸh¶h KQubeh}”(h]”Œload-the-ipmb-driver”ah ]”h"]”Œload the ipmb driver”ah$]”h&]”uh1h¡hh£hžhhŸh¶h K+ubh¢)”}”(hhh]”(h§)”}”(hŒInstantiate the device”h]”hŒInstantiate the device”…””}”(hjBhj@hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hj=hžhhŸh¶h KWubh¸)”}”(hXAfter loading the driver, you can instantiate the device as described in 'Documentation/i2c/instantiating-devices.rst'. If you have multiple BMCs, each connected to your Satellite MC via a different I2C bus, you can instantiate a device for each of those BMCs.”h]”hXAfter loading the driver, you can instantiate the device as described in ‘Documentation/i2c/instantiating-devices.rst’. If you have multiple BMCs, each connected to your Satellite MC via a different I2C bus, you can instantiate a device for each of those BMCs.”…””}”(hjPhjNhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KYhj=hžhubh¸)”}”(hŒ_The name of the instantiated device contains the I2C bus number associated with it as follows::”h]”hŒ^The name of the instantiated device contains the I2C bus number associated with it as follows:”…””}”(hŒ^The name of the instantiated device contains the I2C bus number associated with it as follows:”hj\hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K_hj=hžhubj±)”}”(hŒ’BMC1 ------ IPMB/I2C bus 1 ---------| /dev/ipmb-1 Satellite MC BMC1 ------ IPMB/I2C bus 2 ---------| /dev/ipmb-2”h]”hŒ’BMC1 ------ IPMB/I2C bus 1 ---------| /dev/ipmb-1 Satellite MC BMC1 ------ IPMB/I2C bus 2 ---------| /dev/ipmb-2”…””}”(hhhjkubah}”(h]”h ]”h"]”h$]”h&]”jÀjÁuh1j°hŸh¶h Kbhj=hžhubh¸)”}”(hŒnFor instance, you can instantiate the ipmb-dev-int device from user space at the 7 bit address 0x10 on bus 2::”h]”hŒmFor instance, you can instantiate the ipmb-dev-int device from user space at the 7 bit address 0x10 on bus 2:”…””}”(hŒmFor instance, you can instantiate the ipmb-dev-int device from user space at the 7 bit address 0x10 on bus 2:”hjyhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Kfhj=hžhubj±)”}”(hŒ># echo ipmb-dev 0x1010 > /sys/bus/i2c/devices/i2c-2/new_device”h]”hŒ># echo ipmb-dev 0x1010 > /sys/bus/i2c/devices/i2c-2/new_device”…””}”(hhhjˆubah}”(h]”h ]”h"]”h$]”h&]”jÀjÁuh1j°hŸh¶h Kihj=hžhubh¸)”}”(hŒ©This will create the device file /dev/ipmb-2, which can be accessed by the user space program. The device needs to be instantiated before running the user space program.”h]”hŒ©This will create the device file /dev/ipmb-2, which can be accessed by the user space program. The device needs to be instantiated before running the user space program.”…””}”(hj˜hj–hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Kkhj=hžhubeh}”(h]”Œinstantiate-the-device”ah ]”h"]”Œinstantiate the device”ah$]”h&]”uh1h¡hh£hžhhŸh¶h KWubeh}”(h]”Œipmb-driver-for-a-satellite-mc”ah ]”h"]”Œipmb driver for a satellite mc”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j׌error_encoding”ŒUTF-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œ embed_images”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j±j®jWjTj:j7j©j¦uŒ nametypes”}”(j±NjWNj:Nj©Nuh}”(j®h£jThñj7jZj¦j=uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”hŒsystem_message”“”)”}”(hhh]”h¸)”}”(hŒ:Enumerated list start value not ordinal-1: "2" (ordinal 2)”h]”hŒ>Enumerated list start value not ordinal-1: “2†(ordinal 2)”…””}”(hhhj?hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hj<ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h¶Œline”Kuh1j:hjZhžhhŸh¶h KQubaŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.