Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libflash/ipmi-hiomap: Fix blocks count issue
[ Upstream commit 7f29116 ] We convert data size to block count and pass block count to BMC. If data size is not block aligned then we endup sending block count less than actual data. BMC will write partial data to flash memory. Sample log : [ 594.388458416,7] HIOMAP: Marked flash dirty at 0x42010 for 8 [ 594.398756487,7] HIOMAP: Flushed writes [ 594.409596439,7] HIOMAP: Marked flash dirty at 0x42018 for 3970 [ 594.419897507,7] HIOMAP: Flushed writes In this case HIOMAP sent data with block count=0 and hence BMC didn't flush data to flash. Lets fix this issue by adjusting block count before sending it to BMC. Cc: Andrew Jeffery <[email protected]> Cc: [email protected] Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Andrew Jeffery <[email protected]> Signed-off-by: Stewart Smith <[email protected]> Signed-off-by: Vasant Hegde <[email protected]>
- Loading branch information