- 14 Feb, 2024 1 commit
-
-
Raptor Engineering Development Team authored
Ported from GIT hash 57c451dd
-
- 09 Feb, 2024 3 commits
-
-
Cédric Le Goater authored
BT responses are handled using a timer doing the polling. To hope to get an answer to an IPMI synchronous message, the timer needs to run. This issue shows up very quickly under QEMU when loading the first flash resource with the IPMI HIOMAP backend. Adding a timeout would also help in reporting errors instead of looping indefinitely waiting for a response. Signed-off-by:
Cédric Le Goater <clg@kaod.org> Signed-off-by:
Raptor Engineering Development Team <support@raptorengineering.com>
-
Raptor Engineering Development Team authored
-
Shilpasri G Bhat authored
This option sets the OCC in characterization mode and the changes the governor to performance. This patch adds two new sub-options to 'occ' sub-command Signed-off-by:
Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
-
- 02 Jan, 2024 1 commit
-
-
Reza Arbab authored
Fedora 37 has reached end-of-life. Remove it and add Fedora 39. Signed-off-by:
Reza Arbab <arbab@linux.ibm.com> Reviewed-by:
Dan Horák <dan@danny.cz>
-
- 27 Nov, 2023 1 commit
-
-
Ryan Grimm authored
On systems running BML we started noticing this in the skiboot log: [ 409.088819302,3] XSCOM: write error gcid=0x0 pcb_addr=0x20000060 stat=0x4 [ 409.088823446,3] ELOG: Error getting buffer to log error [ 409.088824806,3] XSCOM: Write failed, ret = -26 [ 409.088825797,3] IMC: error in xscom_write for pdbar [ 0.468976][ T19] core_imc memory allocation for cpu 0 failed [ 0.468993][ T1] IMC PMU core_imc Register failed I tracked down that bad pcb_addr to this line in the code: pdbar_addr = get_imc_scom_addr_for_quad(phys_core_id, pdbar_scom_index[port_id]); I found that pdbar_scom_index was not initialized because, like mambo, we don't have the IMC catalog in memory. So, in imc_init we error out and never initialize it in setup_imc_scoms. This patch adds a chip quirk QUIRK_BML because it seems like a reasonable thing to do and it's easy to put a BML {}; in the device tree like Mambo, Awan, etc. It is teste...
-
- 11 Oct, 2023 7 commits
-
-
Nicholas Piggin authored
Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
Have for_each_pcia take spiras as an argument rather than use the global variable. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
skiboot only supports POWER8 > DD1 now, all supported platforms should use the new SPIRA-S/H structure. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
Add HDIF_idata that returns the idata pointer structure, not a pointer to the data itself. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
Like other (idata) accessors already do, check the common header in hdata child accessor calls. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
Make the HDIF header check use a common function. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Nicholas Piggin authored
Grab a SPIRA-S from a booted Rainier system and plug it in. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
- 15 Sep, 2023 3 commits
-
-
Athira Rajeev authored
The nest IMC (In Memory Collection) Performance Monitoring Unit(PMU) node names are saved as "struct nest_pmus_struct" in the "hw/imc.c" IMC code. Not all the IMC PMUs listed in the device tree may be available. Nest IMC PMU names along with their bit values is represented in imc availability vector. This struct is used to remove the unavailable nodes by checking this vector. For power10, the imc_chip_avl_vector ie, imc availability vector ( which is a part of the IMC control block structure ), has change in mapping of units and bit positions. Hence rename the existing nest_pmus array to nest_pmus_p9 and add entry for power10 as nest_pmus_p10. Also the avl_vector has another change in bit positions 11:34. These bit positions tells the availability of Xlink/Alink/CAPI. There are total 8 links and three bit field combination says which link is available. Patch implements all these change to handle nest_pmus_p10. Signed-off-by:
Athira Rajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Athira Rajeev authored
The nest IMC (In Memory Collection) Performance Monitoring Unit(PMU) node names are saved in nest_pmus[] array in the "hw/imc.c" IMC code. Not all the IMC PMUs listed in the device tree may be available. Nest IMC PMU names along with their bit values is represented in imc availability vector. The nest_pmus[] array is used to remove the unavailable nodes by checking this vector. To check node availability, code was using "dt_find_by_substr". But since the node names have format like: "name@offset", dt_find_by_name doesn't return the expected result. Fix this by using dt_find_by_name_before_addr. Also, update the char array to use correct node names. Signed-off-by:
Athira Rajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Athira Rajeev authored
Add a function dt_find_by_name_before_addr() that returns the child node if it matches till first occurrence at "@" of a given name, otherwise NULL. This is helpful for cases with node name like: "name@addr". In scenarios where nodes are added with "name@addr" format and if the value of "addr" is not known, that node can't be matched with node name or addr. Hence matching with substring as node name will return the expected result. Patch adds dt_find_by_name_before_addr() function and testcase for the same in core/test/run-device.c Signed-off-by:
Athira Rajeev <atrajeev@linux.vnet.ibm.com> Reviewed-by:
Mahesh Salgaonkar <mahesh@linux.ibm.com> [arbab: Refactor the loop to fix possible memory leak] Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
- 14 Sep, 2023 1 commit
-
-
Reza Arbab authored
The Fedora images in the Docker hub container registry are updated less frequently and lag the ones from Fedora's offical repo. In my experience, this often leads to periods where our CI testing is broken on rawhide due to some short-lived issue that is already fixed in current images. So, change our Dockerfiles to pull specifically from the upstream registry.fedoraproject.org instead. Signed-off-by:
Reza Arbab <arbab@linux.ibm.com> Reviewed-by:
Dan Horák <dan@danny.cz> Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com>
-
- 12 Sep, 2023 23 commits
-
-
Christophe Lombard authored
Last BMC firmware is available with a complete PLDM support on Rainier system. This patch allows initially to: - Initialize the MCTP core. - Enable the mctp binding over LPC bus interface and new wrappers to send and receive PLDM messages over the mctp library. - Retrieve all needed PLDM data. - "Virtualize" the content of a BMC flash based on lid files. Then, others mandatory support (watchdog, opal rtc, opal ipmi) are enabled. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
backend apis to support partially: OPAL_IPMI_SEND: send an IPMI message to the service processor OPAL_IPMI_RECV: read an ipmi message of type ``ipmi_msg`` from ipmi message queue ``msgq`` into host OS structure ``opal_ipmi_msg`` Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
OPAL_RTC_READ/WRITE are used to retrieve and write the time. PLDM stack provides GetBiosDateTimeReq and SetBiosDateTimeReq commands to exercise. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
PLDM Event Messages are PLDM monitoring and control messages that are used by a PLDM terminus to synchronously or asynchronously report PLDM events to a central party called the PLDM Event Receiver. This patch allows to send a: - generic sensor events (events related to PLDM numeric and state sensors). - boot progress sensor event. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The GetFRURecordTable command is used to get the FRU Record Table data. This command is defined to allow the FRU Record Table data to be transferred using a sequence of one or more command/response messages. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The GetFRURecordTableMetadata command is used to get the FRU Record Table metadata information that includes the FRU Record major version, the FRU Record minor version, the size of the largest FRU Record data, total length of the FRU Record Table, total number of FRU Record Data structures, and the integrity checksum on the FRU Record Table data. Add an "IBM, skiboot" FRU Record product requested by the BMC. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The GetPDR command is used to retrieve individual PDRs from a PDR repository. The record is identified by the PDR recordHandle value that is passed in the request. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The boot progress record will be used to report Opal's progress to the BMC during the boot. The Terminus Locator PDR forms the association between a TID and PLDM Terminus Handle for a terminus. This patch allows to add terminus locator record in the repository. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Encode the platform PDR repository change event message request that tells the BMC that a specific PDR entry has changed. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Add a wrapper for the libpldm api: pldm_pdr_find_record() Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The SetStateEffecterStates command is used to set the state of one or more effecters within a PLDM State Effecter. The field comp_effecter_count indicates the number of individual sets of state effecter information that are accessed by this command. The Event Receiver acknowledges receiving the PLDM Event Message in the response to this command. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The GetStateSensorReadings command can return readings for multiple state sensors (a PLDM State Sensor that returns more than one set of state information is called a composite state sensor). The Event Receiver acknowledges receiving the PLDM Event Message in the response to this command. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
PLDM Event Messages are sent as PLDM request messages to the Event Receiver using the PlatformEventMessage command. The Event Receiver acknowledges receiving the PLDM Event Message in the response to this command. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The SetEventReceiver command is used to set the address of the Event Receiver into a terminus that generates event messages. It is also used to globally enable or disable whether event messages are generated from the terminus. For the time being, only the following global event message is supported: PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC_KEEP_ALIVE. The Event Receiver acknowledges receiving the PLDM Event Message in the response to this command. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Encode a PLDM platform event message to send the heartbeat to the BMC. Watchdog is "armed" when a PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC_KEEP_ALIVE is received. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
In the same way that ipmi-hiomap implements the PNOR access control protocol, this patch allows to "virtualize" the content of a BMC flash based on lid files. Previously, flash PNOR partitions were viewed this way: partitionXX=NAME, start address, end address, flags The content of each partition is now stored in a lid file. In order to continue to use the libflash library, we manually fill in the contents of a fake flash header when accessing offset 0. This reproduces the behavior via ipmi-hiomap of reading the flash header on the BMC. For the reading and writing of BMC lids files, we convert the virtual addresses of these 'fake' partitions by identifying: lid id. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
This patch parses the "hb_lid_ids" string from bios tables and complete the global list of lid files. Each entry in the list contains the name, the id, the length of the lid file and the virtual address start access. This virtual address is used for for PNOR Resource Provider operations. 16 MB of VMM address are reserved space per section. Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Retrieve the file handle and file length based on attribute name. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Send/receive a PLDM WriteFile request message. Due to maximum transfer size for PLDM protocol, we have to send several write requests, if necessary. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Send/receive a PLDM ReadFile request message. Due to maximum transfer size for PLDM protocol, we have to send several read requests, if necessary. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
The ibm/libpldm library implements IBM OEM commands support for PLDM and specially encode and decode APIs for in-band readFile and writeFile commands. The GetFileTable request message is used to retrieve the file table which contains the list of lid files available and their attributes. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Use the GetFruRecordByOptionReq command to retrieve the bmc information with: "FRU Field Type": Version "FRU Record Set Identifier": 1, "FRU Record Type": "General(1)" and update the "bmc-firmware-version" device-tree field. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-
Christophe Lombard authored
Specification, defines a FRU data format that provides platform asset information including part number, serial number and manufacturer. Use the GetFruRecordByOptionReq command to get specific FRU (Field Replaceable Unit) record according the Record Set Identifier, the Record Type and the field Type. Reviewed-by:
Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by:
Christophe Lombard <clombard@linux.ibm.com> Signed-off-by:
Reza Arbab <arbab@linux.ibm.com>
-