fcp: properly set the partition actual size in write operations #13
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.
The actual size of the partitions is not set correctly when we run
op-build to create a PNOR image. entry.actual is set to entry.size
(allocated size) by fpart while creating the partition (truncate
operation), but it is not updated when a LID file is written to the
partition. That causes an error in skiboot while loading CAPP partition,
which has ECC.
With the trusted boot patches recently merged into skiboot, the CAPP
partition fails to be loaded. Skiboot correctly removes the ECC from the
CAPP partition content that comes from the CAPP LID, but it fails when
it reaches the 0xFF byte chain that comes from the partition creation
process. This issue happens because entry.actual is not set properly.
This patch fixes the actual size of the partitions of a PNOR image
created by running op-build. It updates the partition actual size
whenever a given content is about to be written to a PNOR partition.
Signed-off-by: Claudio Carvalho cclaudio@linux.vnet.ibm.com
This change is