[Skiboot] [PATCH v3 1/2] hdata/vpd: Rework vpd node creation logic
stewart at linux.vnet.ibm.com
Wed Oct 18 09:00:49 AEDT 2017
Vasant Hegde <hegdevasant at linux.vnet.ibm.com> writes:
> 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.
> - 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 at linux.vnet.ibm.com>
> Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
> Reviewed-by: Oliver O'Halloran <oohall at gmail.com>
Series merged to master as of 0cb662390448586f929342fbf48bea6417e6296f
and made it into 5.9-rc3.
OPAL Architect, IBM.
More information about the Skiboot