Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2496392rdh; Wed, 27 Sep 2023 04:39:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlnyhHPD0G7tdbaEcu1U2yCD+lygCULkQzXtDeMnaxQafxVFAwStf9fGBUJ7E5YfwkHq3Y X-Received: by 2002:a17:902:c408:b0:1c5:f0fd:51b5 with SMTP id k8-20020a170902c40800b001c5f0fd51b5mr2070523plk.40.1695814792571; Wed, 27 Sep 2023 04:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695814792; cv=none; d=google.com; s=arc-20160816; b=BF8rwzuO+VSXwmkqRESS31Q1EQryamz3dRhKEmAS5gVlgPh0BAh1fs4GwD1ViMCyaS SmnTSLjimsCQORUlG6UqLPxINjOmTwsxBwimv36vY4M8TNdbxk9rH4STHLOrUKe4UOyy fbNHo1WzC+rhSnsA+6vk8z2YazO4s0W1YrVPEro1ECNnKE9AO8JeKOZj9Y6yrMC2cb6G x63de+mZ2rBuSrNQWTXA61cErgeEF5RbKDaB4WcKDSNBoJ/PMw7YjJTIob8IC9GsDOBP UZbrG9f1qt752XB4wVS30dzXmuB/Hpp7aJ4AAZ3inh1eH7o5jqvcazuo014FfvbfmZcV eOZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=lgKBGHNSPs4XtFZXP2rzrV4/ir7APIOiXRK1dglU+cY=; fh=t+aSUvTkmyv7XKbADJCzT83/Ki+XJcpCtWmi+N+Baew=; b=mxthWQoWS02ThnUfzn1rSLYXKCII9FMTVzsOAh3UXX7dkSpB4wPO7gg8kM44KVWc8m 8pa7G69Z0x/jrf2hpZZKe58OAHUJ618zaqigxhd8qWdD38b764Y175SMPb63bjai/4Yt mx1NUdxaVGC1FpepafhF4XpOs2A0FzcDt4QpNL5ZSIwmsv1hDH3Zne0F7TJMv5PqVCW5 kDMbXwrUsNfVyNKAf0iM7s24XqZYDMfBogYQeYJdniZyDtWvJT216hJZ4WDfw1la0OIH vdLN8/OIeW/F8HCSxkRASC4iOx4S2kI00v4uXDPMyBM1Jyb0nSRJC2HDwnQxNppUDR+Z 6UQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PUT96mbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y16-20020a170902b49000b001b9e9edea43si7982599plr.552.2023.09.27.04.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 04:39:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PUT96mbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EFC5A801B81A; Wed, 27 Sep 2023 04:27:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231329AbjI0L1Y (ORCPT + 99 others); Wed, 27 Sep 2023 07:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231612AbjI0L1L (ORCPT ); Wed, 27 Sep 2023 07:27:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3304C10E2 for ; Wed, 27 Sep 2023 04:26:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D3D1C433C8; Wed, 27 Sep 2023 11:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695813995; bh=3/kJu0BAtwkj3xJ9fdAbiBLvvVYc2eBsWVfENf9O048=; h=Date:Subject:To:References:Cc:From:In-Reply-To:From; b=PUT96mbnyi935kDaCn6iWqoadw2bcA5kl4k5iOwiWGVd430pk0xIrzndkmBat8MT6 0kgG86LdZn0mBlaK6ESrTrJL4oEBfAmtN+6LE0S/RzPiHrbxol7GaPi7XJmmildsqY eBhXOFzT2JHo6zduNlkR7dzPza1YNVJNYB7DB0wmVK0aFOi21/xgo01VOCxRzWNATC 9Po9tWszGFN4QfmCVi7LcZjj3wx1uAMUzFDb/Kw5aXfc1Cejc/oc0Nj3D9ix7OTS08 lOFDjKx2BHGWP/mUcw+Xegt+mYMeu+CljZ6q9LBOrum31vCHoJW8oJaWD0lD6lfyMS 1zHLK7RyC+Mww== Message-ID: Date: Wed, 27 Sep 2023 13:26:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 2/8] hugetlb: restructure pool allocations Content-Language: en-US To: Mike Kravetz References: <20230925234837.86786-3-mike.kravetz@oracle.com> Cc: Anshuman Khandual , Xiongchun Duan , Barry Song <21cnbao@gmail.com>, David Rientjes , Miaohe Lin , Matthew Wilcox , linux-mm@kvack.org, Andrew Morton , Naoya Horiguchi , Joao Martins , David Hildenbrand , Michal Hocko , Oscar Salvador , linux-kernel@vger.kernel.org From: Konrad Dybcio In-Reply-To: <20230925234837.86786-3-mike.kravetz@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 04:27:57 -0700 (PDT) On 26.09.2023 01:48, Mike Kravetz wrote: > Allocation of a hugetlb page for the hugetlb pool is done by the routine > alloc_pool_huge_page. This routine will allocate contiguous pages from > a low level allocator, prep the pages for usage as a hugetlb page and > then add the resulting hugetlb page to the pool. > > In the 'prep' stage, optional vmemmap optimization is done. For > performance reasons we want to perform vmemmap optimization on multiple > hugetlb pages at once. To do this, restructure the hugetlb pool > allocation code such that vmemmap optimization can be isolated and later > batched. > > The code to allocate hugetlb pages from bootmem was also modified to > allow batching. > > No functional changes, only code restructure. > > Signed-off-by: Mike Kravetz > Reviewed-by: Muchun Song > --- Hi, looks like this patch prevents today's next from booting on at least one Qualcomm ARM64 platform. Reverting it makes the device boot again. Konrad