Re: [PATCH] arm64/mm: Simplify protection flag creation for kernel huge mappings

2019-06-04 Thread Catalin Marinas
On Mon, May 27, 2019 at 09:28:15AM +0530, Anshuman Khandual wrote: > Even though they have got the same value, PMD_TYPE_SECT and PUD_TYPE_SECT > get used for kernel huge mappings. But before that first the table bit gets > cleared using leaf level PTE_TABLE_BIT. Though functionally they are same, >

[PATCH] arm64/mm: Simplify protection flag creation for kernel huge mappings

2019-05-26 Thread Anshuman Khandual
Even though they have got the same value, PMD_TYPE_SECT and PUD_TYPE_SECT get used for kernel huge mappings. But before that first the table bit gets cleared using leaf level PTE_TABLE_BIT. Though functionally they are same, we should use page table level specific macros to be consistent as per the