[Ubuntu 14.04.3] lsvpd package update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsvpd (Ubuntu) |
Fix Released
|
Undecided
|
Adam Conrad | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
lsvpd package update:
This utility lists device Vital Product Data (VPD), which includes the following information and more: vendor, version, revision level, serial number. This utility has been tested on ppc64, ppc, and i386 platforms.
The upstream location is:
http://
Patches required for 14.04.3 release:
== Comment: #4 - Janani V <email address hidden> - 2015-06-03 07:57:42 ==
From a1ea1852fc3706b
From: Vasant Hegde <email address hidden>
Date: Wed, 19 Nov 2014 15:39:00 +0530
Subject: [PATCH 1/4] VPD: Add OPAL version details
Recently we have added firmware/version property in DT for
PowerKVM platform which contains OPAL version details. Also
deprecated old firmware/git-id property.
Use this new property to get firmware version details. Also
for backward compitability purpose, if new property (version)
is not available then check for old property (git-id).
Output on old FW:
*CL OPAL v3 d427354
Output on new FW:
*CL OPAL skiboot-
Signed-off-by: Vasant Hegde <email address hidden>
Reviewed-by: Janani Venkataraman <email address hidden>
== Comment: #5 - Janani V <email address hidden> - 2015-06-03 07:58:27 ==
From 0fd7d1f36ffdc1b
From: Janani Venkataraman <email address hidden>
Date: Wed, 3 Jun 2015 06:40:09 -0500
Subject: [PATCH 2/4] Look up at Device-Tree to fill Model-Name for PowerNV
host
In the case of PowerKVM host, the model name is picked up
from the device tree. In the powerVM machines, it is picked up
from cpu_mod_conv.conf
Sample output from PowerNV host:
[root@tul169p1 linux-diag-lsvpd]# ./lscfg
INSTALLED RESOURCE LIST
The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
* = Diagnostic support not available.
Model Architecture: ppc64
Model Implementation: Multiple Processor, PCI Bus
Model Name: 8286-41A, IBM Power System S814
Signed-off-by: Janani Venkataraman <email address hidden>
Signed-off-by: Vasant Hegde <email address hidden>
== Comment: #6 - Janani V <email address hidden> - 2015-06-03 07:59:17 ==
From 7e7638265464a46
From: Janani <email address hidden>
Date: Thu, 4 Dec 2014 14:00:06 +0530
Subject: [PATCH 3/4] lsmcode: Read entire /proc/cpuinfo to fetch platform
The platform field in /proc/cpuinfo for both PowerKVM Guest and
PowerVM LPAR is pSeries. In order to fetch the right platform, we need
to read the entire file. If pSeries (emulated by qemu) is present in
the file, we can be sure the platform is PowerKVM Guest.
Signed-off-by: Janani Venkataraman <email address hidden>
Signed-off-by: Vasant Hegde <email address hidden>
== Comment: #7 - Janani V <email address hidden> - 2015-06-03 07:59:51 ==
From 39ed6501bb3a286
From: Janani <email address hidden>
Date: Wed, 28 Jan 2015 14:28:35 +0530
Subject: [PATCH 4/4] lsvpd: Defer the freeing of devSg
After calling basename, we need to defer freeing the pointer.
This is because the basename function may return pointers to statically
allocated memory which may be overwritten by subsequent calls. They may
return a pointer to some part of path and hence the string refered to
by the path should not be modified or freed until the pointer returned
by the function is no longer required.
Signed-off-by: Janani Venkataraman <email address hidden>
Signed-off-by: Kamalesh Babulal <email address hidden>
Reviewed-by: Naveen N. Rao <email address hidden>
[Removed redundant return - Vasant]
Signed-off-by: Vasant Hegde <email address hidden>
Changed in ubuntu: | |
assignee: | nobody → Adam Conrad (adconrad) |
milestone: | none → ubuntu-14.04.3 |
affects: | ubuntu → lsvpd (Ubuntu) |
tags: |
added: verification-done removed: verification-needed |
Default Comment by Bridge