From: Ian Campbell Date: Thu, 24 Apr 2014 20:14:56 +0100 Subject: [U-Boot] [PATCH 2/3] net/designware: invalidate entire descriptor in dw_eth_send In-Reply-To: <1398361277.3361.38.camel@abrodkin-8560l.internal.synopsys.com> References: <1397914214.19277.50.camel@hastur.hellion.org.uk> <1397915542-987-2-git-send-email-ijc@hellion.org.uk> <1398361277.3361.38.camel@abrodkin-8560l.internal.synopsys.com> Message-ID: <1398366896.23380.14.camel@dagon.hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2014-04-24 at 17:41 +0000, Alexey Brodkin wrote: > 1. Don't invalidate "sizeof(struct dmamacdescr)" but only > "roundup(sizeof(desc_p->txrx_status), ARCH_DMA_MINALIGN))". OK. (Although given the realities of the real world values of ARCH_DMA_MINALIGN on every arch and the sizes of the structs & fields involved this isn't actually buying you anything at all) > 2. In the following lines implements rounding as well: Will fix as well. > 3. Check carefully if there're other instances of probably unaligned > cache operations. I'm not seeing any others, in practice or by eye-balling the code. > 4. Why don't you squeeze all 3 patches in 1 and name it like "fix > alignment issues with caches on some platforms"? Basically with all 3 > patches you fix one and only issue and application of any one of those 3 > patches doesn't solve your problem, right? These are the issues as I discovered them one by one. I can fold them if you like but doing them separately will aid bisection if one of them turns out to be wrong in some way. As you prefer. Ian.