All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thang Nguyen <thang@os.amperecomputing.com>
To: Manojkiran Eda <manojkiran.eda@gmail.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: dbus command to set POSTCode
Date: Thu, 17 Jun 2021 11:54:23 +0700	[thread overview]
Message-ID: <6f412966-d502-466f-dfc7-f066ba691e56@os.amperecomputing.com> (raw)
In-Reply-To: <E74141E0-4D17-42F0-A7FA-6752BAA522B7@getmailspring.com>


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.
>>
>>
>>

      reply	other threads:[~2021-06-17  4:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6f412966-d502-466f-dfc7-f066ba691e56@os.amperecomputing.com \
    --to=thang@os.amperecomputing.com \
    --cc=manojkiran.eda@gmail.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.