[U-Boot] [PATCH] ARM: mvebu: handle unused DRAM banks with ECC enabled

2017-09-22 Thread Chris Packham
dram_ecc_scrubbing() had code to skip unused DRAM banks but it would not work because mvebu_sdram_bs() returns 0 and the code was subtracting 1 before checking the size. Remove the -1 from the bank size and the +1 from the total which will skip unused banks and still calculate the correct size. Put

Re: [U-Boot] [PATCH] ARM: mvebu: handle unused DRAM banks with ECC enabled

2017-09-24 Thread Joshua Scott
I can confirm that this patch fixes the issue I was seeing (data_abort, single and dual-bit ecc errors during dram_ecc_scrubbing). Tested on a board with the Marvell AlleyCat3 switch/SoC. Cheers, Joshua Scott From: Chris Packham Sent: Saturday, 23 Sept

Re: [U-Boot] [PATCH] ARM: mvebu: handle unused DRAM banks with ECC enabled

2017-09-26 Thread Stefan Roese
On 22.09.2017 18:50, Chris Packham wrote: dram_ecc_scrubbing() had code to skip unused DRAM banks but it would not work because mvebu_sdram_bs() returns 0 and the code was subtracting 1 before checking the size. Remove the -1 from the bank size and the +1 from the total which will skip unused ban