Re: [PATCH] cmd: cache: Fix non-cached memory cachability

2020-04-27 Thread Patrice CHOTARD
Hi Marek On 4/27/20 12:22 PM, Marek Vasut wrote: > On 4/23/20 6:01 PM, Patrice Chotard wrote: > > [...] > >> diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c >> index 007d4ebc49..7f3cfb407c 100644 >> --- a/arch/arm/lib/cache.c >> +++ b/arch/arm/lib/cache.c >> @@ -73,6 +73,15 @@ static unsi

Re: [PATCH] cmd: cache: Fix non-cached memory cachability

2020-04-27 Thread Marek Vasut
On 4/23/20 6:01 PM, Patrice Chotard wrote: [...] > diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c > index 007d4ebc49..7f3cfb407c 100644 > --- a/arch/arm/lib/cache.c > +++ b/arch/arm/lib/cache.c > @@ -73,6 +73,15 @@ static unsigned long noncached_start; > static unsigned long noncached_

[PATCH] cmd: cache: Fix non-cached memory cachability

2020-04-23 Thread Patrice Chotard
If dcache is switched OFF to ON state and if non-cached memory is used, this non-cached memory must be re-declared as uncached to mmu each time dcache is set ON. Issue found on STM32MP1 platform using dwc_eth_qos ethernet driver, when going from dcache OFF to dcache ON state, ethernet driver issue