From: Gary King Date: Wed, 28 Jul 2010 22:03:57 +0000 (-0700) Subject: [ARM] tegra: fix packet alignment and padding X-Git-Tag: firefly_0821_release~9833^2~301 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=367c3aab790c8a407bb1f97c5f922b69289df89b;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: fix packet alignment and padding 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 --- diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h index 6151bab62af2..4ebc3e055ed1 100644 --- a/arch/arm/mach-tegra/include/mach/memory.h +++ b/arch/arm/mach-tegra/include/mach/memory.h @@ -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