open-power / hostboot

System initialization firmware for Power systems
Apache License 2.0
75 stars 97 forks source link

Does hostboot only read Lid files from running DIR? #230

Closed wongkq closed 1 year ago

wongkq commented 1 year ago

https://github.com/open-power/hostboot/blob/c9a493fcc2ee016a52ba30b1d252d2dc0efd5688/src/usr/pldm/requests/pldm_fileio_requests.C#L214 What is the relationship between PLDM_FILE_TYPE_LID_RUNNING and the fw of BMC's fw_boot_side_current attr?

dcrowell77 commented 1 year ago

The BMC code is responsible for giving Hostboot all of its data. Hostboot only ever wants the code from the currently running side. We have deliberately obfuscated if that is 0/1 from the Hostboot layer. The BMC and PHYP (and theoretically OPAL) do need to keep track of which physical side is in use though, I believe that is what fw_boot_side_current tracks. More details would need to come from the OpenBMC team.