Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-23 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 22.02.2018 um 14:03 schrieb Lukasz Majewski: > > Hi Stefano, > > > >> Hi Lukasz, > >> > >> On 22/02/2018 12:52, Lukasz Majewski wrote: > >>> Hi Stefano, > >>> > If the bootcounter address is in a cached memory, > a flush of dcache must occur

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Heiko Schocher
Hello Lukasz, Am 22.02.2018 um 14:03 schrieb Lukasz Majewski: Hi Stefano, Hi Lukasz, On 22/02/2018 12:52, Lukasz Majewski wrote: Hi Stefano, If the bootcounter address is in a cached memory, a flush of dcache must occur after updateing the bootcounter. Issue found on i.MX6 where

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Lukasz Majewski
Hi Stefano, > Hi Lukasz, > > On 22/02/2018 12:52, Lukasz Majewski wrote: > > Hi Stefano, > > > >> If the bootcounter address is in a cached memory, > >> a flush of dcache must occur after updateing the bootcounter. > >> > >> Issue found on i.MX6 where bootcounter is put into the internal > >>

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Stefano Babic
Hi Lukasz, On 22/02/2018 12:52, Lukasz Majewski wrote: > Hi Stefano, > >> If the bootcounter address is in a cached memory, >> a flush of dcache must occur after updateing the bootcounter. >> >> Issue found on i.MX6 where bootcounter is put into the internal >> (cached) IRAM. >> >>

Re: [U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Lukasz Majewski
Hi Stefano, > If the bootcounter address is in a cached memory, > a flush of dcache must occur after updateing the bootcounter. > > Issue found on i.MX6 where bootcounter is put into the internal > (cached) IRAM. > > Signed-off-by: Stefano Babic > --- >

[U-Boot] [PATCH] bootcount: flush after storing the bootcounter

2018-02-22 Thread Stefano Babic
If the bootcounter address is in a cached memory, a flush of dcache must occur after updateing the bootcounter. Issue found on i.MX6 where bootcounter is put into the internal (cached) IRAM. Signed-off-by: Stefano Babic --- drivers/bootcount/bootcount.c | 3 +++ 1 file changed,