Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4695780ybb; Tue, 14 Apr 2020 12:17:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIiqLHm9u76Cv6z0fvsRUV62cL900lRriAVqgkWGJUs01xFugMJFxnMHknh5wG354aExGel X-Received: by 2002:a05:6402:3103:: with SMTP id dc3mr18787352edb.145.1586891843817; Tue, 14 Apr 2020 12:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586891843; cv=none; d=google.com; s=arc-20160816; b=rmQduOtNRTy96ydKRvQ9qoQon99ttYY/CHXUezO4uDmhdIOD0p+qXjzKLF5I9TQwzw A6QRrbHsvh8tPJHx2GPA02mCk7W0xmy2S4FmuA/E0r+ehxnR+Zp4ACGlkd0L9UV2h0Jy X42VwnMOWN1/GwMNje9/KnynR0qGslZrV9BOIHOIcUxCs9fO9w5hOyi5oaQR+z7qWMb1 wUYEN66OUEdb0Oe5rFC5rQ7L4HCeBx8OPOvr/qcZsfjVrnvBCbtMACc9VuOvYYyVpv0+ uOabWyMdBtYj6izycga3ogo+yEs6dDF0pi6ivJAx6YwtMYJHjWRVFgm1Vv0/07QqMDa7 nu1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PXr19U1fgLFA690aiYcKrrCMpq73umlTXiDnSKGqGOU=; b=mXVYrseIPW46Uebh/KM9WtFhvMguQhF90uc4ZNNjSWqdoBTmMggLdSls5wRQ9MV0g4 DIOF4M+lzKHHivDjYQXPosDovyApW1BO+kH9Fs7dGNNi7r0wWIA8QTN7F3mf19lsG1VG vaMAlnjDN2va05detfzeUwWGQ9ef7mXF/lik5HwZBHX4hPPjItCaRTSPvqU6edk9hvU8 my5qnf/80QMGGYMLSANsPkFIwTjI1WBCtmbaKHHc7RL95ZVk5VkNDKWZ+qSIEVvKgotd 7lBmFyj4aMw/GIqEOWieC+JC4VpGL3pN1EZs8qsRxMYbWFtZzP1zczW9ZGaeezwylvR0 EwYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AS59FWW5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si8852424ejb.235.2020.04.14.12.16.45; Tue, 14 Apr 2020 12:17:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AS59FWW5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730117AbgDMNlO (ORCPT + 99 others); Mon, 13 Apr 2020 09:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730085AbgDMNlN (ORCPT ); Mon, 13 Apr 2020 09:41:13 -0400 X-Greylist: delayed 378 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 13 Apr 2020 06:41:08 PDT Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42B6C0A3BDC; Mon, 13 Apr 2020 06:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PXr19U1fgLFA690aiYcKrrCMpq73umlTXiDnSKGqGOU=; b=AS59FWW5J2xkZJ9kAYmjKnECFC BLSjvKBPwhifmVm0b5v4PfawQRVu5DP0tQGTKPn6KCVJMt7KdvBxQpzRQnHyk4LAWKvUfkYN+RLcV n/pjOAShKf8BL2G3umFK2CB5KD4whLLIBC3Tw8s+tBTw8ia9togBAWZhVArgb67NY36Lsv3wSNc7H PwUWigJp4ffAivNapErEQqgf9qRfC0XGFRp5sSkQkw0J0y3Ou64R3DRZ3kgJuUanyLiHXv6t9uvpB RYquPuIThmO9pQiFXNaeVJAe5rkXt9G2Xe8fCsiX0tRh/cMK+w3C4nXGQ+lewhZRyZBD7oybQW222 Mtlbo1Hg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jNzKk-0001yI-VC; Mon, 13 Apr 2020 13:41:06 +0000 Date: Mon, 13 Apr 2020 06:41:06 -0700 From: Matthew Wilcox To: Nicholas Piggin Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings Message-ID: <20200413134106.GN21484@bombadil.infradead.org> References: <20200413125303.423864-1-npiggin@gmail.com> <20200413125303.423864-5-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200413125303.423864-5-npiggin@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 13, 2020 at 10:53:03PM +1000, Nicholas Piggin wrote: > +static int vmap_pages_range_noflush(unsigned long start, unsigned long end, > + pgprot_t prot, struct page **pages, > + unsigned int page_shift) > +{ > + if (page_shift == PAGE_SIZE) { ... I think you meant 'page_shift == PAGE_SHIFT' Overall I like this series, although it's a bit biased towards CPUs which have page sizes which match PMD/PUD sizes. It doesn't offer the possibility of using 64kB page sizes on ARM, for example. But it's a step in the right direction.