[PATCHv2] powerpc: Define and use PPC64_ELF_ABI_v2

2016-06-04 Thread Naveen N. Rao
From: Michael Ellerman We're approaching 20 locations where we need to check for ELF ABI v2. That's fine, except the logic is a bit awkward, because we have to check that _CALL_ELF is defined and then what its value is. So check it once in asm/types.h and define PPC64_ELF_ABI_v2 when ELF ABI v2

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Which files are responsible for the early boot phase in the commit powerpc-4.7-1? Perhaps the problem is there. - Christian Sent from my iPhone > On 04 Jun 2016, at 17:13, Christian Zigotzky wrote: > > Aneesh, > > It's from the Nemo patch. I patch the kernel 4.7 with our Nemo patch. [1] > >

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, It's from the Nemo patch. I patch the kernel 4.7 with our Nemo patch. [1] Cheers, Christian [1] http://www.xenosoft.de/nemo_4.7-1.patch On 04 June 2016 at 4:46 PM, Aneesh Kumar K.V wrote: Which kernel is that ? For upstream I have at that line 729 hose->pc

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, Shall I bisect the kernel from the powerpc git? git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/powerpc/linux https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/log/ Shall I start with the following commit? https://git.kernel.org/cgit/linux/kernel/git/

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Aneesh Kumar K.V
Christian Zigotzky writes: > Hi All, > > I compiled the latest git version of kernel 4.7 with all PowerPC > commits. Maybe the latest commit powerpc-4.7-2 solved the boot issues. > Our latest Nemo patch 4.7-1 works without any problems with the latest > git version. instead of using powerpc-

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Aneesh Kumar K.V
Christian Zigotzky writes: > Aneesh, > > Could you please send me only your patch for the Power ISA 3.0 (Power9) > Radix Tree MMU? You have done the most modifications for the kernel 4.7. > If the kernel boots with your modifications then I have to look to the > other few modifications. > > Th

[PATCH v3 3/3] mm/mmu_gather: Track page size with mmu gather and force flush if page size change

2016-06-04 Thread Aneesh Kumar K.V
This allows arch which need to do special handing with respect to different page size when flushing tlb to implement the same in mmu gather Signed-off-by: Aneesh Kumar K.V --- arch/arm/include/asm/tlb.h | 12 arch/ia64/include/asm/tlb.h | 12 arch/s390/include/asm/tlb.

[PATCH v3 2/3] mm: Change the interface for __tlb_remove_page

2016-06-04 Thread Aneesh Kumar K.V
This update the generic and arch specific implementation to return true if we need to do a tlb flush. That means if a __tlb_remove_page indicate a flush is needed, the page we try to remove need to be tracked and added again after the flush. We need to track it because we have already update the pt

[PATCH v3 1/3] mm/hugetlb: Simplify hugetlb unmap

2016-06-04 Thread Aneesh Kumar K.V
For hugetlb like THP (and unlike regular page), we do tlb flush after dropping ptl. Because of the above, we don't need to track force_flush like we do now. Instead we can simply call tlb_remove_page() which will do the flush if needed. No functionality change in this patch. Signed-off-by: Aneesh

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Hi All, I compiled the latest git version of kernel 4.7 with all PowerPC commits. Maybe the latest commit powerpc-4.7-2 solved the boot issues. Our latest Nemo patch 4.7-1 works without any problems with the latest git version. I got the following error message: arch/powerpc/kernel/pci-comm

Re: [PATCH] powerpc: Define and use PPC_ELF_ABI_v2

2016-06-04 Thread Naveen N. Rao
On 2016/04/28 07:38PM, Michael Ellerman wrote: > We're approaching 20 locations where we need to check for ELF ABI v2. > That's fine, except the logic is a bit awkward, because we have to check > that _CALL_ELF is defined and then what its value is. > > So check it once in asm/types.h and define P

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, Could you please send me only your patch for the Power ISA 3.0 (Power9) Radix Tree MMU? You have done the most modifications for the kernel 4.7. If the kernel boots with your modifications then I have to look to the other few modifications. Thanks in advance, Christian On 04 June 2

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Hi All, The commit powerpc-4.7-2 [2] was released yesterday. There is a conflict in my local kernel git directory if I use git pull because I have reverted the commit powerpc-4.7-1. [1] The commit powerpc-4.7-2 [2] needs the commit powerpc-4.7-1. [1] I created a new local kernel git director