From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:53:31 +0800 Subject: [PATCH v6 029/102] x86: Correct mrccache find_next_mrc_cache() calculation In-Reply-To: <20191206213936.v6.29.I73b4396e3d9bb2ef5dd5d745e4f7df6652047567@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.29.I73b4396e3d9bb2ef5dd5d745e4f7df6652047567@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:47 PM Simon Glass wrote: > > This should take account of the end of the new cache record since a record > cannot extend beyond the end of the flash region. This problem was not > seen before due to the alignment of the relatively small amount of MRC > data. > > But with Apollo Lake the MRC data is about 45KB, even if most of it is > zeroes. > > Fix this bug and update the parameter name to be less confusing. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: > - Add comments about MRC-cache records being the same size > - apollolake -> Apollo Lake > > Changes in v3: > - Add an extra size parameter to the find_next_mrc_cache() function > > Changes in v2: None > > arch/x86/lib/mrccache.c | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > applied to u-boot-x86/next, thanks!