dbus command to set POSTCode

Thang Nguyen thang at os.amperecomputing.com
Thu Jun 17 14:54:23 AEST 2021


On 16/06/2021 20:38, Manojkiran Eda wrote:
> Hi Thang,
>
> On Jun 15 2021, at 9:49 am, Thang Nguyen <thang at os.amperecomputing.com> wrote:
>
>> Hi,
>>
>> I found the command to set POST Code to dbus as below:
>>
>> busctl set-property xyz.openbmc_project.State.Boot.Raw
>> /xyz/openbmc_project/state/boot/raw0
>> xyz.openbmc_project.State.Boot.Raw
>> Value \(tay\) 0x080103050006 72 2 0 0 2 0 0 0 72 0 0 0 0 0 0 0 0 0 0 0
>> 0
>> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 84 65 78 68 66 89 32 32 32
>> 32
>> 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
>>
> Looking at the command, This looks like a command that is used to set
> the progress code value on IBM machines.
>
>> The first option is the POST Code to set. In this case I use 0x080103050006.
>>
>> However, I have not found any document to specify the remaining.
>> Anyone
>> has document to specify about arguments for POST Code setting in dbus?
> Earlier, the Postcodes used to be just a uint64 number, But it was
> recently changed to `struct[uint64,array[byte]]` to capture IBM Progress
> codes[1] which are bigger than just a uint64 number[2].
>
> IBM Progress codes structure typically have a primary code(uint64) which
> is used to capture the progress towards boot ,and a secondary
> code(array[bytes]) which is used to debug boot hangs to provide
> additional details regarding the problem.
>
> On Intel systems, the snoopd daemon that is responsible for setting the
> Value property[2] would just set the secondary code to an empty vector[3].
>
>
> [1]. https://www.ibm.com/docs/en/POWER6/areai/areai.pdf
> [2]. https://github.com/openbmc/phosphor-dbus-interfaces/commit/9a96970ebb93eb1f495c200801343a4d1c53977c
> [3]. https://github.com/openbmc/phosphor-host-postd/blob/master/main.cpp#L68

Thanks for your information. I see that the array[byte] part is not used 
in PostCode. I can use the shorter command like below:

busctl set-property xyz.openbmc_project.State.Boot.Raw
/xyz/openbmc_project/state/boot/raw0
xyz.openbmc_project.State.Boot.Raw
Value \(tay\) 0x080103050006 0

>
> Thanks,
> Manoj
>
>>
>> Best Regards,
>>
>> ThangQ.
>>
>>
>>


More information about the openbmc mailing list