aboutsummaryrefslogtreecommitdiff
path: root/opal-ci
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2017-10-10 11:10:17 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-10-16 21:51:28 -0500
commit77190aa7d40dde305a598fa36810db0f5598c553 (patch)
tree0b88ce8646c1d7842531301d745acc3900ada705 /opal-ci
parent1fdd66f270e5b270f5931b20af980001422044d6 (diff)
downloadskiboot-77190aa7d40dde305a598fa36810db0f5598c553.zip
skiboot-77190aa7d40dde305a598fa36810db0f5598c553.tar.gz
skiboot-77190aa7d40dde305a598fa36810db0f5598c553.tar.bz2
hdata/vpd: Rework vpd node creation logic
Presently we traverse SLCA structure to create various FRU nodes under /vpd node. We assumed that children are always contiguous. It happened to be contiguous in P8 and worked fine, but failed in P9 system. So it ended up populating duplicate node under wrong parent. Also failed to populate some of the nodes. Unfortunately there is no way to reach all the children of a given parent from parent node :-( Hence we have to rework vpd creation logic. This patch goes through all the SLCA entries serially and creates vpd node. Assumptions: - SLCA index is always serial (0..n) - When we traverse serially parent entry comes before child - Redundant resources are always consecutive - Populate node if SLCA has 'installed' and 'VPD collected' bit set CC: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'opal-ci')
0 files changed, 0 insertions, 0 deletions