SBE Image Section Handling
SBE Image Section Handling

Use proper API for determining if a section of an image exists.

The p9_xip_find API in the xipBinarySearch and xipLinearSearch
internal routines do not look in the Section Table for the
section names.

The p9_xip_get_section API will use the xipGetSectionPointer
to retrieve the Image section.  The size of the section requested
will return a size of zero for an empty section or the actual size
of the section requested.  With the proper query of the size of
the section we can determine whether to delete the section or
deterministically know that the section does -NOT- require deleting
(the delete puts added memory pressure during critical phases
of boot).

Early in p10 development it was determined that p9_xip_find would
not return proper data if the sections were present, therefore
we added defensive logic to basically always delete the sections
as a safeguard.

Due to the need to relieve memory pressure in critical paths
we needed to root cause why this exisitng code either had a bug
or was not being implemented properly.

Change-Id: I59ecc9034d6d651c6f7868f7747d35ca320cc456
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/104505
Reviewed-by: Zachary Clark <9de8c4480303b5335cd2a33eefe814615ba3612a@ibm.com>
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com>
Tested-by: Jenkins OP Build CI <e610bd72261d3c0a48f1e8ae36832ab00774d426@us.ibm.com>
Tested-by: Jenkins Combined Simics CI <8312af3886dfc9bb930f549023677220805b137e@us.ibm.com>
Tested-by: FSP CI Jenkins <aa9e4d9ac7cd25905e9c0dd36d4150516e73dd86@us.ibm.com>
Reviewed-by: Ilya Smirnov <2c7a6ec38cfb553b896499595cca9c656159f2a4@us.ibm.com>
Reviewed-by: Daniel M Crowell <912029ca9254ac7b5854e56910561d682e1fa2d0@us.ibm.com>

open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot