Re: [PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-08 Thread Marek Vasut
On 4/8/20 7:54 PM, Patrick DELAUNAY wrote: > Dear Marek, > >> From: Marek Vasut >> Sent: vendredi 3 avril 2020 23:27 >> >> On 4/3/20 10:28 AM, Patrick Delaunay wrote: >>> Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram >>> before relocation. >>> >>> This patch allow to use

RE: [PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-08 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:27 > > On 4/3/20 10:28 AM, Patrick Delaunay wrote: > > Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram > > before relocation. > > > > This patch allow to use the generic weak function dram_bank_mmu_setup > >

Re: [PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-03 Thread Marek Vasut
On 4/3/20 10:28 AM, Patrick Delaunay wrote: > Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram > before relocation. > > This patch allow to use the generic weak function dram_bank_mmu_setup > to activate the MMU and the data cache in SPL or in U-Boot before > relocation,

[PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-03 Thread Patrick Delaunay
Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram before relocation. This patch allow to use the generic weak function dram_bank_mmu_setup to activate the MMU and the data cache in SPL or in U-Boot before relocation, when bd->bi_dram is not yet initialized. In this cases,