Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-06-03 Thread Edgar E. Iglesias
On Wed, May 25, 2016 at 03:24:39PM +0100, Julien Grall wrote: > Hi Edgar, > > On 25/05/16 14:29, Edgar E. Iglesias wrote: > >On Tue, May 24, 2016 at 08:44:41PM +0100, Julien Grall wrote: > >Looking a little closer, the place where the generic list of matches and > >attributes doesn't work well is

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Julien Grall
Hi Edgar, On 25/05/16 14:29, Edgar E. Iglesias wrote: On Tue, May 24, 2016 at 08:44:41PM +0100, Julien Grall wrote: Looking a little closer, the place where the generic list of matches and attributes doesn't work well is when trying to deal with the no-memory-wc property available only in

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Edgar E. Iglesias
On Tue, May 24, 2016 at 08:44:41PM +0100, Julien Grall wrote: > Hi Edgar, > > On 23/05/2016 16:42, Edgar E. Iglesias wrote: > >On Mon, May 23, 2016 at 04:13:53PM +0100, Julien Grall wrote: > >>On 23/05/16 15:02, Edgar E. Iglesias wrote: > >>>On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Edgar E. Iglesias
On Tue, May 24, 2016 at 08:44:41PM +0100, Julien Grall wrote: > Hi Edgar, Hi Julien, > > On 23/05/2016 16:42, Edgar E. Iglesias wrote: > >On Mon, May 23, 2016 at 04:13:53PM +0100, Julien Grall wrote: > >>On 23/05/16 15:02, Edgar E. Iglesias wrote: > >>>On Mon, May 23, 2016 at 02:02:39PM +0100,

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Stefano Stabellini
On Wed, 25 May 2016, Julien Grall wrote: > Hi Stefano, > > On 25/05/16 10:43, Stefano Stabellini wrote: > > > For SRAM it would be normal memory uncached (?) when the property > > > "no-memory-wc" is not present, else TBD. > > > > > > I suspect we would have to relax more MMIOs in the future.

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Julien Grall
Hi Stefano, On 25/05/16 10:43, Stefano Stabellini wrote: For SRAM it would be normal memory uncached (?) when the property "no-memory-wc" is not present, else TBD. I suspect we would have to relax more MMIOs in the future. Rather than providing a function to map, the code is very similar

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Stefano Stabellini
On Tue, 24 May 2016, Julien Grall wrote: > On 23/05/2016 16:42, Edgar E. Iglesias wrote: > > On Mon, May 23, 2016 at 04:13:53PM +0100, Julien Grall wrote: > > > On 23/05/16 15:02, Edgar E. Iglesias wrote: > > > > On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall wrote: > > > > > (CC Wei Liu)

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-25 Thread Stefano Stabellini
On Mon, 23 May 2016, Julien Grall wrote: > Note, that XENMAPSPACE_dev_mmio has been introduced in Xen 4.7 (which is due > in a couple of weeks) and part of the stable ABI. So if it is not possible to > relax the memory attribute, it might be worth to think fixing/reverting the > hypercall for 4.7.

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-24 Thread Julien Grall
Hi Edgar, On 23/05/2016 16:42, Edgar E. Iglesias wrote: On Mon, May 23, 2016 at 04:13:53PM +0100, Julien Grall wrote: On 23/05/16 15:02, Edgar E. Iglesias wrote: On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall wrote: (CC Wei Liu) On 23/05/16 12:56, Edgar E. Iglesias wrote: On Mon,

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Edgar E. Iglesias
On Mon, May 23, 2016 at 04:13:53PM +0100, Julien Grall wrote: > Hi Edgar, > > On 23/05/16 15:02, Edgar E. Iglesias wrote: > >On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall wrote: > >>(CC Wei Liu) > >> > >>On 23/05/16 12:56, Edgar E. Iglesias wrote: > >>>On Mon, May 23, 2016 at 11:29:31AM

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Julien Grall
Hi Edgar, On 23/05/16 15:02, Edgar E. Iglesias wrote: On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall wrote: (CC Wei Liu) On 23/05/16 12:56, Edgar E. Iglesias wrote: On Mon, May 23, 2016 at 11:29:31AM +0100, Julien Grall wrote: On 20/05/16 16:51, Edgar E. Iglesias wrote: From:

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Edgar E. Iglesias
On Mon, May 23, 2016 at 02:02:39PM +0100, Julien Grall wrote: > (CC Wei Liu) > > On 23/05/16 12:56, Edgar E. Iglesias wrote: > >On Mon, May 23, 2016 at 11:29:31AM +0100, Julien Grall wrote: > >>On 20/05/16 16:51, Edgar E. Iglesias wrote: > >>>From: "Edgar E. Iglesias"

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Julien Grall
(CC Wei Liu) On 23/05/16 12:56, Edgar E. Iglesias wrote: On Mon, May 23, 2016 at 11:29:31AM +0100, Julien Grall wrote: On 20/05/16 16:51, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" This series adds support for mapping mmio-sram nodes into dom0 as MEMORY,

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Edgar E. Iglesias
On Mon, May 23, 2016 at 11:29:31AM +0100, Julien Grall wrote: > Hello Edgar, > > I have CCed a couple of people from ARM to get more input on it. Thanks Julien, > On 20/05/16 16:51, Edgar E. Iglesias wrote: > >From: "Edgar E. Iglesias" > > > >This series adds

Re: [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-23 Thread Julien Grall
Hello Edgar, I have CCed a couple of people from ARM to get more input on it. On 20/05/16 16:51, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" This series adds support for mapping mmio-sram nodes into dom0 as MEMORY, cached and with RWX perms. Can you

[Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0

2016-05-20 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" This series adds support for mapping mmio-sram nodes into dom0 as MEMORY, cached and with RWX perms. Dom0 can then choose to further restrict these mappings if needed. We only look at the outer mmio-sram region. The sub-area nodes that