Re: [PATCHv2 0/3] Devicetree bindings for Ion

2015-11-17 Thread Laura Abbott
On 11/17/15 7:15 AM, Arnd Bergmann wrote: On Monday 16 November 2015 16:57:32 Laura Abbott wrote: Hi, This is another attempt at devicetree bindings for Ion. The big complaint from v1 was that too much unnecessary data was being pushed into devicetree. v2 takes a different approach of using

[PATCHv2 0/3] Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
might look like. As always, your comments and reviews are appreciated. Thanks, Laura Laura Abbott (3): ion: Devicetree bindings for Ion staging: ion: Add files for parsing the devicetree (WIP) NOMERGE: Sample driver drivers/staging/android/ion/Kconfig | 16 +++ drivers/staging

[PATCHv2 3/3] NOMERGE: Sample driver

2015-11-16 Thread Laura Abbott
Small sample driver to show what setup would look like with the dt bindings Signed-off-by: Laura Abbott <la...@labbott.name> --- drivers/staging/android/ion/Kconfig | 6 ++ drivers/staging/android/ion/Makefile| 1 + drivers/staging/android/ion/ion_of_sample.

[PATCHv2 2/3] staging: ion: Add files for parsing the devicetree

2015-11-16 Thread Laura Abbott
Devicetree is the preferred mechanism for platform definition these days. Add a set of files for supporting Ion with devicetree. This is a set of functions for drivers to call to parse the Ion devicetree along with definitons for defining heaps. Signed-off-by: Laura Abbott <la...@labbott.n

[PATCHv2 1/3] ion: Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
This adds a base set of devicetree bindings for the Ion memory manager. This supports setting up the generic set of heaps and their properties. Signed-off-by: Laura Abbott <la...@labbott.name> --- drivers/staging/android/ion/devicetree.txt | 50 ++ 1 file chang

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-22 Thread Laura Abbott
:35:41 PM, Rob Herring <robherri...@gmail.com> wrote: On Tue, Oct 6, 2015 at 3:47 PM, Laura Abbott <labb...@fedoraproject.org> wrote: [...] +Example: + + ion { + compatbile = "linux,ion"; + #address-cells = <1>; + #size-cells = <0>; + + ion-system-heap { + li

[RFC][PATCH 2/2] staging: ion: Add files for parsing the devicetree (WIP)

2015-10-06 Thread Laura Abbott
From: Laura Abbott <la...@labbott.name> Devicetree is the preferred mechanism for platform definition these days. Add a set of files for supporting Ion with devicetree. This includes a set of bindings for heaps common across all devices and parsing methods. Clients may use the standard bi

[RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-06 Thread Laura Abbott
From: Laura Abbott <la...@labbott.name> This adds a base set of devicetree bindings for the Ion memory manager. This supports setting up the generic set of heaps and their properties. Signed-off-by: Laura Abbott <la...@labbott.name> Signed-off-by: Andrew Andrianov <an

[RFC][PATCH 0/2] Devicetree bindings for Ion

2015-10-06 Thread Laura Abbott
From: Laura Abbott <la...@labbott.name> Hi, At the last Plumbers and Linaro Connect, there was some discussion related to Ion. One of the items that came up towards eventually getting Ion out of staging was some concept of stable devicetree bindings. This is a proof of concept for bi

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-06 Thread Laura Abbott
On 10/6/15 3:35 PM, Rob Herring wrote: On Tue, Oct 6, 2015 at 3:47 PM, Laura Abbott <labb...@fedoraproject.org> wrote: From: Laura Abbott <la...@labbott.name> This adds a base set of devicetree bindings for the Ion memory manager. This supports setting up the generic

Re: [PATCH v5.1 2/2] staging: ion: Add ion-physmem documentation

2015-06-30 Thread Laura Abbott
(adding devicetree mailing list since I didn't see it cc-ed) Please also remember to cc the staging list since Ion is still a staging framework. On 06/30/2015 08:34 AM, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov and...@ncrmnt.org ---

Re: [PATCH/RFC 0/4] Probe deferral for IOMMU DT integration

2015-02-09 Thread Laura Abbott
On 2/7/2015 2:41 PM, a...@arndb.de wrote: Laura Abbott lau...@codeaurora.org hat am 6. Februar 2015 um 01:31 geschrieben: The requirement for this is based on a previous patch to add clock support to the ARM SMMU driver[2]. Once we have clock support, it's possible that the driver itself may

[PATCH/RFC 2/4] of: Return error codes from of_dma_configure

2015-02-05 Thread Laura Abbott
of_dma_configure is currently a void function. IOMMU configuration may need to defer probing so return appropriate values. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/iommu/of_iommu.c | 14 +++--- drivers/of/device.c | 9 +++-- include/linux/of_device.h | 4

[PATCH/RFC 3/4] iommu/arm-smmu: add support for specifying clocks

2015-02-05 Thread Laura Abbott
...@codeaurora.org Signed-off-by: Laura Abbott lau...@codeaurora.org --- This is a rework of the patch to add clocks and it attempted to address previous comments. I sent it with this series to give the rest of the RFC some series but I'll probably resend later versions of this one separately from

[PATCH/RFC 4/4] iommu/arm-smmu: Support deferred probing

2015-02-05 Thread Laura Abbott
With the addition of clocks in the SMMU driver, the driver now may need to be deferred if the clocks are not ready. Apart from just the probe function though, we may need to defer attachment as well. Support both of these. Signed-off-by: Laura Abbott lau...@codeaurora.org --- I went

[PATCH/RFC 0/4] Probe deferral for IOMMU DT integration

2015-02-05 Thread Laura Abbott
://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/319390.html Laura Abbott (3): dma-mapping: Make arch_setup_dma_ops return an error code of: Return error codes from of_dma_configure iommu/arm-smmu: Support deferred probing Mitchel Humpherys (1): iommu/arm-smmu: add support

[PATCH/RFC 1/4] dma-mapping: Make arch_setup_dma_ops return an error code

2015-02-05 Thread Laura Abbott
Setting up the DMA operations may trigger a probe deferral. Return a proper error code to let probe deferral do its thing. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/include/asm/dma-mapping.h | 2 +- arch/arm/mm/dma-mapping.c| 4 +++- arch/arm64/include/asm

Re: [PATCH] of: Allow mem_reserve of memory with a base address of zero

2014-08-12 Thread Laura Abbott
On 8/12/2014 9:48 AM, Grant Likely wrote: On Wed, 6 Aug 2014 17:02:44 -0500, Rob Herring robherri...@gmail.com wrote: On Wed, Aug 6, 2014 at 3:30 PM, Al Cooper alcoop...@gmail.com wrote: __reserved_mem_reserve_reg() won't reserve memory if the base address is zero. This change removes the

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

2014-08-08 Thread Laura Abbott
On 7/14/2014 12:12 AM, Marek Szyprowski wrote: Add a function to create CMA region from previously reserved memory and add support for handling 'shared-dma-pool' reserved-memory device tree nodes. Based on previous code provided by Josh Cartwright jo...@codeaurora.org Signed-off-by: Marek

Re: [PATCH v2 0/4] CMA device tree, once again

2014-08-08 Thread Laura Abbott
the default 240MB vmalloc space, 64M is ~25% of the vmalloc space. At least on arm you can make this up by remapping the memory as coherent. I haven't seen this picked up anywhere yet so you are welcome to add Tested-by: Laura Abbott lau...@codeaurora.org Thanks, Laura -- Qualcomm Innovation Center

Re: [RESEND][PATCHv2 0/3] Fix for buggy u-boot memory banks

2014-07-28 Thread Laura Abbott
On 7/26/2014 2:20 PM, Rob Herring wrote: On Tue, Jul 15, 2014 at 12:03 PM, Laura Abbott lau...@codeaurora.org wrote: Hi, This is a resend of the series to fix the uboot bug exposed by the removal of meminfo. I haven't gotten any acks though. Is the bug with ATAGs that get converted to DT

[RESEND][PATCHv2 0/3] Fix for buggy u-boot memory banks

2014-07-15 Thread Laura Abbott
Hi, This is a resend of the series to fix the uboot bug exposed by the removal of meminfo. I haven't gotten any acks though. Please help with review/acks. Grant/Rob, I'd still like this to go through the devicetree tree if possible. Thanks, Laura -- The Qualcomm Innovation Center, Inc. is a

[RESEND][PATCHv2 1/3] of: Split early_init_dt_scan into two parts

2014-07-15 Thread Laura Abbott
the memory. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 18 +- include/linux/of_fdt.h | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index c4cddf0..55bfca9 100644 --- a/drivers/of/fdt.c +++ b

[RESEND][PATCHv2 3/3] arm: Add devicetree fixup machine function

2014-07-15 Thread Laura Abbott
. In this fixup function for exynos, limit the maximum number of memory regions in the devicetree. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/include/asm/mach/arch.h | 1 + arch/arm/kernel/devtree.c| 7 ++- arch/arm/mach-exynos/exynos.c| 10 ++ 3 files changed, 17

[RESEND][PATCHv2 2/3] of: Add memory limiting function for flattened devicetrees

2014-07-15 Thread Laura Abbott
Buggy bootloaders may pass bogus memory entries in the devicetree. Add of_fdt_limit_memory to add an upper bound on the number of entries that can be present in the devicetree. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 48

[PATCH] of: Use proper types for checking memory overflow

2014-07-07 Thread Laura Abbott
(phys_addr_t). Check against phys_addr_t instead. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index b777d8f..b88a68e 100644 --- a/drivers/of/fdt.c +++ b

Re: [PATCHv2 1/3] of: Split early_init_dt_scan into two parts

2014-07-07 Thread Laura Abbott
On 7/1/2014 7:03 PM, Laura Abbott wrote: Currently, early_init_dt_scan validates the header, sets the boot params, and scans for chosen/memory all in one function. Split this up into two separate functions (validation/setting boot params in one, scanning in another) to allow for additional

[PATCHv2 1/3] of: Split early_init_dt_scan into two parts

2014-07-01 Thread Laura Abbott
the memory. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 18 +- include/linux/of_fdt.h | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index c4cddf0..55bfca9 100644 --- a/drivers/of/fdt.c +++ b

[PATCHv2 3/3] arm: Add devicetree fixup machine function

2014-07-01 Thread Laura Abbott
. In this fixup function for exynos, limit the maximum number of memory regions in the devicetree. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/include/asm/mach/arch.h | 1 + arch/arm/kernel/devtree.c| 7 ++- arch/arm/mach-exynos/exynos.c| 10 ++ 3 files changed, 17

[PATCHv2 2/3] of: Add memory limiting function for flattened devicetrees

2014-07-01 Thread Laura Abbott
Buggy bootloaders may pass bogus memory entries in the devicetree. Add of_fdt_limit_memory to add an upper bound on the number of entries that can be present in the devicetree. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 48

Re: [PATCH 2/2] arm: Add back maximum bank limit

2014-06-30 Thread Laura Abbott
On 6/30/2014 3:43 AM, Grant Likely wrote: Instead of splitting early_init_dt_scan(), the call to early_init_dt_scan() could probably be moved after the of_flat_dt_match_machine() call. It's at least worth a try. Looking at the code I don't see anything obvious that requires the

[PATCH 2/2] arm: Add back maximum bank limit

2014-06-29 Thread Laura Abbott
-by: Laura Abbott lau...@codeaurora.org --- http://lists.infradead.org/pipermail/linux-arm-kernel/2014-June/265615.html For those who did not see the discussion before --- arch/arm/include/asm/mach/arch.h | 10 -- arch/arm/kernel/atags_parse.c| 1 + arch/arm/kernel/devtree.c

[PATCH 1/2] of: Split early_init_dt_scan into two parts

2014-06-29 Thread Laura Abbott
the memory. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/fdt.c | 18 +- include/linux/of_fdt.h | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index c4cddf0..55bfca9 100644 --- a/drivers/of/fdt.c +++ b

[PATCHv2] of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch

2014-06-19 Thread Laura Abbott
outside the range of phys_addr_t. Add range checks for the base and size if phys_addr_t is smaller than u64. Reported-by: Geert Uytterhoeven ge...@linux-m68k.org Tested-by: Geert Uytterhoeven ge...@linux-m68k.org Signed-off-by: Laura Abbott lau...@codeaurora.org --- v2: Switched to sizeof

Re: [PATCHv2] arm64: Add atomic pool for non-coherent and CMA allocaitons.

2014-06-03 Thread Laura Abbott
On 6/3/2014 6:28 AM, Will Deacon wrote: Hi Laura, On Mon, Jun 02, 2014 at 09:03:52PM +0100, Laura Abbott wrote: Neither CMA nor noncoherent allocations support atomic allocations. Add a dedicated atomic pool to support this. Change-Id: I46c8fdffe5e0687403d42b37643137c8cf344259 Signed-off

[PATCHv2] arm64: Add atomic pool for non-coherent and CMA allocaitons.

2014-06-02 Thread Laura Abbott
Neither CMA nor noncoherent allocations support atomic allocations. Add a dedicated atomic pool to support this. Change-Id: I46c8fdffe5e0687403d42b37643137c8cf344259 Signed-off-by: Laura Abbott lau...@codeaurora.org --- v2: Various bug fixes pointed out by David and Ritesh (CMA dependency

Re: [RFC/PATCH 0/3] Add devicetree scanning for randomness

2014-02-12 Thread Laura Abbott
On 2/12/2014 3:51 AM, Arnd Bergmann wrote: On Wednesday 12 February 2014, Laura Abbott wrote: This is an RFC to seed the random number pool earlier when using devicetree. The big issue this is trying to solve is the fact that the stack canary for ARM tends to be the same across bootups

Re: [RFC/PATCH 2/3] arm: Add ARCH_WANT_OF_RANDOMNESS

2014-02-12 Thread Laura Abbott
On 2/12/2014 8:49 AM, Grant Likely wrote: On Tue, 11 Feb 2014 17:33:24 -0800, Laura Abbott lau...@codeaurora.org wrote: The stack canary for ARM is currently the same across reboots due to lack of randomness early enough. Add ARCH_WANT_OF_RANDOMNESS to allow devices to add whatever randomness

[RFC/PATCH 2/3] arm: Add ARCH_WANT_OF_RANDOMNESS

2014-02-11 Thread Laura Abbott
The stack canary for ARM is currently the same across reboots due to lack of randomness early enough. Add ARCH_WANT_OF_RANDOMNESS to allow devices to add whatever randomness they need. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/Kconfig |3 +++ arch/arm/kernel

[RFC/PATCH 0/3] Add devicetree scanning for randomness

2014-02-11 Thread Laura Abbott
have would be reasonable if only seeded earlier. Thanks, Laura Laura Abbott (3): of: Add early randomness hooks arm: Add ARCH_WANT_OF_RANDOMNESS init: Move stack canary initialization after setup_arch arch/arm/Kconfig |3 ++ arch/arm/kernel/vmlinux.lds.S |1

[RFC/PATCH 3/3] init: Move stack canary initialization after setup_arch

2014-02-11 Thread Laura Abbott
-by: Laura Abbott lau...@codeaurora.org --- init/main.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/init/main.c b/init/main.c index eb03090..63d0596 100644 --- a/init/main.c +++ b/init/main.c @@ -489,11 +489,6 @@ asmlinkage void __init start_kernel(void

[RFC/PATCH 1/3] of: Add early randomness hooks

2014-02-11 Thread Laura Abbott
is present the function is called. Note that this must happen on the flattened devicetree to ensure the randomness gets added to the pool early enough to make a difference. Signed-off-by: Laura Abbott lau...@codeaurora.org --- drivers/of/Kconfig|7 ++ drivers/of/Makefile

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-06 Thread Laura Abbott
Hi, On 2/4/2014 4:09 AM, Marek Szyprowski wrote: ... diff --git a/drivers/of/Makefile b/drivers/of/Makefile index efd05102c405..ed9660adad77 100644 --- a/drivers/of/Makefile +++ b/drivers/of/Makefile @@ -9,3 +9,4 @@ obj-$(CONFIG_OF_MDIO) += of_mdio.o obj-$(CONFIG_OF_PCI) += of_pci.o