Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1212082rwn; Thu, 8 Sep 2022 15:34:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR78Kh858Z2UGEo0ZYT3/LthUGCpGyeYjuq3isWF94aqpHrL2EWvEHrTP0ar0FtPHAjpdEts X-Received: by 2002:a05:6512:1044:b0:48b:49b1:cc85 with SMTP id c4-20020a056512104400b0048b49b1cc85mr3498199lfb.57.1662676492738; Thu, 08 Sep 2022 15:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662676492; cv=none; d=google.com; s=arc-20160816; b=q/0IyJi0NPuHpONvje4Fxi+Up2+CbfeRgH87Y3Z2otqRG16wHLKWhBGNKnye5uTn6i 4/y6B3KKwnrSiqfRxuTgpcDsEMTEXMTna4vY4JHSUP0arnvaVY/eD1RtLR6hZZczwflj +wIxSf+XV9ld0QQe0Qyv4hl1MvPuIkqdGMZ0xgPlXU2vVmghWEpGh2KCkh5nI0htfU2C 39uFngg+jgeeu7dUvMemUAlo8XnF0YQfDMmmSWY1iABOZftA9RX+xOGNlyqBUzyVusq1 HTw/60rLboLrKzdaGVTr5XjBDiwf6iAPL/ORRNjKjrND0r5OqzwVPCbUhIXD3Ldce0xI Hiiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+amI4ux6Ul/3cY7mTohWVG63dQzFJ4/sPu8GYMFo6d4=; b=Kj68JN/f0UpYzB/UVH+Ss5Wlei9/gntTZhBXwNUAkuoEzjZyplYld+c+K5sN3S8tkl GKTlMGE7L/gAVr/d6mHkWXrYWX/x86+KvHFsK7dZG7kmaxDXEB84U+91aY+qNN2qi03R X8bLUUGw5WJ+scVuuln35KCm/qsRsXMlMnaeth5LG+F8WTMzWGB+XNU4NYJfKaUt5uNQ xquzbZN2wD6y9gKtSmNX0IoRknbnfwMphPrnBj7EtQ91hWl9jpDqprqZQwUSTo+K+MUT M/hZ6vEMZu9PhR4zJEemQ1a95mLXfS1IqEftqmtYs7gi5dgDzw+v5IVXWWypU8ZFfXa+ 7IIQ== 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 c5-20020a056512238500b00492c5881b70si22947lfv.496.2022.09.08.15.34.23; Thu, 08 Sep 2022 15:34:52 -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 S230274AbiIHV6U (ORCPT + 99 others); Thu, 8 Sep 2022 17:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbiIHV5d (ORCPT ); Thu, 8 Sep 2022 17:57:33 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 92F9113B552; Thu, 8 Sep 2022 14:56:18 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1oWPVQ-0007qL-00; Thu, 08 Sep 2022 23:56:16 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id A3CE5C0EC6; Thu, 8 Sep 2022 23:32:29 +0200 (CEST) Date: Thu, 8 Sep 2022 23:32:29 +0200 From: Thomas Bogendoerfer To: Alexander A Sverdlin Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mips: Select SPARSEMEM_EXTREME for CAVIUM_OCTEON_SOC Message-ID: <20220908213229.GA6322@alpha.franken.de> References: <20220906095943.60296-1-alexander.sverdlin@nokia.com> <20220906095943.60296-2-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906095943.60296-2-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,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, Sep 06, 2022 at 11:59:42AM +0200, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > Commit c46173183657 ("MIPS: Add NUMA support for Loongson-3") has increased > .bss size of the Octeon kernel from 16k to 16M. Providing the conditions > for SPARSEMEM_EXTREME avoids the waste of memory. > > Signed-off-by: Alexander Sverdlin > --- > arch/mips/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index ec21f89..79cfa1c 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -2669,7 +2669,7 @@ config ARCH_FLATMEM_ENABLE > > config ARCH_SPARSEMEM_ENABLE > bool > - select SPARSEMEM_STATIC if !SGI_IP27 > + select SPARSEMEM_STATIC if MACH_LOONGSON64 removing the statement completely gives text data bss total filename 11874896 6019382 17304160 35198438 vmlinux-sparsemem_static 11935172 6019702 526944 18481818 vmlinux for a loogsoon64 kernel. And the kernel boots and works just fine. Can you respin your patch and remove the select SPARSEMEM_STATIC ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]