diff options
author | Kirill Artamonov <kartamonov@nvidia.com> | 2010-07-20 16:09:47 +0300 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-07-20 10:01:32 -0700 |
commit | 401b3babdc5c5a777d12631c905bc2c63c77030d (patch) | |
tree | 0ce3783f30c1b6d466046887640e4be79f589e17 | |
parent | 9a5e91e0d57394ba360ad04f9bb17f1e50a77b09 (diff) |
[ARM] tegra: nvrm: remove GART allocation from I2C driver
The problem is that some drivers can keep GART memory pinned, fragmenting
it and making impossible to pin the memory allocated in other process.
24M limit on GART made situation less probable but didn't solve it
completely.
This fix disables GART allocation for ap20rm_i2c driver.
Change-Id: I22889a58ca9f6c0e38b00301abd36e272654e7d4
Reviewed-on: http://git-master/r/4150
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/nvrm/io/ap20/ap20rm_i2c.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/nvrm/io/ap20/ap20rm_i2c.c b/arch/arm/mach-tegra/nvrm/io/ap20/ap20rm_i2c.c index 292111035fe3..272abadb4e75 100644 --- a/arch/arm/mach-tegra/nvrm/io/ap20/ap20rm_i2c.c +++ b/arch/arm/mach-tegra/nvrm/io/ap20/ap20rm_i2c.c @@ -186,12 +186,6 @@ CreateDmaBufferMemoryHandle( { NvError Error = NvSuccess; NvRmMemHandle hNewMemHandle = NULL; - static const NvRmHeap HeapProperty[] = - { - NvRmHeap_ExternalCarveOut, - NvRmHeap_External, - NvRmHeap_GART, - }; // Initialize the memory handle with NULL *phNewMemHandle = NULL; @@ -201,8 +195,8 @@ CreateDmaBufferMemoryHandle( // Allocates the memory from the sdram if (!Error) - Error = NvRmMemAlloc(hNewMemHandle, HeapProperty, - NV_ARRAY_SIZE(HeapProperty), 4, NvOsMemAttribute_Uncached); + Error = NvRmMemAlloc(hNewMemHandle, NULL, + 0, 4, NvOsMemAttribute_Uncached); // Pin the memory allocation so that it should not move by memory manager. if (!Error) |