Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp999522imw; Tue, 5 Jul 2022 01:55:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uW4mqmgT8YqmyQ0Y9LF9fFjsDgLvX8yqSg86GcPHFyh7/OPe6FeWmOMRSxizpFDuu49Iq9 X-Received: by 2002:a05:6402:2711:b0:437:7404:2229 with SMTP id y17-20020a056402271100b0043774042229mr44443410edd.413.1657011355396; Tue, 05 Jul 2022 01:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657011355; cv=none; d=google.com; s=arc-20160816; b=Xd/eMMx+dVIrkWYe/RYeNlBUOCwYQJc0yxEKtH9jEzNLW0QNqNR9UWIjmmEaJ1Y1dv 3qc5hv/MjOPPe+T1Kgcn+8nkm1dZRPDb8t6wMe8YQTMgleeqS54qWFh8p4tTVSZwtRO9 68v7N5b9OFf+XQBjvtx2mA3NwRYFUyd0U98mb7ULLwui3N/Qo8/NigGZy3oFVfTWbXJ9 Vbjeog6XNAk2x/x1GZthD+JNhlF5veizCrqVdH08XOxAomx+TvKa7s7PR+2x2DPxMS78 7l6u/2iZr6Wfz36MPPRN9GeeKQCNs5quD8fPhATnxT+EqtPhxM5MpvGvXZV7MNqnkwxQ s9Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=XDkGtSCJOIJ++e4Eh8kGyLYhRU1Lp+qMGy0RfAXFmbQ=; b=dBqUuufogiPOJs1/R2wRGqeoenYb97ncIGS77ctjDZoqWGg3VQEPNFCIFbK7FYz+qN +oYUf/xOxcHgeYaZkKUyzB73J833VdKVOrqz4d15LA1cEGwIt7rlowXKsbL2ZYqisjzn ireJN9gS6kW3Eg8l3URi/TOK/ZxnHwiookox8Cnjo6VpvkdQkfax77QGLW/ZYozzeRzW I1lz5S3l1eccScx33EX9vGNs/N3zKis57Vi9pdgSFKL17r2gJeqwT5MIGNFdkDPVBrQS RxkApz/ueWc1hdQ7HWZi0ZlIL7oYJk170TD29EYSEinDHqUl4TyZZIyzcMmPcp6IKAOu SJEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id yw22-20020a170907245600b00702f7cc84b3si21673283ejb.47.2022.07.05.01.55.30; Tue, 05 Jul 2022 01:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229473AbiGEIp2 (ORCPT + 99 others); Tue, 5 Jul 2022 04:45:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiGEIp1 (ORCPT ); Tue, 5 Jul 2022 04:45:27 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22C0DDECC; Tue, 5 Jul 2022 01:45:25 -0700 (PDT) Received: from mail-yw1-f173.google.com ([209.85.128.173]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MXop2-1o7QHA1EQ0-00YCeN; Tue, 05 Jul 2022 10:45:24 +0200 Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-31caffa4a45so30156327b3.3; Tue, 05 Jul 2022 01:45:23 -0700 (PDT) X-Gm-Message-State: AJIora/XzEhenTRMGdha5lqfxogTSxdsC9Wy6l+vIEFkj8dsdRcJOSVs IESEEuRtm+5skir372T2QVApA6x9TjdsiZO8Olo= X-Received: by 2002:a81:230c:0:b0:31b:f368:d0b0 with SMTP id j12-20020a81230c000000b0031bf368d0b0mr38196589ywj.249.1657010722935; Tue, 05 Jul 2022 01:45:22 -0700 (PDT) MIME-Version: 1.0 References: <20220704112526.2492342-1-chenhuacai@loongson.cn> <20220704112526.2492342-5-chenhuacai@loongson.cn> In-Reply-To: From: Arnd Bergmann Date: Tue, 5 Jul 2022 10:45:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V4 4/4] LoongArch: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP To: Muchun Song Cc: Arnd Bergmann , Huacai Chen , Huacai Chen , Thomas Bogendoerfer , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Catalin Marinas , Will Deacon , loongarch@lists.linux.dev, linux-arch , Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , Andrew Morton , Linux-MM , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List , Linux ARM , Feiyang Chen Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:EnsaWfygFsYED2VEMER1GCpT36IPqbLGUyAeHSH10vaMeYbtZlj QcJ7HQfrOoDhUV1Bn3CS1BJImiGSfPwXmnfFUKJ6eVxMyOj4rGLjt7/mFLogTsy0hWsEXw7 n2QkDSIW3xl44L7ZBM/D9IsRJ9+2o0tPjE7469tgCKMH73wCUCa9WiDwE1ToaXrAe0+X3TT aYGeL/IyO2Y3IRC1ZWkjw== X-UI-Out-Filterresults: notjunk:1;V03:K0:wwcPxKF5Bpc=:OO7AZYaHclQTKf+Nw0trsX AaJb7BHZuSa2Ffz+bowEUm8X9nlc2JK5FWE50PO69tdZM7/Lf17nl5+3KeltRfYKK0b+7b/kh cNYEtr6/8df0QwYZz9PIu5bxhTJnf2I8yZjS13rxlSyh5XCbZ1RA5zokxs9ayV//TEeQljmTj 8JTIgmaZZ1WQJnSQ3D0p+2oPj03EGX7q/qf4rCk3AW7S0XYi1hjdamD4E+/O3R4BmQj9hhttW rd+RzVbLFHBlH3yUYoTPVHvHsvcAvlp2eDowjcq7EqGKU1eXSd/Bdl/fPRrECkANLRHKyK4sT Ox9C1Q84JE5iyWn4iFEl3EDog2V8YTyS0qHuvXkqYdLovl15wxh+Jv97Ms0wDfY+z1HcQeIoq SZxaSHRYD8zRPLpEFMU4Vbn4yiIVLImonshHgqraQG0XHK+iTbqs36e19/ExE6qWl6KN+MzGr hEC0J1851AdemC/tkuqrboVCsdZg8TdfYIxB5qAxdKOHe2eEaSfM+k28YldblQfp1CRdXX8Dj /kMzi8KI0AWhtirl1GI4FdvYVme5NFQPw2lrPkjPG4kA1ymxkeZuO7QrPPA5N/llbNm0/x9GZ eXKYlsgEtsnoT8PGgpFif0qlVvc6O8GfnNlRYXZ43YlVVffcQyM2I3/rLJR+loYAw4CfjBavo rfvHxZXwnnhSA5H/TLjouwYSP6XRkWKwjGKnuaKtTwN1e5uDs+LISLsMfJuoIqY8zMO/kFLwY 9GmRkmqNCa9rh5vez8s2wGYF8Vqjcf5uHPYNpQbpkRHalTqtmpo+w7SUuNZLtanIbdwFx+zNF GoteDXKrgO5WritMLcPvD/9eFNf046fVop/2aSbO81ZDn5Ha4jLOgmnwnGUla4+DQpDXf3n+C oNiva/UCXFcXypKQp0+9ir41TwVbDth78z50pi60E= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 5, 2022 at 10:38 AM Muchun Song wrote: > On Tue, Jul 5, 2022 at 4:06 PM Arnd Bergmann wrote: > > On Tue, Jul 5, 2022 at 9:51 AM Muchun Song wrote: > > How about including the static key header in the scope of > CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP? That helps a little, but it means we still pay for it on x86 and arm64, which are the most common architectures. Arnd