diff options
author | Venkata(Muni) Anda <vanda@nvidia.com> | 2010-04-29 08:50:40 -0700 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2010-04-29 13:14:29 -0700 |
commit | 1a4730e2463f485cd49e9f196d2c0f4cf0cd1b01 (patch) | |
tree | 1eac04e4e79788974656bd901394d3ceff4158d2 /arch | |
parent | e4261d92e175b814d2abd7dab4978da07944cfc3 (diff) |
tegra : Increase DMA region size to 4M for Tegra platforms.
Default value of 2MB for DMA allocations is not large enough
to cover all the DMA allocation use cases of Tegra drivers.
4MB is a safe and working value.
Change-Id: I1f1e9db64ece21e9eef94c909a36cb1a2f50ed68
Reviewed-on: http://git-master/r/1247
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/memory.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h index 1e1d44cb4d2d..480d068ca0f3 100644 --- a/arch/arm/mach-tegra/include/mach/memory.h +++ b/arch/arm/mach-tegra/include/mach/memory.h @@ -37,6 +37,15 @@ #define NET_SKB_PAD L1_CACHE_BYTES +/* + * 4MB is required to cover all USB host use cases. + */ +#ifndef CONSISTENT_DMA_SIZE +#define CONSISTENT_DMA_SIZE SZ_4M +#endif + + + #define __arch_page_to_dma(dev, page) ((dma_addr_t)__virt_to_phys(page_address(page))) #define __arch_dma_to_virt(dev, addr) ((void *) __phys_to_virt(addr)) |