From patchwork Mon Dec 22 19:08:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 42541 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D155225BA1 for ; Mon, 22 Dec 2014 19:11:49 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf3295861wib.2 for ; Mon, 22 Dec 2014 11:11:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=OdaPTPiivjc3+5xI6bbKXdtqZg3h8ngN0pxf2Wvrvns=; b=b94ZLoxzdFTfNTK1g7CoLEfoC+IyT7QzGYu2evROuoRej7ia8pbo8K7NOm4S5xlGiG DxlZvIYKRKsy7EvPQJVx2iYtLdv83I4TPrs4wGZNpSibIHxIESTQ/uZerrnG6Ft3XG2X YYvKGONMtZJz1POwYyMcBmzpwA47wr1x+ZOSV4439BKJtQD5Ic8/gyCi//clznL8Gbdi OrPAdqWRmP75JRZP/WTQn/Twc0yyrHaG6xihf1gF80U8Kgj5cNQFFbIq2E2grQh3W99M mgSCLpZVpsAbNGgo89lwUYLbJqjQkMIC7RpTAE0z4WMtWyK3vojgagwBuLpo4Q+Das0S Fn3Q== X-Gm-Message-State: ALoCoQl00k9LKrS1Upwt1BV8r1XmboK6b/Nw0vE4SeNqAv7FtYBTNocq0Zcw9xL/vZ+Eyo8P6nje X-Received: by 10.180.108.101 with SMTP id hj5mr2318283wib.3.1419275508683; Mon, 22 Dec 2014 11:11:48 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.132 with SMTP id n4ls1158522lae.57.gmail; Mon, 22 Dec 2014 11:11:48 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr23610181laz.71.1419275508523; Mon, 22 Dec 2014 11:11:48 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id jq17si19342842lab.78.2014.12.22.11.11.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 11:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so4440602lbv.12 for ; Mon, 22 Dec 2014 11:11:48 -0800 (PST) X-Received: by 10.152.197.5 with SMTP id iq5mr23462319lac.6.1419275508405; Mon, 22 Dec 2014 11:11:48 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1118563lbb; Mon, 22 Dec 2014 11:11:47 -0800 (PST) X-Received: by 10.66.222.42 with SMTP id qj10mr38055146pac.47.1419275502047; Mon, 22 Dec 2014 11:11:42 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id fk7si11506979pab.32.2014.12.22.11.11.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Dec 2014 11:11:42 -0800 (PST) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y38Mq-0006e8-CS; Mon, 22 Dec 2014 19:10:08 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y38MI-0006Pw-Vh for linux-arm-kernel@lists.infradead.org; Mon, 22 Dec 2014 19:09:35 +0000 Received: by mail-wi0-f177.google.com with SMTP id l15so8845816wiw.16 for ; Mon, 22 Dec 2014 11:09:09 -0800 (PST) X-Received: by 10.180.228.108 with SMTP id sh12mr11160560wic.55.1419275348961; Mon, 22 Dec 2014 11:09:08 -0800 (PST) Received: from ards-macbook-pro.local ([41.248.55.245]) by mx.google.com with ESMTPSA id t6sm24758726wjf.49.2014.12.22.11.09.03 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 11:09:08 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, leif.lindholm@linaro.org, roy.franz@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, matt.fleming@intel.com, bp@alien8.de, dyoung@redhat.com, msalter@redhat.com, grant.likely@linaro.org Subject: [PATCH 3/8] memblock: add physmem to memblock_dump_all() output Date: Mon, 22 Dec 2014 19:08:37 +0000 Message-Id: <1419275322-29811-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1419275322-29811-1-git-send-email-ard.biesheuvel@linaro.org> References: <1419275322-29811-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141222_110935_193312_381626D6 X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.177 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 If CONFIG_HAVE_MEMBLOCK_PHYS_MAP is set, there is a third memblock map called 'physmem'. Add it to the output of memblock_dump_all(). Signed-off-by: Ard Biesheuvel --- mm/memblock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/memblock.c b/mm/memblock.c index 252b77bdf65e..c27353beb260 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1522,6 +1522,9 @@ void __init_memblock __memblock_dump_all(void) memblock_dump(&memblock.memory, "memory"); memblock_dump(&memblock.reserved, "reserved"); +#ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP + memblock_dump(&memblock.physmem, "physmem"); +#endif } void __init memblock_allow_resize(void)