Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3993725ybh; Tue, 17 Mar 2020 10:12:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu+/zBChLPee/zJAT1RNK4qx0Z0Q48vsPrfQq/aqUmD2DFzdw8TaH2B4jOM6a34ipX8fMkr X-Received: by 2002:a9d:5181:: with SMTP id y1mr195288otg.199.1584465172632; Tue, 17 Mar 2020 10:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584465172; cv=none; d=google.com; s=arc-20160816; b=porJFHT9tA7OcnkpscT+Sl0OkqTEW5LF+SS/piAjkWeHkr81zd+UqwSsSMbfi3dklI BJZf4EL9bYZid6drDGoar1Tu2o/XIc/ZGBDCRaiuJYWa/3NlFfxmyKPJJFnWaEbZCZCx TlJ75IUaGUxNpNfqzfKZQUz91HBN/3ly3iAD1WgUgSraR4STzvOim9lWRtWru5ghpt5g 8lrCZF8lxH+Ls8NyK9VZkKmBwtLTt6YxDWdsb/9LDHMENZUF6UpWGEPz/f3wzeNt6z3W BVC5K7UzXCk+TPI3msPIEadqWONTeDLX8zRZGfU46jv5Zr2FOxN9vtyXyAXPHBgdMX9P 5v5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=MUKPIBA0PDdbrvWj4pjo/RZXdu0E5DptRou2F8z9uCo=; b=buorPtTfa9Hqpv9KjlC235ETnCfNLEY+U9zlNEjpBjOD2fYDOYWdquP3ObY0gGHL2p p8zH9tfT/1PGaNK9JMzhKrUYl9FRcmPODvMWAj1KhvHelt81GTcSFvQPL5tSbSYyQMa0 OjLAvNXpkMXIX+YhGl8dv5xlzjfyh1JyNtscdvdkTbzHGdFIvNvBkxJzyZy0qy4iSC0F Sp1E1JLyZp5a0M0ssDIbun9RgPCOs17EeOxoeG9QSNj+AuC+Y6yFNip1kndK3SrZBQIl DWCq3Af9zZmMP8k3eKM6yubLD0iRXD1/daMdl60eL4vKTJ+FzFX7xHsPjYcD0NVWypiu Cmjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=e0QELHa5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si1795925oij.0.2020.03.17.10.12.34; Tue, 17 Mar 2020 10:12:52 -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=@oracle.com header.s=corp-2020-01-29 header.b=e0QELHa5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726668AbgCQRKM (ORCPT + 99 others); Tue, 17 Mar 2020 13:10:12 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52654 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgCQRKL (ORCPT ); Tue, 17 Mar 2020 13:10:11 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02HH8rSW103617; Tue, 17 Mar 2020 17:09:52 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=MUKPIBA0PDdbrvWj4pjo/RZXdu0E5DptRou2F8z9uCo=; b=e0QELHa5F5vIaddPdvy3zHozX4NFti7jKHgwf+w1aIL9JfSl6xUwcLanY87VwkB/WleD Q8kC42HPY0CRHittaWie/sal6gpWmUyFDJtKHIgNEFd8W/Yp1lTrSNC3FEMD5nxeKr+D K68XEpL2Vn4o52d9MrSIS1kfqEjHJxVLLP1T+HL7LDxMaoKJr6g+wWaedI8DWeCHdzIf +ciogrQc8nAkfa3/FotzsSWwCm96RtqUybrEii87q7TR9O7fMEtINtsNcanK4xofl10l Py08khscEwk8Xp2EFitV+TjdsdpBlF1SpD8vSRjhLxDEm1Eu43Ou69SwH1ny4T3IlLw4 Mg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2yrppr68ct-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 17:09:52 +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 02HGofcR015199; Tue, 17 Mar 2020 17:07:51 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2ys8rf9ew4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 17:07:51 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 02HH7ocw005107; Tue, 17 Mar 2020 17:07:50 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Mar 2020 10:07:50 -0700 Subject: Re: [PATCH] mm/hugetlb: Fix build failure with HUGETLB_PAGE but not HUGEBTLBFS To: Christophe Leroy , Baoquan He Cc: Andrew Morton , Nishanth Aravamudan , Nick Piggin , Adam Litke , Andi Kleen , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org References: <7e8c3a3c9a587b9cd8a2f146df32a421b961f3a2.1584432148.git.christophe.leroy@c-s.fr> <20200317082550.GA3375@MiWiFi-R3L-srv> <60117fd7-46ff-326b-34f1-0c7087111ca7@c-s.fr> From: Mike Kravetz Message-ID: Date: Tue, 17 Mar 2020 10:07:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170068 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170068 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/20 9:47 AM, Christophe Leroy wrote: > > > Le 17/03/2020 à 17:40, Mike Kravetz a écrit : >> On 3/17/20 1:43 AM, Christophe Leroy wrote: >>> >>> >>> Le 17/03/2020 à 09:25, Baoquan He a écrit : >>>> On 03/17/20 at 08:04am, Christophe Leroy wrote: >>>>> When CONFIG_HUGETLB_PAGE is set but not CONFIG_HUGETLBFS, the >>>>> following build failure is encoutered: >>>> >>>> From the definition of HUGETLB_PAGE, isn't it relying on HUGETLBFS? >>>> I could misunderstand the def_bool, please correct me if I am wrong. >>> >>> AFAIU, it means that HUGETLBFS rely on HUGETLB_PAGE, by default HUGETLB_PAGE is not selected when HUGETLBFS is not. But it is still possible for an arch to select HUGETLB_PAGE without selecting HUGETLBFS when it uses huge pages for other purpose than hugetlb file system. >>> >> >> Hi Christophe, >> >> Do you actually have a use case/example of using hugetlb pages without >> hugetlbfs? I can understand that there are some use cases which never >> use the filesystem interface. However, hugetlb support is so intertwined >> with hugetlbfs, I am thinking there would be issues trying to use them >> separately. I will look into this further. >> > > Hi Mike, > > Series https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=164620 > > And especially patch 39 to 41. > Ah, ok. You are simply using a few interfaces in the hugetlb header files. The huge pages created in your mappings are not PageHuge() pages. -- Mike Kravetz