diff mbox

Document changes to how firmware versions are passed to host on P9

Message ID 1468913331-28167-1-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith July 19, 2016, 7:28 a.m. UTC
We won't do mi-version/ml-version, but we will always have version.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 doc/device-tree/ibm,opal/firmware.txt | 4 +++-
 doc/opal-api/power9-changes.txt       | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

Comments

Stewart Smith July 20, 2016, 8:56 a.m. UTC | #1
Stewart Smith <stewart@linux.vnet.ibm.com> writes:
> We won't do mi-version/ml-version, but we will always have version.
>
> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
> ---
>  doc/device-tree/ibm,opal/firmware.txt | 4 +++-
>  doc/opal-api/power9-changes.txt       | 1 +
>  2 files changed, 4 insertions(+), 1 deletion(-)

Merged to master as of a7e2b69fc66aecefa45c52e5486c55d3743f1418

If anyone disagrees, they can disagree with patches :)
Vasant Hegde Aug. 4, 2016, 2:25 p.m. UTC | #2
On 07/19/2016 12:58 PM, Stewart Smith wrote:
> We won't do mi-version/ml-version, but we will always have version.

Stewart,

Sorry for late response.

>
> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
> ---
>   doc/device-tree/ibm,opal/firmware.txt | 4 +++-
>   doc/opal-api/power9-changes.txt       | 1 +
>   2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/doc/device-tree/ibm,opal/firmware.txt b/doc/device-tree/ibm,opal/firmware.txt
> index eab497058be4..3376fba86f37 100644
> --- a/doc/device-tree/ibm,opal/firmware.txt
> +++ b/doc/device-tree/ibm,opal/firmware.txt
> @@ -18,11 +18,13 @@ firmware {
>   'symbol-map' property describes OPAL symbol start address and size.
>
>   'version' property describes OPAL version. Replaces 'git-id', so may
> -not be present.
> +not be present. On POWER9 and above, it is always present.
>
>   'mi-version' property describes Microcode Image. Only on IBM FSP systems.
> +Will (likely) not be present on POWER9 systems.
>
>   'ml-version' property describes Microcode Level. Only on IBM FSP systems.
> +Will (likely) not be present on POWER9 systems.

I failed to understand why it will not be present on FSP based P9 system? Any 
reason?

update_flash (user space tool) makes use of these properties.

-Vasant
Stewart Smith Aug. 5, 2016, 3:57 a.m. UTC | #3
Vasant Hegde <hegdevasant@linux.vnet.ibm.com> writes:
> On 07/19/2016 12:58 PM, Stewart Smith wrote:
>> We won't do mi-version/ml-version, but we will always have version.
>
> Stewart,
>
> Sorry for late response.
>
>>
>> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
>> ---
>>   doc/device-tree/ibm,opal/firmware.txt | 4 +++-
>>   doc/opal-api/power9-changes.txt       | 1 +
>>   2 files changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/doc/device-tree/ibm,opal/firmware.txt b/doc/device-tree/ibm,opal/firmware.txt
>> index eab497058be4..3376fba86f37 100644
>> --- a/doc/device-tree/ibm,opal/firmware.txt
>> +++ b/doc/device-tree/ibm,opal/firmware.txt
>> @@ -18,11 +18,13 @@ firmware {
>>   'symbol-map' property describes OPAL symbol start address and size.
>>
>>   'version' property describes OPAL version. Replaces 'git-id', so may
>> -not be present.
>> +not be present. On POWER9 and above, it is always present.
>>
>>   'mi-version' property describes Microcode Image. Only on IBM FSP systems.
>> +Will (likely) not be present on POWER9 systems.
>>
>>   'ml-version' property describes Microcode Level. Only on IBM FSP systems.
>> +Will (likely) not be present on POWER9 systems.
>
> I failed to understand why it will not be present on FSP based P9 system? Any 
> reason?
>
> update_flash (user space tool) makes use of these properties.

I think we should put it in a better place, a node that describes the
state of the host firmware at boot time, and some API to get the
*current* state of host firmware. Same for BMC firmware.
Vasant Hegde Aug. 5, 2016, 5:30 a.m. UTC | #4
On 08/05/2016 09:27 AM, Stewart Smith wrote:
> Vasant Hegde <hegdevasant@linux.vnet.ibm.com> writes:
>> On 07/19/2016 12:58 PM, Stewart Smith wrote:
>>> We won't do mi-version/ml-version, but we will always have version.
>>
>> Stewart,
>>
>> Sorry for late response.
>>
>>>
>>> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
>>> ---
>>>    doc/device-tree/ibm,opal/firmware.txt | 4 +++-
>>>    doc/opal-api/power9-changes.txt       | 1 +
>>>    2 files changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/doc/device-tree/ibm,opal/firmware.txt b/doc/device-tree/ibm,opal/firmware.txt
>>> index eab497058be4..3376fba86f37 100644
>>> --- a/doc/device-tree/ibm,opal/firmware.txt
>>> +++ b/doc/device-tree/ibm,opal/firmware.txt
>>> @@ -18,11 +18,13 @@ firmware {
>>>    'symbol-map' property describes OPAL symbol start address and size.
>>>
>>>    'version' property describes OPAL version. Replaces 'git-id', so may
>>> -not be present.
>>> +not be present. On POWER9 and above, it is always present.
>>>
>>>    'mi-version' property describes Microcode Image. Only on IBM FSP systems.
>>> +Will (likely) not be present on POWER9 systems.
>>>
>>>    'ml-version' property describes Microcode Level. Only on IBM FSP systems.
>>> +Will (likely) not be present on POWER9 systems.
>>
>> I failed to understand why it will not be present on FSP based P9 system? Any
>> reason?
>>
>> update_flash (user space tool) makes use of these properties.

Stewart,

>
> I think we should put it in a better place, a node that describes the

mi/ml-versions related to FW . Hence I added under firmware node.
Do you think we have any other better place?

> state of the host firmware at boot time, and some API to get the
> *current* state of host firmware.

On FSP based system user space tools rely in DT information to display FW 
versions. In some corner cases where user did commit/reject operation and not 
rebooted machine then we endup displaying stale information.. I think we should 
have OPAL API to get current FW state.. I have been thinking about this for 
sometime.. But not yet implemented ..

We don't have this issue on BMC system as we use ipmitool to get FW information.


 > Same for BMC firmware.
>

Presently we are relying on ipmitool to get FW information... which seems to be 
fine. Do you think we should add it in DT (or via new OPAL API)?

-Vasant
diff mbox

Patch

diff --git a/doc/device-tree/ibm,opal/firmware.txt b/doc/device-tree/ibm,opal/firmware.txt
index eab497058be4..3376fba86f37 100644
--- a/doc/device-tree/ibm,opal/firmware.txt
+++ b/doc/device-tree/ibm,opal/firmware.txt
@@ -18,11 +18,13 @@  firmware {
 'symbol-map' property describes OPAL symbol start address and size.
 
 'version' property describes OPAL version. Replaces 'git-id', so may
-not be present.
+not be present. On POWER9 and above, it is always present.
 
 'mi-version' property describes Microcode Image. Only on IBM FSP systems.
+Will (likely) not be present on POWER9 systems.
 
 'ml-version' property describes Microcode Level. Only on IBM FSP systems.
+Will (likely) not be present on POWER9 systems.
 
 MI/ML format:
  <ML/MI> <T side version> <P side version> <boot side version>
diff --git a/doc/opal-api/power9-changes.txt b/doc/opal-api/power9-changes.txt
index cf354d60ac63..b4cf8d66e484 100644
--- a/doc/opal-api/power9-changes.txt
+++ b/doc/opal-api/power9-changes.txt
@@ -26,3 +26,4 @@  Things we still have to do for POWER9:
   FAILED [MEDIUM] DeviceTreeBaseDTCWarnings: Test 3, dtc reports warnings from
   device tree: Warning (reg_format): "reg" property in /ibm,opal/flash@0 has
   invalid length (8 bytes) (#address-cells == 0, #size-cells == 0)
+- Remove mi-version / ml-version from /ibm,opal/firmware and replace with something better and more portable