BMC version should be BCD encoded (#89)
A message that is not in the archive (sent off-list or not yet received): openbmc/phosphor-host-ipmid/issues/89/[email protected]
Any thoughts on the concern about BMC version being decimal, so that the IPMI representation of the version in BCD does not match character by character the tag in github? Should we limit the tag numbering to a max digit of 9 which would match the decimal and BCD representation, should the tag be in hex, or there should not be any change and this is how it works, other?
Quoted 16 lines
Begin forwarded message:
From: John Wang <[email protected]>
Subject: Re: [openbmc/phosphor-host-ipmid] BMC version should be BCD encoded (#89)
Date: June 20, 2016 at 10:20:47 PM CDT
To: openbmc/phosphor-host-ipmid <[email protected]>
Cc: Adriana Kobylak <[email protected]>, State change <[email protected]>
Reply-To: openbmc/phosphor-host-ipmid <reply+008a216f5c58e903296c17b81a4b7ad00c03eaed56ed5c7a92cf000000011380748f92a169ce0962da32@reply.github.com>It'll get confusion if the tag name is not the same as version in response data.
For example that you mentioned above, the user/designer get the version 0.11 on a failure board and want to track the source code in the tag from GitHub. They won't find out 0.11 tag name in this case. The tag name on GitHub is 0.17 actually.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <https://github.com/openbmc/phosphor-host-ipmid/issues/89#issuecomment-227330539>, or mute the thread <https://github.com/notifications/unsubscribe/AIohb8z6mavEWUhhIWYbB4SfyfKFn7FGks5qN1iPgaJpZM4Ipq2v>.
Quoted 2 lines · Adriana Kobylak
Any thoughts on the concern about BMC version being decimal, so that the IPMI representation of the version in BCD does not match character by character the tag in github? Should we limit the tag numbering to a max digit of 9 which would match the decimal and BCD representation, should the tag be in hex, or there should not be any change and this is how it works, other?
The spec for "Get Device ID" has:
byte 4 : [0:6] Major Firmware Revision, binary encoded. byte 5 : Minor Firmware Revision, BCD encoded.
It is very odd to me that the two are different but that is what the spec says. We appear to be doing everything correct for byte 4 (binary encoded and mask off the 7th bit) but not doing it correct for byte 5.
I think we should just fix this for byte 5 and make it BCD as requested. This would still allow us to support up to v7F.99, which is more than enough.
Sample code to fix up:
rev.minor = (rev.minor > 99 ? 99 : rev.minor);
dev_id[DEVICE_FW] = rev.minor % 10 + (rev.minor / 10) * 16;Signature · 1 line
Patrick Williams