All of lore.kernel.org
 help / color / mirror / Atom feed
* dbus command to set POSTCode
@ 2021-06-15  4:19 Thang Nguyen
  2021-06-16 13:38 ` Manojkiran Eda
  0 siblings, 1 reply; 3+ messages in thread
From: Thang Nguyen @ 2021-06-15  4:19 UTC (permalink / raw)
  To: OpenBMC Maillist

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

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?


Best Regards,

ThangQ.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dbus command to set POSTCode
  2021-06-15  4:19 dbus command to set POSTCode Thang Nguyen
@ 2021-06-16 13:38 ` Manojkiran Eda
  2021-06-17  4:54   ` Thang Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: Manojkiran Eda @ 2021-06-16 13:38 UTC (permalink / raw)
  To: Thang Nguyen; +Cc: OpenBMC Maillist

Hi Thang,

On Jun 15 2021, at 9:49 am, Thang Nguyen <thang@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,
Manoj

> 
> 
> Best Regards,
> 
> ThangQ.
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dbus command to set POSTCode
  2021-06-16 13:38 ` Manojkiran Eda
@ 2021-06-17  4:54   ` Thang Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Thang Nguyen @ 2021-06-17  4:54 UTC (permalink / raw)
  To: Manojkiran Eda; +Cc: OpenBMC Maillist


On 16/06/2021 20:38, Manojkiran Eda wrote:
> Hi Thang,
>
> On Jun 15 2021, at 9:49 am, Thang Nguyen <thang@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.
>>
>>
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-17  4:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15  4:19 dbus command to set POSTCode Thang Nguyen
2021-06-16 13:38 ` Manojkiran Eda
2021-06-17  4:54   ` Thang Nguyen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.