[ARM] tegra: fix packet alignment and padding
authorGary King <gking@nvidia.com>
Wed, 28 Jul 2010 22:03:57 +0000 (15:03 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:23 +0000 (16:27 -0700)
tegra's DMA controller expects to start transfers at word boundaries,
and the standard packet alignment (2) was resulting in data corruption

also, provide a full cacheline of padding between skbuffs, to eliminate
coherency issues between the processor and USB networking devices.

Change-Id: Ibb508b512f43c8934d35eb182c8738370b7be585
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/include/mach/memory.h

index 6151bab62af207078960e8df6518ed6f55fd85f9..4ebc3e055ed1eb10fe460e94685d9e954082ca4f 100644 (file)
@@ -24,5 +24,8 @@
 /* physical offset of RAM */
 #define PHYS_OFFSET            UL(0)
 
+#define NET_IP_ALIGN   0
+#define NET_SKB_PAD    L1_CACHE_BYTES
+
 #endif