From: Christoffer Dall Date: Sun, 2 Feb 2014 21:21:31 +0000 (+0100) Subject: ARM: 7950/1: mm: Fix stage-2 device memory attributes X-Git-Tag: v3.14-rc4~31^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9c5b89cf3605bbc39c6e274351ff25f0d83e6a;p=pandora-kernel.git ARM: 7950/1: mm: Fix stage-2 device memory attributes 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 comments explaining the defines while at it. Add a prot_pte_s2 field to the mem_type struct and fill out the field for device mappings accordingly. Cc: [3.9+] Acked-by: Marc Zyngier Acked-by: Catalin Marinas Signed-off-by: Christoffer Dall Signed-off-by: Russell King --- Reading git-diff-tree failed