From patchwork Mon Dec 22 19:08:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 42543 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E62325BA1 for ; Mon, 22 Dec 2014 19:13:20 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf3286549wid.7 for ; Mon, 22 Dec 2014 11:13:19 -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=oMT4ZjWAzbQsqeI4uAYyGMyXpso/VfKvYNYbQgBInbU=; b=IiH8LqddmZaUMTpTm9Vq8AFEYD6W7TS1scDnTEnFTLs+r0sTeDJEQpA0/tg6z5EH4X xs4IY0yUK/6kEBQzdXkeFvlDm/LAe07C8hUdKqglyoYIEs79YA7sNa4KmwDobmHTFdC/ e9iNlHMahn4N8cKh/wVqCDi/TloIYyPknYPc5C0p1Rcu/kvmKsEE/aYk35hpedlzmWkd OPmWpjqG5N6vrwA9AknQOmnbfXBe+Lr+Szd8/0+rwP2GLyMQ0RafNQ00bEpu8h0ibQwQ 5DfDljzPjKC6s0KfCAaGqHRoU6UNr3nxoo37515foTxoweG+6wekDihIekokZ2gtoYOX x0eg== X-Gm-Message-State: ALoCoQk8cSslPbMK8pUMwhwoRw7qv7+zpXC3di5d3o3lZecLgrxtjk5IQKED+YtlGTkgnMqrN/pB X-Received: by 10.180.24.35 with SMTP id r3mr2317471wif.0.1419275599620; Mon, 22 Dec 2014 11:13:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.166 with SMTP id t6ls161837lat.38.gmail; Mon, 22 Dec 2014 11:13:19 -0800 (PST) X-Received: by 10.112.52.73 with SMTP id r9mr23007593lbo.15.1419275599453; Mon, 22 Dec 2014 11:13:19 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id r2si19295358lar.126.2014.12.22.11.13.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 11:13:19 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so4459822lab.38 for ; Mon, 22 Dec 2014 11:13:19 -0800 (PST) X-Received: by 10.152.18.135 with SMTP id w7mr10246069lad.47.1419275599291; Mon, 22 Dec 2014 11:13:19 -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 ru5csp1118940lbb; Mon, 22 Dec 2014 11:13:18 -0800 (PST) X-Received: by 10.68.193.225 with SMTP id hr1mr25975646pbc.15.1419275597604; Mon, 22 Dec 2014 11:13:17 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id m4si5101963pdb.61.2014.12.22.11.13.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Dec 2014 11:13:17 -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 1Y38Ns-0008I3-95; Mon, 22 Dec 2014 19:11:12 +0000 Received: from mail-wg0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y38MO-0006R5-B4 for linux-arm-kernel@lists.infradead.org; Mon, 22 Dec 2014 19:09:41 +0000 Received: by mail-wg0-f51.google.com with SMTP id x12so7353588wgg.38 for ; Mon, 22 Dec 2014 11:09:18 -0800 (PST) X-Received: by 10.180.187.239 with SMTP id fv15mr12576538wic.38.1419275358180; Mon, 22 Dec 2014 11:09:18 -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.14 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 11:09:17 -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 5/8] of: fdt: register physmem in early_init_dt_scan_memory() Date: Mon, 22 Dec 2014 19:08:39 +0000 Message-Id: <1419275322-29811-6-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_110940_587966_4C1B9EA6 X-CRM114-Status: UNSURE ( 9.35 ) 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 [74.125.82.51 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.51 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -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.215.51 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 This patch changes early_init_dt_scan_memory() so that all memory covered by DT memory nodes is registered in the 'physmem' memblock table if CONFIG_HAVE_MEMBLOCK_PHYS_MAP is enabled. Signed-off-by: Ard Biesheuvel --- drivers/of/fdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 510074226d57..6e59c2168536 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -894,6 +894,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, (unsigned long long)size); early_init_dt_add_memory_arch(base, size); + memblock_add_phys(base, size); } return 0;