Re: [U-Boot] [PATCH v3] net/designware: make driver compatible with data cache

2014-01-22 Thread Mischa Jonker
Hello Alexey, In general, a very nice, clean patch. > + /* Flush modified buffer descriptor */ > + flush_dcache_range((unsigned long)desc_p, > +(unsigned long)desc_p + sizeof(struct dmamacdescr)); > + If I remember correctly, there is some bit that tells you if th

Re: [U-Boot] [PATCH] net/designware: make driver compatible with data cache

2013-12-24 Thread Mischa Jonker
Hi Alexey, > * Implement all accesses to shared structures between CPU and GMAC via > uncached reads/writes ("readl"/"writel"). I don't know how ARC exactly implements this for u-boot, but AFAIK, readl/writel are meant for 'strongly ordered' I/O writes, not necessarily uncached. The uncached p

Re: [U-Boot] [PATCH v2] drivers/net/designware - fix alignment of buffer descriptors

2013-09-25 Thread Mischa Jonker
Vipin wrote: > I have also faced this problem before. May be a better solution is to > place all the struct and buffer declarations at the very start of > dw_eth_dev structure (off-course with a comment that these should not > be moved). It may avoid the problem in later modifications I think that

[U-Boot] [PATCH 1/2] mmc/dw_mmc: Allocate the correct amount of descriptors

2013-07-26 Thread Mischa Jonker
This fixes two issues: * a descriptor was allocated for every block, while a descriptor can take 8 blocks * there was an off-by-one error in the descriptor preparation: there were two last descriptors, one with length==0 Signed-off-by: Mischa Jonker Cc: Alexey Brodkin Cc: Jaehoon Chung

[U-Boot] [PATCH 2/2] Add parentheses to ALLOC_ALIGN_BUFFER macro's

2013-07-26 Thread Mischa Jonker
Without those it's very easy to make mistakes when for instance the 'size' field is more than just a constant. Signed-off-by: Mischa Jonker Cc: Alexey Brodkin Cc: Marek Vasut Cc: Anton Staaf Cc: Tom Rini Cc: Wolfgang Denk --- include/common.h |4 ++-- 1 file changed, 2 i

[U-Boot] [PATCH] mmc/dw_mmc: Fix DMA descriptor corruption

2013-07-26 Thread Mischa Jonker
descriptors were allocated. Therefore, I have moved the allocated of the buffers up one level, to dwmci_send_cmd(). The DMA transfer should be complete when leaving this function. Signed-off-by: Mischa Jonker Cc: Alexey Brodkin Cc: Jaehoon Chung Cc: Andy Fleming --- drivers/mmc/dw_mmc.c |7