Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1908320imm; Thu, 11 Oct 2018 01:40:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV61DGc8PCRMTU0fOU/HpxlhwovqNQ8Daqoi7fIufdiO3yFgJ15WKMZveiauGMzH/4HXO/PG2 X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr630805plj.121.1539247201582; Thu, 11 Oct 2018 01:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539247201; cv=none; d=google.com; s=arc-20160816; b=kAkK0I26BEJvrAHY/vU3Tkr6UG3ir9mBcWKASZceRPqplYFPuQzIpgrSCD+EPJyxDx Rf49t4+yF+vWZSNNOvL0Jb4W8ycazHu3Zd5ErBwxLwy4Fy2hk9OPva9866UjOl6ck5lS 87jfzQGzewTsFMEy1SrCJEZ5Oj/pZPxz08o8oYBCW5JX2hNeBcQxHsHDdb5DyfLFT+2T kvl13AoNWpagYNBQy1Dv1dKwNKcjK/c+misoXVbz213EihQCnaHfZIAeK8ZwMNvq1fFb uhqD1GJBffiiiSA5UbIalZ4+a97+sJeOFQaZ3KPRzmnJuPXKPN3WY/G1nNcgDbBX8Jze +IHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=01WX93wgyiwnLNpq4HsiYe5Hp/fghDwKSyyAXQyo5W0=; b=SdKZxOiaHG7NduL43XGkVESGHVktYPNAHpINEms4ANkahu7kBIB/c2zIzSqdLkKgZB rdn8ZuK804sbscq+ZsQPgE/n/9XBXBv99d02JlRInU13ZeFYdOtcLV3WKWzHl36q8zET la2zCaSo81sIC5clJL0d0MqvDwivSqSE6sMQxTMqK4O3zSb5cLtfu6xxsA62DSovp6Ll tj+nlXoOYragO1sCBwp0ptR0NLHKZ9XSaJay15RS4t8/m7h2oReeoNqLbK12fq49uZtY bFBn/RVOGxJtOZhdAn/MH8pH/woNshRpBNLRPjfc6mfaUWvsFHkBqrNgGeXKEyIRSinI CCLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=AV0quuhf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9-v6si27720409pfi.179.2018.10.11.01.39.47; Thu, 11 Oct 2018 01:40:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=AV0quuhf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbeJKPh1 (ORCPT + 99 others); Thu, 11 Oct 2018 11:37:27 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43369 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbeJKPh0 (ORCPT ); Thu, 11 Oct 2018 11:37:26 -0400 Received: by mail-pg1-f193.google.com with SMTP id 80-v6so3791564pgh.10 for ; Thu, 11 Oct 2018 01:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=01WX93wgyiwnLNpq4HsiYe5Hp/fghDwKSyyAXQyo5W0=; b=AV0quuhfo89lhGys6MundcE6OzdsSwbXRx/6P8WuZllQe2dn1whNdBgueE37/ZZXvh Yro5ZzKHLihsfKJpZ1myXlvYyjIAtcoZNyDnTTXttMTCXjaNxsJa9rD/FfYP90SQIxih 5AsdorjnvipNHPGOScQ0mtRoyi08cRObTrX5yY9EBn1QxaDw0nSwfbk+FSVzwb3YHCQ7 pfXNNMiNvD67+XS0vAirAAyQ6c1/mjj8QN23sQtkggS+SJOXDjxIcB8UqHuO8O2siMPu JeawBF5W6kLQg1cI9OTIDr+uNtSyqJR29/8Jf3tATxNimdldEvzxT9wFa6bkUCt/h11Y pW0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=01WX93wgyiwnLNpq4HsiYe5Hp/fghDwKSyyAXQyo5W0=; b=PoLrkarTwwd19QmFPnuqCHlcIf1Sn9JPBhZDMbw559mWCN7rIhqwsTMutrAzdr1yVy FT5LYOcWY47+k1s8Lsp4td/Rhg3uFJ1U4R7+DbGfpkYMi2Hw0XqAqLuvHkjYQ21p9Xoz i6sjhA6PzCtOpfmwyW7Ja17V3y6/QJ8yGgM0zTy9yi1WrVCFFQJCDv867fL0eqR/eYp+ FtD1UpqOE3mxCqjm41uVAtjabnbpIAQdCEGODnP+ymVHZ/McHRsriDOto4BKg7jgq9A8 Q+b5DrWj+yO/7zxBqh73O5GIxqzgt+eXH6AT8UDLia81Rs+20XJ8MG0vhjIAXlnmAE8z v5WA== X-Gm-Message-State: ABuFfoiHgf8748Xgj26x7oNP4Q0gjEiTiZZzD5i6b3pXIFNtUEndBliY CSDT0KiK35JfpXO0IK8q5Qi7Jg== X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr569258pfj.152.1539245477157; Thu, 11 Oct 2018 01:11:17 -0700 (PDT) Received: from kshutemo-mobl1.localdomain ([134.134.139.82]) by smtp.gmail.com with ESMTPSA id z15-v6sm32686777pfn.170.2018.10.11.01.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 01:11:15 -0700 (PDT) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 9F3EC30002F; Thu, 11 Oct 2018 11:11:11 +0300 (+03) Date: Thu, 11 Oct 2018 11:11:11 +0300 From: "Kirill A. Shutemov" To: Joel Fernandes , g@kshutemo-mobl1 Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@android.com, minchan@google.com, hughd@google.com, lokeshgidra@google.com, Andrew Morton , Greg Kroah-Hartman , Kate Stewart , Philippe Ombredanne , Thomas Gleixner Subject: Re: [PATCH] mm: Speed up mremap on large regions Message-ID: <20181011081111.mfbhuantvxmkd33p@kshutemo-mobl1> References: <20181009201400.168705-1-joel@joelfernandes.org> <20181009220222.26nzajhpsbt7syvv@kshutemo-mobl1> <20181009230447.GA17911@joelaf.mtv.corp.google.com> <20181010100011.6jqjvgeslrvvyhr3@kshutemo-mobl1> <20181011004618.GA237677@joelaf.mtv.corp.google.com> <20181011051419.2rkfbooqc3auk5ji@kshutemo-mobl1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181011051419.2rkfbooqc3auk5ji@kshutemo-mobl1> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 11, 2018 at 08:14:19AM +0300, Kirill A. Shutemov wrote: > On Wed, Oct 10, 2018 at 05:46:18PM -0700, Joel Fernandes wrote: > > diff --git a/arch/powerpc/include/asm/book3s/64/pgalloc.h b/arch/powerpc/include/asm/book3s/64/pgalloc.h > > index 391ed2c3b697..8a33f2044923 100644 > > --- a/arch/powerpc/include/asm/book3s/64/pgalloc.h > > +++ b/arch/powerpc/include/asm/book3s/64/pgalloc.h > > @@ -192,14 +192,12 @@ static inline pgtable_t pmd_pgtable(pmd_t pmd) > > return (pgtable_t)pmd_page_vaddr(pmd); > > } > > > > -static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, > > - unsigned long address) > > +static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) > > { > > return (pte_t *)pte_fragment_alloc(mm, address, 1); > > } > > This is obviously broken. I've checked pte_fragment_alloc() and it doesn't use the address too. We need to modify it too. -- Kirill A. Shutemov