Expose more properties to all devices in /proc/device-tree/vpd #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For PowerKVM hosts, the device-tree exposed by the OPAL firmware is present at /proc/device-tree.
We find the device specific vital product data listed in linux at /proc/device-tree/vpd.
Here we are making hwinfo display more of unexposed vpd information on PPC hosts.
This patch exposes following device properties:
ccin - Custom Card Identification Number
fru-number - Field Replaceable Unit Number
ibm,loc-code - location code(s) for the Field Replacable Unit
serial-number - 12 characters serial number (8 characters in old format)
part-number - part number
description - device description
The output will be something like:
...
36 @01 vpd
name "vpd", model "", dtype "", compat "ibm,opal-v3-vpd"
ccin "", fru-number "", location-code "U8286.42A.10D6CFT", serial-number "", part-number ","
description ""
37 @36 vpd/root-node-vpd@a000
name "root-node-vpd", model "", dtype "", compat ""
ccin "", fru-number "", location-code "U8286.42A.10D6CFT", serial-number "", part-number ","
description ""
38 @37 vpd/root-node-vpd@a000/system-vpd@1c00
name "system-vpd", model "", dtype "", compat ""
ccin "", fru-number "", location-code "U8286.42A.10D6CFT", serial-number "", part-number ","
description ""
39 @37 vpd/root-node-vpd@a000/root-node-vpd@a001
name "root-node-vpd", model "", dtype "", compat ""
ccin "", fru-number "", location-code "U8286.42A.10D6CFT", serial-number "", part-number ","
description ""
40 @37 vpd/root-node-vpd@a000/enclosure@1e00
name "enclosure", model "", dtype "", compat ""
ccin "2CD4", fru-number "00E1962", location-code "U78C9.001.WZS007X", serial-number "YL30UF39H00M", part-number "00E3352,"
description "System planar 2S4U"
41 @40 vpd/root-node-vpd@a000/enclosure@1e00/service-processor@200
name "service-processor", model "", dtype "", compat ""
ccin "2CD4", fru-number "00E1962", location-code "U78C9.001.WZS007X-P1", serial-number "YL30UF39H00M", part-number "00E3352,"
description "System planar 2S4U"
...
Signed-off-by: Chandni Verma chandni@linux.vnet.ibm.com