Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1027095imw; Tue, 5 Jul 2022 02:26:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v9LeHkV1JR+o7MmHqB2Wcl9EqQaJ+I57r3C78inWXEncZPIuYy4eW9tnzr7Bx5PcPxPj9J X-Received: by 2002:a17:903:1cc:b0:16a:73fd:3c87 with SMTP id e12-20020a17090301cc00b0016a73fd3c87mr39286987plh.41.1657013201492; Tue, 05 Jul 2022 02:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657013201; cv=none; d=google.com; s=arc-20160816; b=sD2/HUwkbpNj3e0PFLKMffzTEg8riz6wXM+vhmV8h35lBS+E+pB+WJoBv8rTfaHO/5 4xjAEOM7dzlFtFqPNXqTVgVtD7wDgMY6CS/tl/Zxe6NX/b5r4GiIIH9jwHHQVp2YZv7g rAxiHD+PiUZ5mn//be23AK8E4FyqDynpGa73fkNmaVEa8Vqv1aayBXYAg4n0fDcq3YX5 YuNqCBh+oR9jNSMT3z0T92VKGZIrSm8XZktL+QITKRY6BenovAvif8A8StCUtWDEUkwW QIqkrF6xXq7oZGwT/X60Jtn/gBe3qcJpL9F8SHkCo+XSlrM+Ih8xoMnFHtVByOyZRo+R c89Q== 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:dkim-signature; bh=rNfgCc3yCLXG4f0YNRR9AvD14vQhINiZLzedPaTIf9I=; b=HX2fsu99XogUrxg4LUT5qDV6Cyt5YyiQUz0z1WHnFi5caG5PgSZJW63dOtRzWrznOy 2Vclun3C8af/4z2FI8nHyMQx6gSe7fRRe76t+Pya3Hr5IZg9qTJTGnaue5S0LKkfQboC RTQe559IwqVd0gD3UeEe6GismMLNPbK1EenMsNSL9ys7L/Saj+1qnn2S5kvKcWF3o58+ y2nZVKh4fUcU3SLI8zeQQ/n+dCLI38eve4N/PLCD/dsK33NUtPWAaCCo5Q6Knt4gGlwN r3sS7MgUPIyLfPtWRIZ81IRVHaCmyznQ1zqotH0jgQ1AxaL7iRqSG2ILPXsMk2Nj8mMU B+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="fMFzd1R/"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a63fa49000000b004111ba655bdsi33255757pgk.675.2022.07.05.02.26.29; Tue, 05 Jul 2022 02:26:41 -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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="fMFzd1R/"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbiGEJMz (ORCPT + 99 others); Tue, 5 Jul 2022 05:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiGEJMw (ORCPT ); Tue, 5 Jul 2022 05:12:52 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9C8DEE0 for ; Tue, 5 Jul 2022 02:12:52 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-31c8bb90d09so48529977b3.8 for ; Tue, 05 Jul 2022 02:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rNfgCc3yCLXG4f0YNRR9AvD14vQhINiZLzedPaTIf9I=; b=fMFzd1R/h9ptIi0eWVtG1yiS04l8AtBOczWU5B26FI7Qgq6vBDPrC4OI02valMNslC OgLA9cO2/IuX3Vkj5znR//+UIZGu1SpUc94RMkkhGhvuBHxU0f2SKEFX1T7WIeHrz36X +np+TMYdRK20KpMUTgIm3QgqDzBgQChl33XuO2WMRAcXng8wVPlQiHlw54KDDgORtkm/ C8Ge7tVo5eCwvxtdC1xEhGnBsvCKK4Eq1/LwpC9UyzH+kOaLljdyk9oem68H3Wg90fE6 mfydkzdE8Goc8xU3IyBDA+pR8u4IrctiQR5hYc3FiEA02nxjihuPVr4EbDy8EWK/Q1HA Ck6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rNfgCc3yCLXG4f0YNRR9AvD14vQhINiZLzedPaTIf9I=; b=6tmmA8k1d44IKhvMolWjGS+7M6INeZTeMEr19+r4Yxkkk4sQfy4ymdamDwdfYRkx1v M0LmOvS8yVztZUAQRRNusLX/eHoXfyDT2Nl90ZI39Hk+1X/1MlenZnj5Bu9+GcV20FTd eOoztuux+T0caG9mZlo30qh7oq5a5Ys8BgBII3C4zBjWASFGeKCXAjPytvhWG+u9AEtX mGV0olodWhsSTLhhgSjBwbgN8yzlqryRCivur+5w8RP0o9nv0mrCJYWvypAx+9383EuH 7kk3W1pVc30Gz/hMNUYsaorbLZSk8adhEW1Mz2PM9SCRdzXW8qEjHTTAx5LCl1XGKjmk sjpw== X-Gm-Message-State: AJIora+g6gH0fziM2NHtTsr1MGcuprugOZ6pDul99d+UFRFobyeYyzXz Ho2etEpPnqymfLcLw0/5C08XNnGKSgHMJ+p+gbeKSQ== X-Received: by 2002:a81:5dd5:0:b0:31b:a0f1:254e with SMTP id r204-20020a815dd5000000b0031ba0f1254emr41155573ywb.141.1657012371427; Tue, 05 Jul 2022 02:12:51 -0700 (PDT) MIME-Version: 1.0 References: <20220704112526.2492342-1-chenhuacai@loongson.cn> <20220704112526.2492342-5-chenhuacai@loongson.cn> In-Reply-To: From: Muchun Song Date: Tue, 5 Jul 2022 17:12:14 +0800 Message-ID: Subject: Re: [PATCH V4 4/4] LoongArch: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP To: Arnd Bergmann Cc: 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4:46 PM Arnd Bergmann wrote: > > 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. Alright. Make sense. > > Arnd