Public bug reported: 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://sourceforge.net/projects/linux-diag/files/lsvpd-new/ Patches required for 14.04.3 release: == Comment: #4 - Janani V <janan...@in.ibm.com> - 2015-06-03 07:57:42 == >From a1ea1852fc3706bb80a821d792c5ef174378c3a6 Mon Sep 17 00:00:00 2001 From: Vasant Hegde <hegdevas...@linux.vnet.ibm.com> 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-2.1.1-fw810.20-1 Signed-off-by: Vasant Hegde <hegdevas...@linux.vnet.ibm.com> Reviewed-by: Janani Venkataraman <janan...@linux.vnet.ibm.com> == Comment: #5 - Janani V <janan...@in.ibm.com> - 2015-06-03 07:58:27 == >From 0fd7d1f36ffdc1bcf408e29d499c08640cb8a074 Mon Sep 17 00:00:00 2001 From: Janani Venkataraman <janan...@linux.vnet.ibm.com> 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 <janan...@linux.vnet.ibm.com> Signed-off-by: Vasant Hegde <hegdevas...@linux.vnet.ibm.com> == Comment: #6 - Janani V <janan...@in.ibm.com> - 2015-06-03 07:59:17 == >From 7e7638265464a46f9987c1529cfe3a338c87378b Mon Sep 17 00:00:00 2001 From: Janani <janan...@linux.vnet.ibm.com> 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 <janan...@linux.vnet.ibm.com> Signed-off-by: Vasant Hegde <hegdevas...@linux.vnet.ibm.com> == Comment: #7 - Janani V <janan...@in.ibm.com> - 2015-06-03 07:59:51 == >From 39ed6501bb3a286600941b600ea40557f8f6a4d8 Mon Sep 17 00:00:00 2001 From: Janani <janan...@linux.vnet.ibm.com> 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 <janan...@linux.vnet.ibm.com> Signed-off-by: Kamalesh Babulal <kamal...@linux.vnet.ibm.com> Reviewed-by: Naveen N. Rao <naveen.n....@linux.vnet.ibm.com> [Removed redundant return - Vasant] Signed-off-by: Vasant Hegde <hegdevas...@linux.vnet.ibm.com> ** Affects: ubuntu Importance: Undecided Status: New ** Tags: architecture-ppc64le bugnameltc-124145 severity-high targetmilestone-inin14043 ** Tags added: architecture-ppc64le bugnameltc-124145 severity-high targetmilestone-inin14043 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1461557 Title: [Ubuntu 14.04.3] lsvpd package update To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1461557/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs