Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-13 Thread Tony Lindgren
* Suman Anna [150213 08:17]: > Ohad, > > On 02/12/2015 11:20 PM, Ohad Ben-Cohen wrote: > > On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna wrote: > >> My original motivation was that it would only need to be added on > >> firmwares requiring support for loading into internal memories, > >>

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-13 Thread Suman Anna
Ohad, On 02/12/2015 11:20 PM, Ohad Ben-Cohen wrote: > On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna wrote: >> My original motivation was that it would only need to be added on >> firmwares requiring support for loading into internal memories, >> otherwise, these are something left to be managed

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-13 Thread Suman Anna
Ohad, On 02/12/2015 11:20 PM, Ohad Ben-Cohen wrote: On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna s-a...@ti.com wrote: My original motivation was that it would only need to be added on firmwares requiring support for loading into internal memories, otherwise, these are something left to be

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-13 Thread Tony Lindgren
* Suman Anna s-a...@ti.com [150213 08:17]: Ohad, On 02/12/2015 11:20 PM, Ohad Ben-Cohen wrote: On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna s-a...@ti.com wrote: My original motivation was that it would only need to be added on firmwares requiring support for loading into internal

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Ohad Ben-Cohen
On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna wrote: > My original motivation was that it would only need to be added on > firmwares requiring support for loading into internal memories, > otherwise, these are something left to be managed by the software > running on the remote processor

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Suman Anna
Hi Ohad, On 02/12/2015 03:09 AM, Ohad Ben-Cohen wrote: > On Wed, Feb 11, 2015 at 10:57 PM, Tony Lindgren wrote: +static int rproc_handle_intmem(struct rproc *rproc, struct fw_rsc_intmem *rsc, + int offset, int avail) +{ >>> ... + va =

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Ohad Ben-Cohen
On Wed, Feb 11, 2015 at 10:57 PM, Tony Lindgren wrote: >> > +static int rproc_handle_intmem(struct rproc *rproc, struct fw_rsc_intmem >> > *rsc, >> > + int offset, int avail) >> > +{ >> ... >> > + va = (__force void *)ioremap_nocache(rsc->pa, rsc->len); >> >>

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Suman Anna
Hi Ohad, On 02/12/2015 03:09 AM, Ohad Ben-Cohen wrote: On Wed, Feb 11, 2015 at 10:57 PM, Tony Lindgren t...@atomide.com wrote: +static int rproc_handle_intmem(struct rproc *rproc, struct fw_rsc_intmem *rsc, + int offset, int avail) +{ ... + va = (__force

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Ohad Ben-Cohen
On Wed, Feb 11, 2015 at 10:57 PM, Tony Lindgren t...@atomide.com wrote: +static int rproc_handle_intmem(struct rproc *rproc, struct fw_rsc_intmem *rsc, + int offset, int avail) +{ ... + va = (__force void *)ioremap_nocache(rsc-pa, rsc-len); Back in

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-12 Thread Ohad Ben-Cohen
On Thu, Feb 12, 2015 at 10:54 PM, Suman Anna s-a...@ti.com wrote: My original motivation was that it would only need to be added on firmwares requiring support for loading into internal memories, otherwise, these are something left to be managed by the software running on the remote processor

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 06:18 PM, Tony Lindgren wrote: > * Suman Anna [150211 16:05]: >> On 02/11/2015 04:48 PM, Tony Lindgren wrote: >>> * Suman Anna [150211 14:32]: On 02/11/2015 02:57 PM, Tony Lindgren wrote: > * Ohad Ben-Cohen [150210 02:14]: >> Hi Suman, >> >> On Fri, Jan 9,

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Suman Anna [150211 16:05]: > On 02/11/2015 04:48 PM, Tony Lindgren wrote: > > * Suman Anna [150211 14:32]: > >> On 02/11/2015 02:57 PM, Tony Lindgren wrote: > >>> * Ohad Ben-Cohen [150210 02:14]: > Hi Suman, > > On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: > > A

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 04:48 PM, Tony Lindgren wrote: > * Suman Anna [150211 14:32]: >> On 02/11/2015 02:57 PM, Tony Lindgren wrote: >>> * Ohad Ben-Cohen [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: > A remote processor may need to load certain firmware

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Suman Anna [150211 14:32]: > On 02/11/2015 02:57 PM, Tony Lindgren wrote: > > * Ohad Ben-Cohen [150210 02:14]: > >> Hi Suman, > >> > >> On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: > >>> A remote processor may need to load certain firmware sections into > >>> internal memories (eg: RAM

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Ohad Ben-Cohen [150210 02:14]: > Hi Suman, > > On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: > > A remote processor may need to load certain firmware sections into > > internal memories (eg: RAM at L1 or L2 levels) for performance or > > other reasons. Introduce a new resource type

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 02:57 PM, Tony Lindgren wrote: > * Ohad Ben-Cohen [150210 02:14]: >> Hi Suman, >> >> On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: >>> A remote processor may need to load certain firmware sections into >>> internal memories (eg: RAM at L1 or L2 levels) for performance or >>>

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: A remote processor may need to load certain firmware sections into internal memories (eg: RAM at L1 or L2 levels) for performance or other reasons. Introduce a new

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Suman Anna s-a...@ti.com [150211 14:32]: On 02/11/2015 02:57 PM, Tony Lindgren wrote: * Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: A remote processor may need to load certain firmware sections into

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Tony Lindgren
* Suman Anna s-a...@ti.com [150211 16:05]: On 02/11/2015 04:48 PM, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [150211 14:32]: On 02/11/2015 02:57 PM, Tony Lindgren wrote: * Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 02:57 PM, Tony Lindgren wrote: * Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: A remote processor may need to load certain firmware sections into internal memories (eg: RAM at L1 or L2 levels) for

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 04:48 PM, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [150211 14:32]: On 02/11/2015 02:57 PM, Tony Lindgren wrote: * Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: A remote processor may need to

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-11 Thread Suman Anna
On 02/11/2015 06:18 PM, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [150211 16:05]: On 02/11/2015 04:48 PM, Tony Lindgren wrote: * Suman Anna s-a...@ti.com [150211 14:32]: On 02/11/2015 02:57 PM, Tony Lindgren wrote: * Ohad Ben-Cohen o...@wizery.com [150210 02:14]: Hi Suman, On Fri,

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-10 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna wrote: > A remote processor may need to load certain firmware sections into > internal memories (eg: RAM at L1 or L2 levels) for performance or > other reasons. Introduce a new resource type (RSC_INTMEM) and add > an associated handler

Re: [PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-02-10 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: A remote processor may need to load certain firmware sections into internal memories (eg: RAM at L1 or L2 levels) for performance or other reasons. Introduce a new resource type (RSC_INTMEM) and add an associated

[PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-01-09 Thread Suman Anna
A remote processor may need to load certain firmware sections into internal memories (eg: RAM at L1 or L2 levels) for performance or other reasons. Introduce a new resource type (RSC_INTMEM) and add an associated handler function to handle such memories. The handler creates a kernel mapping for

[PATCH v3 2/2] remoteproc: add support to handle internal memories

2015-01-09 Thread Suman Anna
A remote processor may need to load certain firmware sections into internal memories (eg: RAM at L1 or L2 levels) for performance or other reasons. Introduce a new resource type (RSC_INTMEM) and add an associated handler function to handle such memories. The handler creates a kernel mapping for