Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-28 Thread Christoffer Dall
On Mon, Jan 27, 2014 at 05:21:16PM +, Catalin Marinas wrote: On Mon, Jan 27, 2014 at 05:02:25PM +, Marc Zyngier wrote: On 27/01/14 16:57, Catalin Marinas wrote: On Mon, Jan 27, 2014 at 11:16:57AM +, Marc Zyngier wrote: On 24/01/14 23:37, Christoffer Dall wrote: On Sat, Jan

Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-27 Thread Marc Zyngier
On 24/01/14 23:37, Christoffer Dall wrote: On Sat, Jan 04, 2014 at 08:27:23AM -0800, Christoffer Dall wrote: The stage-2 memory attributes are distinct from the Hyp memory attributes and the Stage-1 memory attributes. We were using the stage-1 memory attributes for stage-2 mappings causing

Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-27 Thread Catalin Marinas
On Mon, Jan 27, 2014 at 11:16:57AM +, Marc Zyngier wrote: On 24/01/14 23:37, Christoffer Dall wrote: On Sat, Jan 04, 2014 at 08:27:23AM -0800, Christoffer Dall wrote: --- a/arch/arm/include/asm/pgtable-3level.h +++ b/arch/arm/include/asm/pgtable-3level.h @@ -120,13 +120,19 @@ /*

Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-27 Thread Marc Zyngier
On 27/01/14 16:57, Catalin Marinas wrote: On Mon, Jan 27, 2014 at 11:16:57AM +, Marc Zyngier wrote: On 24/01/14 23:37, Christoffer Dall wrote: On Sat, Jan 04, 2014 at 08:27:23AM -0800, Christoffer Dall wrote: --- a/arch/arm/include/asm/pgtable-3level.h +++

Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-27 Thread Catalin Marinas
On Mon, Jan 27, 2014 at 05:02:25PM +, Marc Zyngier wrote: On 27/01/14 16:57, Catalin Marinas wrote: On Mon, Jan 27, 2014 at 11:16:57AM +, Marc Zyngier wrote: On 24/01/14 23:37, Christoffer Dall wrote: On Sat, Jan 04, 2014 at 08:27:23AM -0800, Christoffer Dall wrote: ---

Re: [PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-24 Thread Christoffer Dall
On Sat, Jan 04, 2014 at 08:27:23AM -0800, Christoffer Dall wrote: The stage-2 memory attributes are distinct from the Hyp memory attributes and the Stage-1 memory attributes. We were using the stage-1 memory attributes for stage-2 mappings causing device mappings to be mapped as normal

[PATCH v2] ARM: mm: Fix stage-2 device memory attributes

2014-01-04 Thread Christoffer Dall
The stage-2 memory attributes are distinct from the Hyp memory attributes and the Stage-1 memory attributes. We were using the stage-1 memory attributes for stage-2 mappings causing device mappings to be mapped as normal memory. Add the S2 equivalent defines for memory attributes and fix the