Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-25 Thread Steve Capper
On 25 February 2016 at 16:01, Kirill A. Shutemov wrote: > On Thu, Feb 25, 2016 at 03:49:33PM +0000, Steve Capper wrote: >> On 23 February 2016 at 18:47, Will Deacon wrote: >> > [adding Steve, since he worked on THP for 32-bit ARM] >> >> Apologies for my late reply.

Re: [BUG] random kernel crashes after THP rework on s390 (maybe also on PowerPC and ARM)

2016-02-25 Thread Steve Capper
On 23 February 2016 at 18:47, Will Deacon wrote: > [adding Steve, since he worked on THP for 32-bit ARM] Apologies for my late reply... > > On Tue, Feb 23, 2016 at 07:19:07PM +0100, Gerald Schaefer wrote: >> On Tue, 23 Feb 2016 13:32:21 +0300 >> "Kirill A. Shutemov" wrote: >> > The theory is th

Re: [PATCH V4 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-29 Thread Steve Capper
On Wed, Oct 29, 2014 at 01:49:44PM +0530, Aneesh Kumar K.V wrote: > Update generic gup implementation with powerpc specific details. > On powerpc at pmd level we can have hugepte, normal pmd pointer > or a pointer to the hugepage directory. > > Signed-off-by: Aneesh Kumar K.V

Re: [PATCH V3 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-28 Thread Steve Capper
On Mon, Oct 27, 2014 at 06:32:41PM -0700, Andrew Morton wrote: > On Tue, 28 Oct 2014 12:20:29 +1100 Michael Ellerman > wrote: > > > On Mon, 2014-10-27 at 16:06 -0700, Andrew Morton wrote: > > > On Sat, 25 Oct 2014 16:14:19 +0530 "Aneesh Kumar K.V" > > > wrote: > > > > > > > Update generic gup

Re: [PATCH V3 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-28 Thread Steve Capper
if (pgd_none(*pgdp)) > + if (pgd_none(pgd)) > break; > - else if (!gup_pud_range(pgdp, addr, next, write, pages, &nr)) > + if (unlikely(pgd_huge(pgd))) { > + if (!gup_huge_pte(__pte(pgd_val(pgd)

Re: [PATCH V2 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-24 Thread Steve Capper
On 24 October 2014 00:40, Benjamin Herrenschmidt wrote: > On Thu, 2014-10-23 at 18:40 -0400, David Miller wrote: >> Hey guys, was looking over the generic GUP while working on a sparc64 >> issue and I noticed that you guys do speculative page gets, and after >> talking with Johannes Weiner (CC:'d)

Re: [PATCH V2 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-17 Thread Steve Capper
t; mm/gup.c | 113 > +++ > 4 files changed, 84 insertions(+), 59 deletions(-) > Hi Aneesh, Thanks for coding this up. I've tested this for arm (Arndale board) and arm64 (Juno); it builds without any issues and passes my futex on THP tail

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Steve Capper
On Thu, Oct 16, 2014 at 08:48:20PM +0530, Aneesh Kumar K.V wrote: > Steve Capper writes: > > > On Wed, Oct 15, 2014 at 10:04:47PM +0530, Aneesh Kumar K.V wrote: > >> Update generic gup implementation with powerpc specific details. > >> On powerpc at pmd level w

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Steve Capper
. Cheers, -- Steve From 2fb7b0308f0aca94c50611257ba82d656abb0768 Mon Sep 17 00:00:00 2001 From: Steve Capper Date: Thu, 16 Oct 2014 09:09:48 +0100 Subject: [PATCH] Fixup for Update generic gup implementation The patch: mm: Update generic gup implementation to handle hugepage directory will no