Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-05-01 Thread Ian Campbell
On Mon, 2014-04-28 at 22:21 +0200, Marek Vasut wrote: On Monday, April 28, 2014 at 09:55:46 PM, Ian Campbell wrote: So having done all that it doesn't seem that reordering dw_eth_dev is necessary. Reordering dw_eth_dev is necessary. Look: It's certainly desirable, but it's not

Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-04-28 Thread Marek Vasut
On Monday, April 28, 2014 at 09:55:46 PM, Ian Campbell wrote: On Sat, 2014-04-26 at 20:27 +0200, Marek Vasut wrote: On Saturday, April 19, 2014 at 03:30:14 PM, Ian Campbell wrote: On Sun, 2014-04-13 at 23:45 -0400, Shixin Zeng wrote: Hi, I compiled the current u-boot from

Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-04-27 Thread Ian Campbell
On Sat, 2014-04-26 at 20:27 +0200, Marek Vasut wrote: This was a sheer luck this ever worked. Looking at the entire driver, to fix all your issues with DMA and caches, it would be sufficient to re-align struct dw_eth_dev properly. See drivers/net/designware.h: 1) struct dmamacdescr {}

Re: [U-Boot] [linux-sunxi] Uboot error: address not aligned in v7_dcache_inval_range

2014-04-27 Thread Marek Vasut
On Sunday, April 27, 2014 at 08:40:50 PM, Ian Campbell wrote: On Sat, 2014-04-26 at 20:27 +0200, Marek Vasut wrote: This was a sheer luck this ever worked. Looking at the entire driver, to fix all your issues with DMA and caches, it would be sufficient to re-align struct dw_eth_dev