Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp795076rwi; Thu, 27 Oct 2022 07:40:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UuQj+/6yU9eKlXNycSc0KW20FgJqWOdV6D+XoPXNFBBr4OI+54p3xvUeYIbNKKpr7pLu8 X-Received: by 2002:a17:907:980e:b0:78d:b6ea:25b3 with SMTP id ji14-20020a170907980e00b0078db6ea25b3mr42355073ejc.98.1666881621825; Thu, 27 Oct 2022 07:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666881621; cv=none; d=google.com; s=arc-20160816; b=o1+Lw1ZgYsXLuWIU1fG9JKk7f3Byg5/Or1ig0qYnNl5onl7VUl5FAu04xE1p0jwDfp Ly5Di1A2wQzD7vrSIyLtY1gQMapDrkPZjt1Xt7HRjh0S1j0BaE+BOXxhJPt++9I1eKSY 0K5TLgTWdKcwE0MRVAahFTPPRCCArWUkgy1VYT7aL4d+regkbEUXAwwcwySSSXvlwcN8 kzyl0pFf9Q/Hnlx5bQTRJ4S1D7000f6fHKdG/NdPfRaydSlDwheA0x/YGax8Esv2STmD +upBYu/trxduqiYCVICZwXesYSTnrnBERc4eXL1pOjdJ5Xm9+HKAqo7+nDkfVkkMF1Jr SXvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wJkIwYtwUypGffNw9OMXvs06WWR+71d2I07NOIfPXbI=; b=CVvRBeYPhPmCo4DmxN+9lUOGQieewsxlzVs97uM5909hrVhlwfbiOsbKnje4P+zbK8 yRk/rH50ApnTD2BXytLVXWVxZIJRt26GPibLMFzcqr41n4KaN1HX1SkCWcLnm3qCjRcQ +sekV8mtnqvhJXB23lqzgHPcz8Cwot5YwxPrqUpS3mfaapnvKi/ucsOiR2tcDbGW00j0 8BXHg44/52wQ7PDLFKOv6ZCmUe7CyNllfpAgImGI5OJkRr571nxJ67LLvU5s05QAMi/d eLV3PukTsNGaxOm/Pqez03VJlhg1+iRpL9PXNgRWc9lAhEM8GJZNDmBVmYKb2Gv0j3y2 vGYQ== 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 qf22-20020a1709077f1600b007316843d58bsi1791237ejc.925.2022.10.27.07.39.56; Thu, 27 Oct 2022 07:40:21 -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 S235124AbiJ0M5g (ORCPT + 99 others); Thu, 27 Oct 2022 08:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235156AbiJ0M5c (ORCPT ); Thu, 27 Oct 2022 08:57:32 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99DF9172B74; Thu, 27 Oct 2022 05:57:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 21F8FCE2684; Thu, 27 Oct 2022 12:57:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61B56C433C1; Thu, 27 Oct 2022 12:57:23 +0000 (UTC) From: Huacai Chen To: Arnd Bergmann , Huacai Chen , Thomas Bogendoerfer , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Catalin Marinas , Will Deacon , Dinh Nguyen Cc: loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , Andrew Morton , linux-mm@kvack.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Feiyang Chen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Huacai Chen Subject: [PATCH V14 4/4] LoongArch: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP Date: Thu, 27 Oct 2022 20:52:53 +0800 Message-Id: <20221027125253.3458989-5-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221027125253.3458989-1-chenhuacai@loongson.cn> References: <20221027125253.3458989-1-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 From: Feiyang Chen The feature of minimizing overhead of struct page associated with each HugeTLB page is implemented on x86_64. However, the infrastructure of this feature is already there, so just select ARCH_WANT_HUGETLB_PAGE_ OPTIMIZE_VMEMMAP is enough to enable this feature for LoongArch. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Feiyang Chen Signed-off-by: Huacai Chen --- arch/loongarch/Kconfig | 1 + 1 files changed, 1 insertions(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 6f7fa0c0ca08..0a6ef613124c 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -52,6 +52,7 @@ config LOONGARCH select ARCH_USE_QUEUED_RWLOCKS select ARCH_USE_QUEUED_SPINLOCKS select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT + select ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANTS_NO_INSTR select BUILDTIME_TABLE_SORT -- 2.31.1