Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3492837ybi; Tue, 2 Jul 2019 08:39:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6zmklaSStm8ueOAsKnO3LVg9RG4OwvlxYBUlCohe2QUMaDT8BIbAi+U3gBY5c4ML+UNs5 X-Received: by 2002:a63:4404:: with SMTP id r4mr30895585pga.245.1562081998781; Tue, 02 Jul 2019 08:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562081998; cv=none; d=google.com; s=arc-20160816; b=otCwRf3qIGDlcII/Wudulss6g/PMethvewL+VPWBGV4l7DxtsArW1XxPE0qlSWGgFD yHcFvBaNRi401cWBUKZo5AznP/A6gzJhTsI42BPmU4gYvfqZJ9+hhUMXpNM/X2hl1enK ARJEryMQilWFtsNZBWaVKvwIOBr5PcLDZIKM5B82/Pj2vX3fdMPVak+FiNQM4vcOUS9N aSvSOXOOjnbqd3dsbKE8noo5cqlXH/oH8llbGbrEvlPDlO6vYMoaGLczqlXspfKqe9xG ZyEdUHOmq+W8GrCJL6NhnThTkofiBSHRLUYLUzIQrIlkJXCPB52OBfVOESgwzkMdf0R7 hWZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=VbbwCKNVbaDazA/C9AKG/uIDeWLXTnnfF8JqIharbxQ=; b=gnwpyNUK7z2aUc0I/vT1dcAiq2bhsdVluVI0/BerhksmI+OgIbMoHpEov0nM7Sss0X vdSZHkXEaC/OkDe+OUsBENJZ6J7LfFaHWEjkwdt+YC1J4NUNitdEJhZHlot7GPgchf2a gVQaB8+2UWtthpTMNny+IgyU9IYnTYnfa1zKweZpYA8POpW9zopO50GZ4l2WXTHsYcf3 AE4zWaVvY/nYAUcAcRZCWt57MHykdzhD6/Vr8357pb3xlvcZiQaFYZoQAV+4hGPgokjk 7LefPU7ed2d+jQU6OYhSz9QHQYR0LV3avVUsPjVEGXvzg4LSpDNSvzsyNIJDEGiz3kLn wBiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si13428699pla.65.2019.07.02.08.39.43; Tue, 02 Jul 2019 08:39:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbfGBPin (ORCPT + 99 others); Tue, 2 Jul 2019 11:38:43 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39951 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfGBPin (ORCPT ); Tue, 2 Jul 2019 11:38:43 -0400 X-Originating-IP: 81.250.144.103 Received: from [10.30.1.20] (lneuilly-657-1-5-103.w81-250.abo.wanadoo.fr [81.250.144.103]) (Authenticated sender: alex@ghiti.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 57833E0005; Tue, 2 Jul 2019 15:38:32 +0000 (UTC) Subject: Re: [PATCH v3 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig To: Hanjun Guo , Christoph Hellwig , Mike Kravetz , Catalin Marinas , Will Deacon , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org References: <20190701175900.4034-1-alex@ghiti.fr> <20190701175900.4034-2-alex@ghiti.fr> <18144cc2-f552-b2cc-c41a-47c754de2b0d@huawei.com> From: Alexandre Ghiti Message-ID: <62390cef-2417-3b6d-970d-bddecc4ac005@ghiti.fr> Date: Tue, 2 Jul 2019 17:38:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <18144cc2-f552-b2cc-c41a-47c754de2b0d@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/19 3:27 AM, Hanjun Guo wrote: > On 2019/7/2 1:58, Alexandre Ghiti wrote: >> ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: >> move this declaration in arch/Kconfig and make those architectures >> select it. >> >> Signed-off-by: Alexandre Ghiti >> --- >> arch/Kconfig | 3 +++ >> arch/arm64/Kconfig | 4 +--- >> arch/x86/Kconfig | 4 +--- >> 3 files changed, 5 insertions(+), 6 deletions(-) >> >> diff --git a/arch/Kconfig b/arch/Kconfig >> index c47b328eada0..d2f212dc8e72 100644 >> --- a/arch/Kconfig >> +++ b/arch/Kconfig >> @@ -577,6 +577,9 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD >> config HAVE_ARCH_HUGE_VMAP >> bool >> >> +config ARCH_WANT_HUGE_PMD_SHARE >> + bool >> + >> config HAVE_ARCH_SOFT_DIRTY >> bool >> >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 697ea0510729..c862575decd3 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -71,6 +71,7 @@ config ARM64 >> select ARCH_SUPPORTS_NUMA_BALANCING >> select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT >> select ARCH_WANT_FRAME_POINTERS >> + select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) >> select ARCH_HAS_UBSAN_SANITIZE_ALL >> select ARM_AMBA >> select ARM_ARCH_TIMER >> @@ -901,9 +902,6 @@ config HW_PERF_EVENTS >> config SYS_SUPPORTS_HUGETLBFS >> def_bool y >> >> -config ARCH_WANT_HUGE_PMD_SHARE >> - def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) >> - > Reviewed-by: Hanjun Guo Thanks for catching the previous mistake again and thanks for that, Alex > > Thanks > Hanjun > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv