Re: [PATCH V3] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-07-08 Thread Laura Abbott
On 7/8/2013 3:42 AM, Russell King - ARM Linux wrote: The problem is the way the arm_dma_limit is set up, all dma allocations are currently broken regardless of if the actual device supports 64-bit addresses or not. Please explain this statement. The statement was a bit shortsighted given re

Re: [PATCH V3] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-07-05 Thread Laura Abbott
On 7/3/2013 7:15 AM, Ming Lei wrote: On Sat, Apr 27, 2013 at 5:32 AM, Rob Herring wrote: On 04/26/2013 03:31 PM, Laura Abbott wrote: Currently, of_platform_device_create_pdata always sets the coherent DMA mask to 32 bits. On ARM systems without CONFIG_ZONE_DMA, arm_dma_limit gets set to ~0 or

[PATCH V3] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-04-26 Thread Laura Abbott
prevents any dma_coherent allocation from succeeding unless clients manually set the dma mask first. Rather than make every client on an LPAE system set the mask manually, account for the size of dma_addr_t when setting the coherent mask. Signed-off-by: Laura Abbott --- drivers/of/platform.c |2

Re: [PATCH v2] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-04-26 Thread Laura Abbott
On 4/26/2013 1:03 PM, Rob Herring wrote: On 04/26/2013 01:06 PM, Laura Abbott wrote: Currently, of_platform_device_create_pdata always sets the coherent DMA mask to 32 bits. On ARM systems without CONFIG_ZONE_DMA, arm_dma_limit gets set to ~0 or 0x on LPAE based systems. Since

[PATCH v2] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-04-26 Thread Laura Abbott
prevents any dma_coherent allocation from succeeding unless clients manually set the dma mask first. Rather than make every client on an LPAE system set the mask, set the mask to a 64 bit value on systems with 64-bit dma addresses. Signed-off-by: Laura Abbott --- drivers/of/platform.c |4 1

Re: [PATCH] of: Set the DMA mask to 64 bits on ARM LPAE systems

2013-04-26 Thread Laura Abbott
On 4/26/2013 3:00 AM, Catalin Marinas wrote: On Thu, Apr 25, 2013 at 06:09:57PM +0100, Laura Abbott wrote: On 4/25/2013 6:33 AM, Catalin Marinas wrote: On Wed, Apr 24, 2013 at 01:50:49AM +0100, Laura Abbott wrote: By default on ARM systems, the coherent DMA mask (lowest address) is set to ~0

Re: [PATCH] of: Set the DMA mask to 64 bits on ARM LPAE systems

2013-04-25 Thread Laura Abbott
On 4/25/2013 6:33 AM, Catalin Marinas wrote: On Wed, Apr 24, 2013 at 01:50:49AM +0100, Laura Abbott wrote: By default on ARM systems, the coherent DMA mask (lowest address) is set to ~0 or 0x. Currently, of_platform_device_create_pdata sets the coherent DMA mask to 32 bits. This

[PATCH] of: Set the DMA mask to 64 bits on ARM LPAE systems

2013-04-23 Thread Laura Abbott
make every client on an LPAE system set the mask, set the mask to a 64 bit value on ARM LPAE systems. Signed-off-by: Laura Abbott --- drivers/of/platform.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 0970505

Re: [RFC/PATCH v2 2/2] drivers: dma-contiguous: add initialization from device tree

2013-04-11 Thread Laura Abbott
Hi, On 4/11/2013 4:22 AM, Marek Szyprowski wrote: ... + diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c index 01fe743..6a8abab 100644 --- a/drivers/base/dma-contiguous.c +++ b/drivers/base/dma-contiguous.c @@ -24,6 +24,9 @@ #include #include +#include +#include

Re: [Linaro-mm-sig] [PATCH 2/2] drivers: dma-contiguous: add initialization from device tree

2013-03-19 Thread Laura Abbott
On 3/15/2013 8:21 AM, Marek Szyprowski wrote: This scheme of associating devices with CMA regions by base does not work if you want to let CMA figure out where to place the region (base = 0). Can we use the name to associate the device with the region? I had been working on something similar int

Re: [Linaro-mm-sig] [PATCH 2/2] drivers: dma-contiguous: add initialization from device tree

2013-02-14 Thread Laura Abbott
Hi, On 2/14/2013 4:45 AM, Marek Szyprowski wrote: +name: an name given to the defined region. +base-address: the base address of the defined region. +size: the size of the memory region. +linux,contiguous-region: property indicating that the defined memory + re

Re: [PATCH 1/2] drivers: dma-contiguous: clean source code and prepare for device tree

2013-02-14 Thread Laura Abbott
Hi, On 2/14/2013 4:45 AM, Marek Szyprowski wrote: This patch cleans the initialization of dma contiguous framework. The all-in-one dma_declare_contiguous() function is now separated into dma_contiguous_reserve_area() which only steals the the memory from memblock allocator and dma_contiguous_add

[PATCH] dt/flattree: Add stub defintions for flat device tree functions

2012-07-20 Thread Laura Abbott
Several flattened device tree functions are missing stub functions when CONFIG_OF_FLATTREE is not selected, creating compilation errors. Add the stub functions. Signed-off-by: Laura Abbott --- include/linux/of_fdt.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a