Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1693166imm; Tue, 10 Jul 2018 06:26:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdF41vld14fvrQrjS0D9iaYBp6ppoEMbFs3jFbn41oYCzs3pwAv9Tg+Mgh8rauJmv1KBObk X-Received: by 2002:a63:1d5e:: with SMTP id d30-v6mr21848864pgm.12.1531229174808; Tue, 10 Jul 2018 06:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531229174; cv=none; d=google.com; s=arc-20160816; b=Gz8qTg0g5BAD0eLMjkkmSfB1+teFAu4+r5LByt7M+Jv+ts5jeCWF6GIUzzh5TTaZ5J 2vFZo19+sGA6hz57wFYIZfrdc3F/oLxq0uDbxuqlqs+DceIHBqUC2N/c6Be6ADt3O8MV ME5IeQC9JGeKxx49VKOyh0UxinuBhET11Z/y5B+/21p7zR1YlvU6HMrdUzJJ6Nae4n/5 Ou8cb6m4KeRetNfNXNylCInXJ7+gTe0ykXsoe8KWH7xtDjS7gEd4f0dJpU4izOjX4TZb CIVb/BqTYu1tCa+koZY/+jw155VpwyonH0eYKnvy6xV/XDVcAt3o7+71lGH6LGSOhhxi qMAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fDUNZt6moHDVFwy47h8TPjhab73S5yiOBZT7Z2pUoLY=; b=ey6dG4c3HmVOCl+DH1VjPT4IKmJs4xTT0Kb/G2wQ6clqvyccr15YKacUlKp4YKVo/K zqUzsQOKpui08CyIRF6t3QQfRqzusF45oDShymRWR29UTHQk2RIzQrJ9C0AEHHjgkRs0 VUM8Ymuku5GknOhINHQKeTElE2C8ZAKAYMhoXhmw0f7RrmgXxlphw/e/bMoX2eZ/w+Sa PxM1+zPz+lveVahL64mjTtpMQTVPl9sOdQVARSqVxemARnUUJU7DxpvS6ocXOQaOBfQl B7HylrpMQKd/3geUWTkdqU87k5t2ZZ9TnGKuz/ETBeRSpPRwSrABAqTHrgcqdHakwx6H 728g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HyTmU+UH; 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 2-v6si16984187ple.192.2018.07.10.06.25.59; Tue, 10 Jul 2018 06:26:14 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HyTmU+UH; 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 S933283AbeGJNZR (ORCPT + 99 others); Tue, 10 Jul 2018 09:25:17 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42063 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933245AbeGJNZQ (ORCPT ); Tue, 10 Jul 2018 09:25:16 -0400 Received: by mail-lj1-f196.google.com with SMTP id 1-v6so16686874ljv.9 for ; Tue, 10 Jul 2018 06:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fDUNZt6moHDVFwy47h8TPjhab73S5yiOBZT7Z2pUoLY=; b=HyTmU+UHQLytmqNh61Ve/oyDo8aUqxTsIJhV7ROltL0wo85dWHdHK+qhbDG6SfcbBw 66QBaL9E1NJjY2rGNcO7zRvLdPHFyJC9cUOsBWo3mrm2ZeX0KUM9n/xDfKudQf8mOmf9 NwNVlVMEkD/NMpWNO6NoSgcWLGeaPuXxQVmLBRgCjC7DvvL+xkQfhtISXgZYQV2L8efR cOqWsDoeNzjARCxMrqL0SVojFhdvQEZEDMXK1ekB+khy7A5Iy413Fn65YHHyqOs5DoWW qyhKTEk5jedrY6yXGcd4d4WQCWhUgA1gmUNhdvKgoPbG1JUZRAQrtggE1sXUXBbtdgoe 0SFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fDUNZt6moHDVFwy47h8TPjhab73S5yiOBZT7Z2pUoLY=; b=aBTMediIpvVTWdEEyDQMQvbAwWAIa57KtcLcvy6xvA1m8NgxViVFHZqzDVe5xH2/rf FRi28BwUSMthx7lh80lTmlPvL0c8auL8WXQFZs8P4KChJ+OVX5LguNt4Rwe7bWqCmJht nbiQ2Xj1pPmmeuqQ53qqrjEL0CCtlnmoaYGqg9jHaIqFwLC3Gz9UEojATg/4eIRbQizf pKFVHsl5qtNZ5UDUbYW1FyjRS1LLPoIMoSPllNC64aKB4gXTcckHWXSAUNQLfNBNV1Cd GoKxYj+/vwCDWmn7I9OKBUrFmJqKIjLpxy+WKS4ZSgPx0DTQSGgJoKnfiymUJr9Tre3v ULTA== X-Gm-Message-State: APt69E2OWfnva/KBco0vyjtgI7U5oPmajxH7cxnKcKZeKmc+G8xEdGon bku8juSYHUWGtNh2P0f0DhQOMRk9pcJsckuNheY= X-Received: by 2002:a2e:7c12:: with SMTP id x18-v6mr14770071ljc.71.1531229114859; Tue, 10 Jul 2018 06:25:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:41c1:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 06:25:14 -0700 (PDT) In-Reply-To: <20180710130650.GD31318@arm.com> References: <20180706174724.44594-1-nkela@cisco.com> <20180710130650.GD31318@arm.com> From: Arnd Bergmann Date: Tue, 10 Jul 2018 15:25:14 +0200 X-Google-Sender-Auth: TuYo2GLIhpz0I9X8WK5o8ygwybk Message-ID: Subject: Re: [PATCH v3] arm64: add ARM64-specific support for flatmem To: Will Deacon Cc: Nikunj Kela , Catalin Marinas , xe-kernel@external.cisco.com, Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 3:06 PM, Will Deacon wrote: > Hi Arnd, > > On Tue, Jul 10, 2018 at 02:55:41PM +0200, Arnd Bergmann wrote: >> On Fri, Jul 6, 2018 at 7:47 PM, Nikunj Kela wrote: >> > Flatmem is useful in reducing kernel memory usage. >> > One usecase is in kdump kernel. We are able to save >> > ~14M by moving to flatmem scheme. >> > >> > Cc: xe-kernel@external.cisco.com >> > Cc: Nikunj Kela >> > Signed-off-by: Nikunj Kela >> > --- >> > arch/arm64/Kconfig | 3 +++ >> > 1 file changed, 3 insertions(+) >> > >> > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> > index 42c090c..f5b4c49 100644 >> > --- a/arch/arm64/Kconfig >> > +++ b/arch/arm64/Kconfig >> > @@ -775,6 +775,9 @@ config ARCH_SPARSEMEM_DEFAULT >> > config ARCH_SELECT_MEMORY_MODEL >> > def_bool ARCH_SPARSEMEM_ENABLE >> > >> > +config ARCH_FLATMEM_ENABLE >> > + def_bool y >> > + >> > config HAVE_ARCH_PFN_VALID >> > def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM >> > >> >> I'm getting hundreds of errors in randconfig builds with this: > > Damn, I was worried something like this might happen. Sorry! > > Does randconfig also fuzz CONFIG_EXPERT? We only added ARCH_FLATMEM_ENABLE > so that people can hand-configure crashkernels to make them small; there will > be plenty of situations where it's just going to cause more problems than it > solves, so I'd be happy hiding it behind EXPERT if it helps. Yes, randconfig also tests EXPERT and COMPILE_TEST configurations, though I don't test the !COMPILE_TEST ones myself, so you can also hide options from me by making them 'depends on !COMPILE_TEST'. > Otherwise we can probably through a 'def_bool !NUMA' at it. Yes, I was going to send a patch with that next after testing it some more. So far it's holding up. This is also what some other architectures have, so it's probably safe. Arnd