[Skiboot] [PATCH] libffs: Add helper get ffs_handle to the "OTHER_SIDE"

Stewart Smith stewart at linux.vnet.ibm.com
Fri Jan 8 11:38:18 AEDT 2016


Cyril Bur <cyril.bur at au1.ibm.com> writes:
> Some FFS structures will have a partition called "OTHER_SIDE", this is a
> pointer to another ffs TOC on which another ffs_handle can be instantiated.
>
> Currently users of libffs would have to query for the presence of this
> partition and then initialise a new ffs_handle themselves. As accessing the
> "other" side appears to be becoming a common operation this convenience
> function should prove useful.
>
> Furthermore, it is possible for these multiTOC flash chips to be circular,
> that is the "OTHER_SIDE" partition of 'secondary' TOC points back to the
> initial TOC. The solution is to add a comparison function capable of
> detecting when repeated calls to ffs_next_side() go full circle. It should
> be noted here that this is all the comparator function is designed to
> detect, it will not be able to detect two identical TOCs opened with
> different blocklevel_devices as this would require the ability to compare
> blocklevel_devices.
>
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
> ---
> This will have to applied after my previous series
> https://patchwork.ozlabs.org/patch/558688/

Thanks, applied to master as of 40eed43

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list