Re: [PATCH 16/16] debug_vm_pgtable/ppc64: Add a variant of pfn_pte/pmd

2020-08-14 Thread Anshuman Khandual
On 08/13/2020 12:07 PM, Aneesh Kumar K.V wrote: > On 8/13/20 11:00 AM, Anshuman Khandual wrote: >> >> On 08/12/2020 12:03 PM, Aneesh Kumar K.V wrote: >>> The tests do expect _PAGE_PTE bit set by different page table accessors. >>> This is not true for the kernel. Within the kernel, _PAGE_PTE bit

Re: [PATCH 16/16] debug_vm_pgtable/ppc64: Add a variant of pfn_pte/pmd

2020-08-12 Thread Aneesh Kumar K.V
On 8/13/20 11:00 AM, Anshuman Khandual wrote: On 08/12/2020 12:03 PM, Aneesh Kumar K.V wrote: The tests do expect _PAGE_PTE bit set by different page table accessors. This is not true for the kernel. Within the kernel, _PAGE_PTE bits are usually set by set_pte_at(). To make the below tests work

Re: [PATCH 16/16] debug_vm_pgtable/ppc64: Add a variant of pfn_pte/pmd

2020-08-12 Thread Anshuman Khandual
On 08/12/2020 12:03 PM, Aneesh Kumar K.V wrote: > The tests do expect _PAGE_PTE bit set by different page table accessors. > This is not true for the kernel. Within the kernel, _PAGE_PTE bits are > usually set by set_pte_at(). To make the below tests work correctly add test > specific pfn_pte/pmd

[PATCH 16/16] debug_vm_pgtable/ppc64: Add a variant of pfn_pte/pmd

2020-08-12 Thread Aneesh Kumar K.V
The tests do expect _PAGE_PTE bit set by different page table accessors. This is not true for the kernel. Within the kernel, _PAGE_PTE bits are usually set by set_pte_at(). To make the below tests work correctly add test specific pfn_pte/pmd helpers that set _PAGE_PTE bit. pte_t pte = pfn_pte(pfn,