From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2941C28CBC for ; Wed, 6 May 2020 23:52:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D1D22075E for ; Wed, 6 May 2020 23:52:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FfEybLpC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="apPwHFu1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D1D22075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=j4qxVJCd2BZD5YTKIPw7qJw8/9FoXQMsoaYQqR2kfgo=; b=FfEybLpCnnqLQXViYXGw90FDHq jf7GAhnkCiSl5UQwrGHD9rbprtB3zPBMbEFh9nclBIgBuiUeMPdQz+OVgpnaqRHIiThgk1Nc4RGPn yHzDp293sfDZ+X3V/yIfx5s/YA38GaHbL4LLDJj9gp4g45Biuh3CZau5ZVVB51uQdgkr4PYZKmkob NqUWhwvJQ78XwYiKK/BrO2HiF3GJVB3B7H8+lt/UH2dzETYYCCY63IdtVHjj5+klFhn3Ss3SexC1o q+PsrJb85lX5QZvLs5fg6mWIZ2fvOIP7Y378CLwhFi2a5P+/1oc7RiEWPsFiSdNSyOPcyhpTdfQ7o yJTlePtA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWTpY-0000Vv-7R; Wed, 06 May 2020 23:52:00 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWTpA-0008VH-RV for linux-arm-kernel@lists.infradead.org; Wed, 06 May 2020 23:51:38 +0000 Received: by mail-wm1-x344.google.com with SMTP id u127so4660215wmg.1 for ; Wed, 06 May 2020 16:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L6lgwXPpMh2GtBwOjnERxrnC7AaO1OA7jICyPp9jmNs=; b=apPwHFu1P6UNTbkrrbtI543/u8/jdj8sEUqcw4VRCQcGNWrcanVwuKrxIH3yQKYLaL yUGDZTRCazWcVb5fUZjRZ2P7vtfwNAjDY6s8LEuzu0IAwBfYzmZM1s5mu/+lhnDuaASN RsX+UQTtK5JyHQppY/VH6xVcft7bkEKPKSk2+VAaPbtxtj6zJYMsPb/g+bE7fxSLxaBW OARDyCpFXVj1qxTHAS/Ec1KgGRjcyGaeSOuk6WnUrE8jJtWHO3oKcCZEoaVqRDeqlqdO HVieYTwmnC+Hr10RXk5222q1qxSC24sBBR7k7UY9uMyYaPdAOj+BMTCZcXe/zQQ4wA+f zdSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L6lgwXPpMh2GtBwOjnERxrnC7AaO1OA7jICyPp9jmNs=; b=qaATxe9Z55Lc+8Z5bJoYkM9Bh1AnryYn+Br3pScyEIsq6QFff7XAG4/Vb15CH0kDAZ e4U14I0VVHYB0iZ+ZmUnLSV6TGPhYOJC7wkUfRQ/uRIsWzPeZR3fdZ4pCYJ0SFM3Q1to heceau4waBvDul3lNJ/y62GBqUeEgdHmsQ4sJOO/iBGZkKu4QtFnWzmkbEGoyB9dnwZ7 /hqkvJGgTXZXxqRiZ0068tlrf9PvEohYByRaGmDxgKSQFYpWxPzc06V9N+Q0iSGMfW3U MGueLZbUccudDq0OTPIl8+oa99tLVMRW9hfQtHjFdNW0gfk8neTLEnODDr+ziAqTeXWr LHKQ== X-Gm-Message-State: AGi0PuaROFRLquSKCUKeyY7+5fk9C9PD9VMdzQtFiHvfrfy3bwLO/2QW lxwsmeth9B+xxWSsspsj5lEl1cfn X-Google-Smtp-Source: APiQypK2VMD1eXgHEZ9tdRtcyCXbhsFg4EUcUl9jgjtMdK4mscTZ7/kWpHqrDiPB1AVGlnnWgrDLJQ== X-Received: by 2002:a1c:44b:: with SMTP id 72mr7010886wme.58.1588809094835; Wed, 06 May 2020 16:51:34 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id b20sm3693161wme.9.2020.05.06.16.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 16:51:34 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: Allow either FLATMEM or SPARSEMEM on the multiplatform build Date: Wed, 6 May 2020 16:50:09 -0700 Message-Id: <20200506235009.25023-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200506235009.25023-1-f.fainelli@gmail.com> References: <20200506235009.25023-1-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_165136_909355_65B32EF4 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Doug Berger , Arnd Bergmann , sboyd@kernel.org, Kevin Cernekee , Mike Rapoport , rmk+kernel@armlinux.org.uk, Florian Fainelli , Gregory Fong MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Gregory Fong ARMv7 chips with LPAE can often benefit from SPARSEMEM, as portions of system memory can be located deep in the 36-bit address space. Allow FLATMEM or SPARSEMEM to be selectable at compile time; FLATMEM remains the default. This is based on Kevin's "[PATCH 3/3] ARM: Allow either FLATMEM or SPARSEMEM on the multi-v7 build" from [1] and shamelessly rips off his commit message text above. As Arnd pointed out at [2] there doesn't seem to be any reason to tie this specifically to ARMv7, so this has been changed to apply to all multiplatform kernels. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/286837.html [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/298950.html Cc: Kevin Cernekee Tested-by: Stephen Boyd Signed-off-by: Gregory Fong Signed-off-by: Doug Berger Signed-off-by: Florian Fainelli --- arch/arm/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5986277296c3..7bb5264a9c3a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -312,6 +312,8 @@ choice config ARCH_MULTIPLATFORM bool "Allow multiple platforms to be selected" depends on MMU + select ARCH_FLATMEM_ENABLE + select ARCH_SPARSEMEM_ENABLE select ARM_HAS_SG_CHAIN select ARM_PATCH_PHYS_VIRT select AUTO_ZRELADDR @@ -1515,6 +1517,9 @@ config OABI_COMPAT config ARCH_HAS_HOLES_MEMORYMODEL bool +config ARCH_FLATMEM_ENABLE + bool + config ARCH_SPARSEMEM_ENABLE bool -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel