lsvpd Log


Commit Date  
[62353f] by Suzuki K. Poulose Suzuki K. Poulose

lsvpd: Fix RTAS VPD buffer parsing

RTAS VPD buffer has a 4byte value which indicates the total length
of the VPD buffer in BE. Handle it accordingly.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-06-18 05:06:26 Tree
[2c4966] by Suzuki K. Poulose Suzuki K. Poulose

vpdupdate: Threshold VPD_CHANGED return codes

The rtas_get_vpd() could return a VPD_CHANGED code to the caller
to indicate that there are some changes in the VPD data and hence
we need to restart the call from sequence 1. However, on a buggy
firmware we may get this problem and we keep looping forever.

To avoid this, we set a threshold count for the number of consecutive
VPD_CHANGED to decide to quit.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-06-18 05:05:34 Tree
[509bf1] by Suzuki K. Poulose Suzuki K. Poulose

[RTAS] Collect sysparm even if get_vpd fails

As of now we return without collecting the System parameters if
we encounter an error in rtas_get_vpd. On PKVM guests the get_vpd
call is not implemented, and hence we fail to collect the SYstem parms.

This patch fixes the same.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-06-18 05:04:27 Tree
[daed51] by Vasant Hegde Vasant Hegde

License: Grant permission to link with librtas library

Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

2014-04-08 16:37:07 Tree
[4d5fc9] by Frédéric Bonnard Frédéric Bonnard , pushed by Vasant Hegde Vasant Hegde

Remove debian changelog from upstream tarball

debian/changelog is handled on the debian side since debian
maintainer needs to be able to add debian specific packaging changes,
not upstream only and having it on the upstream tarball is not needed

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Frédéric Bonnard <frediz@linux.vnet.ibm.com>

2014-04-02 13:35:02 Tree
[e8d618] by Vasant Hegde Vasant Hegde

Role out lsvpd v1.7.4

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

2014-03-17 08:26:29 Tree
[061b32] by Suzuki K. Poulose Suzuki K. Poulose , pushed by Vasant Hegde Vasant Hegde

Filter out known paths from device-tree scan

Filter out some of the paths which are of no use under
/proc/device-tree. One we decide to ignore a path, we
don't descend down into that directory.

OPAL vpd directory is added to the directories to search
for OPAL platform.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>
Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

2014-03-13 10:57:35 Tree
[0cbc51] by Suzuki K. Poulose Suzuki K. Poulose , pushed by Vasant Hegde Vasant Hegde

lsmcode: Fix alignment issues in display

Add a space between the keywords and the values

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-13 10:00:25 Tree
[f4ff2d] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Opal: Display Firmware version string with Code Level

As of now we only display the git id as the Code Level
for the platform Firmware.

e.g.,

$ lsvpd | grep CL
*CL d427354

Fix it to :

$ lsvpd | grep CL
*CL OPAL v3 d427354

We find the firmware value from the /proc/cpuinfo

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-13 09:17:49 Tree
[9cc344] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

PlatformCollector: Fetch firmware field

Add new API for fetching firwmare field information from
/proc/cpuinfo.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-13 08:57:18 Tree
[299467] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

PlatformCollector: Define helper function to extract value of a tag

Defines a helper function to extract value of a given tag from
/proc/cpuinfo. This can be reused by different methods.

e.g, fetch platform, firmware, machine etc.

This patch also forces the get_platform() to make use of the new API

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-13 07:17:14 Tree
[51e398] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

lsmcode: Remove dynamic firmware fetching

Since we have automated VPD updates based on udev, it is
guaranteed that the VPD is updated after every reboot, which
guarantees the Firmware Version is uptodate in VPD db.

Hence, we need not calculate it again using RTAS calls.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-12 00:21:38 Tree
[30d979] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

lsvpd: Do not print FC field if unavailable

At present lsvpd prints FC field with '??????' if it is empty.
This is unnecessary and confusing. This patch disables the field
FC if it is empty and -m option is not specified.

Without this patch :

[root@llmjuno02b lsvpd.git]# ./lsvpd | grep FC | head -n 3
*FC ????????
*FC ????????
*FC ????????
[root@llmjuno02b lsvpd.git]# ./lsvpd -m | grep FC | head -n 3
*FC ********
*FC ********
*FC ********

With this patch :

[root@llmjuno02b lsvpd.git]# ./lsvpd | grep FC | head -n 3
*FC
*FC
*FC
[root@llmjuno02b lsvpd.git]# ./lsvpd -m | grep FC | head -n 3
*FC ********
*FC ********
*FC ********

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-12 00:20:03 Tree
[5a6439] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Fix Machine Model type value

On PowerVM machines, the model value is read as
IBM,<MODEL-NAME>. But on PowerKVM machines the IBM,
part is missing. Handle this accordingly.

We could simply check if we have IBM, at the beginning
before skipping the IBM, part.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 17:04:54 Tree
[6e2960] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Sanitize VPD Field before updating in the DB

This patch checks if value being updated in db
is in binary form or string. If it is binary,
then hexdump is stored as string and updated
in vpd.db. This is done to avoid displaying junk values
for fields with binary data.

Some fields may have trailing '0's which is handled.
Some fields have full of space characters. Convert them
to hexa.

Signed-off-by: Phani Yadav <phayadav@linux.vnet.ibm.com>
Signed-off-by: Bharani C.V <bharanve@linux.vnet.ibm.com>
Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 17:03:09 Tree
[0e6521] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Fill OPAL Firmware VPD information

We do not have to process the vpd data in the ibm,vpd
files separately, as it is already taken care of by the
proc collector. Only missing information is the system
firmware related data which is available in

/proc/device-tree/ibm,opal/firmware/

With the patch :

[root@llmjuno02b lsvpd.git]# cat /proc/device-tree/ibm,opal/firmware/mi-version
MI ZL770_060 ZL770_060 ZL770_060
[root@llmjuno02b lsvpd.git]# cat /proc/device-tree/ibm,opal/firmware/ml-version
ML FW770.20 FW770.20 FW770.20

[root@llmjuno02b lsvpd.git]# ./lsmcode
Version of System Firmware is FW770.20 (ZL770_060) (t) FW770.20 (ZL770_060) (p) FW770.20 (ZL770_060) (b)

[root@llmjuno02b lsvpd.git]# ./lsvpd | grep CL
*CL d427354
[root@llmjuno02b lsvpd.git]# cat /proc/device-tree/ibm,opal/firmware/git-id
d427354

Signed-off-by: Bharani C.V <bharanve@linux.vnet.ibm.com>
Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:55:25 Tree
[3368f7] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

System: Add unsupported keys to DB

There are some keys in the System VPD which
lsvpd doesn't recognize at the moment. Add them
to DeviceSpecific list so that they can be captured.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:54:49 Tree
[5f9139] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Fill System VPD for OPAL

System VPD for OPAL is present in

/proc/device-tree/vpd/ibm,vpd

and the location code is present at

/proc/device-tree/vpd/ibm,loc-code.

Process the above files and fill the System object.

TODO: There are some keywords not understood by the
lsvpd yet in the System VPD. We have to add support
for them. Like :

DR, MN, RG, WN, NN, SG

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:53:14 Tree
[82c322] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

Add support for OPAL VPD parsing

OPAL VPD format has a different header format with record
type of 0x84. Define the parseVPDHeader method for OPAL.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:46:52 Tree
[f13f86] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

vpdupdate: Handle fru-type attribute for dt node

Handle fru-type attribute and fill in the description
based on the value.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:45:53 Tree
[eab354] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

vpdupdate: Introduce Opal platform

Add support for detecting Opal platform.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:45:18 Tree
[9f0b63] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

vpdupdate: Fix getAttrValue to avoid junk characters

Allocate file_size + 1 for the attribute. There may not be
a trailing '\0' for constructing a string.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:43:38 Tree
[7d76c4] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

vpdupdate: Rename parseSysRtas to parseSysVPD

Since parseSysRtas is now generic with the introduction
of platform specific parseVPDHeader(), rename it to
parseSysVPD to make more sense.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:42:50 Tree
[2235ef] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

VPD: Refactor VPD parsing logic for reusability

VPD buffer format for RTAS and OPAL differ for the header
section. So define platform specific hooks for parsing the
header.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:38:31 Tree
[911c7d] by Suzuki K. Poulose Suzuki K. Poulose , pushed by root root

rtas: Cleanup parseRtasVpd for better readability

Only code re-alignment. No functional changes.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

2014-03-10 10:37:55 Tree
Older >

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks