From: Aneesh Kumar K.V Date: Fri, 29 Apr 2016 13:26:20 +0000 (+1000) Subject: powerpc/mm: Update pte filter for radix X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4dfb88ca9b66690d21030ccacc1cca73db90655e;p=deliverable%2Flinux.git powerpc/mm: Update pte filter for radix Signed-off-by: Aneesh Kumar K.V Acked-by: Balbir Singh Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c index db277b6d8e8b..88a307504b5a 100644 --- a/arch/powerpc/mm/pgtable.c +++ b/arch/powerpc/mm/pgtable.c @@ -82,6 +82,9 @@ static struct page *maybe_pte_to_page(pte_t pte) static pte_t set_pte_filter(pte_t pte) { + if (radix_enabled()) + return pte; + pte = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS); if (pte_looks_normal(pte) && !(cpu_has_feature(CPU_FTR_COHERENT_ICACHE) || cpu_has_feature(CPU_FTR_NOEXECUTE))) {