From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB302C433E2 for ; Wed, 15 Jul 2020 17:07:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D3BC2065E for ; Wed, 15 Jul 2020 17:07:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Osjy30kp"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Euc8fAju" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D3BC2065E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Og+t7wVkxk3JqjnZAiV55B55m+/b/61thOSUV6JYU0M=; b=Osjy30kpKjFJklvuuP3jIcKYP SvO+TMnHlL2EkUCkB1iQ5R6D6QZ453yXkifMo/absDuu7tXfchU6mS8PGa/EVcZ1/Vic3O9NvijNH MK5HbJ88VQW9ykyCPGLVUxpE1sRqzxXWcPxS5nnuUjUGbbMy4QbbHmj+UZVl8Xm+iWPjs+Qd0McmF nAnxCXQ85wvHUrMHBUnPDY4QEouMLJwSRLnvzxFke7RzBX1mAHjqcHjU7LYcF3QTCYZq9wuFCLDMk SMf3hCSP8PO9JBE5LCiGygeadxLc2WOHvtGVHJIpQPpzQPlWHluqF3o5shBhRXdv1w3karjlBwCcF +USr1f+bw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvkrH-0000XF-Tt; Wed, 15 Jul 2020 17:06:16 +0000 Received: from aserp2130.oracle.com ([141.146.126.79]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvkrB-0000Vk-5i for linux-arm-kernel@lists.infradead.org; Wed, 15 Jul 2020 17:06:10 +0000 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06FH1sGE049738; Wed, 15 Jul 2020 17:05:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=0aJpCoqDnjr2H3yULLTcmDR8DVs07rOJhh+YOn6Xk6E=; b=Euc8fAjuR8b8RtB1N8tBep927qxC8mjQG6NO1H40PJNK+MaCiyMbaZW8v1YRS8joBfc3 bK8FncQ92v/LfbaTLJ8K2LrI5nhRr7XpObGtixMz+3nNbAZTsdm0KQFmUAlqqyWDe8h2 ZwTdXjze9bz6SqPxY4TkqAOPd+7CV4ZZPnxgA8iOEb4+BCaX47W7MXSye40gxnOq8xt9 w4G5FKJqlnH7X+w4ITDwQJQulyb3kg3QN+2DhISACVOXuZMP/8VWLbezsr/PrTFwFxEN 6k2/Jlq9ZnJcRzw65tlqKY7qsCy8mXLrjk8vhzUMimL/rWXlpv0fdtx9KDcrrY7e2PzT zw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 327s65jwfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Jul 2020 17:05:39 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06FH2gpK021338; Wed, 15 Jul 2020 17:05:39 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 327qc1bkdb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jul 2020 17:05:38 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 06FH5Y7F012218; Wed, 15 Jul 2020 17:05:34 GMT Received: from [192.168.2.112] (/50.38.35.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jul 2020 10:05:34 -0700 Subject: Re: [PATCH v3] mm/hugetlb: split hugetlb_cma in nodes with memory To: "Song Bao Hua (Barry Song)" , "akpm@linux-foundation.org" References: <20200710120950.37716-1-song.bao.hua@hisilicon.com> <359ea1d0-b1fd-d09f-d28a-a44655834277@oracle.com> From: Mike Kravetz Message-ID: <39b23985-5611-5fba-4ec6-03f70593dea5@oracle.com> Date: Wed, 15 Jul 2020 10:05:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9683 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007150133 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9683 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 phishscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007150133 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200715_130609_407860_6B903C88 X-CRM114-Status: GOOD ( 19.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anshuman Khandual , Catalin Marinas , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm , "linux-mm@kvack.org" , Ingo Molnar , Borislav Petkov , Jonathan Cameron , "H.Peter Anvin" , Thomas Gleixner , Mike Rapoport , Will Deacon , Roman Gushchin , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/15/20 4:14 AM, Song Bao Hua (Barry Song) wrote: >> From: Mike Kravetz [mailto:mike.kravetz@oracle.com] >> huge_page_size(h)/1024); >> >> + if (order >= MAX_ORDER && hugetlb_cma_size) >> + hugetlb_cma_reserve(order); > > Hello, Mike, > I am not sure if it is necessarily correct as the order for gigantic pages is arch-dependent: > https://lkml.org/lkml/2020/7/1/14 > See my reply to Wil. The code to allocate gigantic pages from CMA depends on the arch independent definition of gigantic page which is 'order >= MAX_ORDER'. -- Mike Kravetz _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel