Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3038739pxb; Sun, 28 Feb 2021 23:09:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBbH4c7aHSNUUYaKRe2UZrW7+bZrhFYmcO51FEoLCaQo4OTttPSRW08lIav3hHrWxoN/C8 X-Received: by 2002:a17:906:f0c3:: with SMTP id dk3mr14421881ejb.540.1614582564415; Sun, 28 Feb 2021 23:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614582564; cv=none; d=google.com; s=arc-20160816; b=x8NYMNLq6IDYgDXwK/RO/94SaTW0+7DoNIkTK3ntXgMN7z+fYOmtM1G/BNnUO37aix z6Nt/X0eN7ZYjyqya98OrL3ro12d2OrZFCIe2msuOKgoxXrV45f/6nGmcgQvV3H/42cT NslM6ZBtczQ9gPWkTOowferIcvN6/bvbbh6Bdmbhf2vj4w8ECsT/Nv7rhjnr3X9N51/E PuekLG9G8oXz59X+mpg/aa/Iez2s4/aPG40J6k31aiE80nS2pt6pm9AftdZLaD6cyVcV RhbJJ6pL/dC06ZYE98a+QcbVRTf+EloO1Zv18YOuKqNfMFDbB97blRPtKLlbLYuWCJ90 b/uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=kYlvbYV1bmo+d1USJifhzN+3yD1idx8vzgH53uhE30Q=; b=LIKraF41ECmzH6z9MlWSTKgieWMp3jh/gglXKyxtQif7NN6si+aD7UEJeaNCWqmOgn tg8yALr9a5MM9n8cARXm+F9dpkzibfYxoCMiMitcfkQapeGgbL12uD9YvENmuNCTpsw4 4gJShrssGyXaaNgv/aX4A6Qa7Off0zH3XTtLqqLqSv0DTWIny+Kzhq/hnniDkF6z2TVq O8D6DBRzUJBr+/iDUwOgoYoDoCvB7wS1DgKTvYw535wvvRrSS2vdAglgnPFy3XJkE++P PtElwi2G2Xji9EM0PSTB1/LonMsNiIUJDHjWqfv04SjUlPZps8MAyVi623w2fL+0FgeK PXYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: 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 g19si11110235ejf.710.2021.02.28.23.09.02; Sun, 28 Feb 2021 23:09:24 -0800 (PST) Received-SPF: pass (google.com: 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; spf=pass (google.com: 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 S232305AbhCAHFr (ORCPT + 99 others); Mon, 1 Mar 2021 02:05:47 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12959 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbhCAHBT (ORCPT ); Mon, 1 Mar 2021 02:01:19 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Dprgc5gKwzjSjx; Mon, 1 Mar 2021 14:58:04 +0800 (CST) Received: from DESKTOP-TMVL5KK.china.huawei.com (10.174.187.128) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Mon, 1 Mar 2021 14:59:20 +0800 From: Yanan Wang To: , , CC: Paolo Bonzini , Ben Gardon , "Sean Christopherson" , Vitaly Kuznetsov , Andrew Jones , Peter Xu , Marc Zyngier , Ingo Molnar , Adrian Hunter , Jiri Olsa , "Arnaldo Carvalho de Melo" , Arnd Bergmann , Michael Kerrisk , Thomas Gleixner , , , , Yanan Wang Subject: [RFC PATCH v3 1/8] tools headers: sync headers of asm-generic/hugetlb_encode.h Date: Mon, 1 Mar 2021 14:59:09 +0800 Message-ID: <20210301065916.11484-2-wangyanan55@huawei.com> X-Mailer: git-send-email 2.8.4.windows.1 In-Reply-To: <20210301065916.11484-1-wangyanan55@huawei.com> References: <20210301065916.11484-1-wangyanan55@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.187.128] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch syncs contents of tools/include/asm-generic/hugetlb_encode.h and include/uapi/asm-generic/hugetlb_encode.h. Arch powerpc supports 16KB hugepages and ARM64 supports 32MB/512MB hugepages. The corresponding mmap flags have already been added in include/uapi/asm-generic/hugetlb_encode.h, but not tools/include/asm-generic/hugetlb_encode.h. Cc: Ingo Molnar Cc: Adrian Hunter Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Yanan Wang --- tools/include/asm-generic/hugetlb_encode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/include/asm-generic/hugetlb_encode.h b/tools/include/asm-generic/hugetlb_encode.h index e4732d3c2998..4f3d5aaa11f5 100644 --- a/tools/include/asm-generic/hugetlb_encode.h +++ b/tools/include/asm-generic/hugetlb_encode.h @@ -20,13 +20,16 @@ #define HUGETLB_FLAG_ENCODE_SHIFT 26 #define HUGETLB_FLAG_ENCODE_MASK 0x3f +#define HUGETLB_FLAG_ENCODE_16KB (14 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_64KB (16 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_512KB (19 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_1MB (20 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_2MB (21 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_8MB (23 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_16MB (24 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_32MB (25 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_256MB (28 << HUGETLB_FLAG_ENCODE_SHIFT) +#define HUGETLB_FLAG_ENCODE_512MB (29 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_1GB (30 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_2GB (31 << HUGETLB_FLAG_ENCODE_SHIFT) #define HUGETLB_FLAG_ENCODE_16GB (34 << HUGETLB_FLAG_ENCODE_SHIFT) -- 2.23.0