From patchwork Sat Feb 20 01:13:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 62447 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp106730lbl; Fri, 19 Feb 2016 17:16:59 -0800 (PST) X-Received: by 10.67.14.138 with SMTP id fg10mr22323019pad.145.1455931016756; Fri, 19 Feb 2016 17:16:56 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id m81si19881778pfi.201.2016.02.19.17.16.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 17:16:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com 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 1aWw9G-0004I6-17; Sat, 20 Feb 2016 01:15:50 +0000 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aWw7O-0001oB-Md for linux-arm-kernel@lists.infradead.org; Sat, 20 Feb 2016 01:13:56 +0000 Received: by mail-pf0-x22c.google.com with SMTP id c10so61680396pfc.2 for ; Fri, 19 Feb 2016 17:13:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/V0OAHUmGlYuNh/g8HlvZglj5P9FBnM7e77KGRilayo=; b=CIKlSNf4gVM0DHAbILWIteYFR7HkOBCnrsBh1MWS3xnFBVm3iZdEJRveoWs+VwuV2O fCFhbDA/EQGJA1o9ho2j7XVqS9UiI9/eEtWhEXn0XJIoEVlbO2XvpWe6TbZhTeHMQn3w K1B3pGuc/PBY/GkMGMmvbpsDx0KyL9JYfgyhifwFLLblnJZQi+aXSx9XTIFIrplCNjun wpdsSfcaZYR9Mc53b9R2xc8xHcOx0ED0e3D2jY237c7TJFu7QnP/igQgEq0DrKYfgGFD iKO83MopJdJhxnQQAs9CqdrjguNcihpKI0sZikx9zXs9G4dKt3Vpk6USL9wuL1R7Kqw0 JQ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/V0OAHUmGlYuNh/g8HlvZglj5P9FBnM7e77KGRilayo=; b=P4ghfYxTbvrIPY/oNAFHUVDEkowXkuoQbs5tq4C/naddgn6uO56Aii69UQFxXDjItP GiPAFvWgZef1zdOo6DrujypABWoEgtuRpPAaVb1LihF5d2ffjJi6n93elIE05PzZRYSL hMhV8mOOyo1iuJ12/2K+AWWcWjQho2LGdUD/VkWG0Nzfue8FSVoVEJnF5QvKYluVRnIe +JJH5ver+Z8bOmG3GbUAXJnVaHsOda1fI6ZLzAXskB3dXlTG7mLA4tRVX6L3SETUZQ4c WtsXORoZNxHu3187DOADkmmzrLxQ53lokZBSXhg/zgOW5KSKEyizJ5alCRVKQ1ED9geE 4N3Q== X-Gm-Message-State: AG10YORgPANFiRZYuX5gCoIN7MBSFMGzonfyOsTk7nQtn7f+ElmHtFK71u6AhwhKKynXgg== X-Received: by 10.98.17.129 with SMTP id 1mr22289625pfr.30.1455930813000; Fri, 19 Feb 2016 17:13:33 -0800 (PST) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id n78sm20355469pfb.53.2016.02.19.17.13.27 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Feb 2016 17:13:31 -0800 (PST) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id u1K1DR8k005422; Fri, 19 Feb 2016 17:13:27 -0800 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u1K1DRrr005421; Fri, 19 Feb 2016 17:13:27 -0800 From: David Daney To: Will Deacon , linux-arm-kernel@lists.infradead.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, Ard Biesheuvel , Frank Rowand , Grant Likely , Catalin Marinas , Matt Fleming , linux-efi@vger.kernel.org, Ganapatrao Kulkarni , Robert Richter Subject: [PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch() Date: Fri, 19 Feb 2016 17:13:11 -0800 Message-Id: <1455930799-5371-3-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1455930799-5371-1-git-send-email-ddaney.cavm@gmail.com> References: <1455930799-5371-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160219_171354_971089_97810686 X-CRM114-Status: GOOD ( 10.43 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:22c listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ddaney.cavm[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org From: Ard Biesheuvel Override the __weak early_init_dt_add_memory_arch() with our own version. We need this in a subsequent patch to make the handling of the memory nodes conditional on whether we are booting via UEFI or not. Note that for now, all that our version does is invoke the generic implementation. Signed-off-by: Ard Biesheuvel Signed-off-by: Robert Richter Signed-off-by: David Daney --- arch/arm64/mm/init.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.8.3.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index f3b061e..208c1d3 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -380,3 +380,8 @@ static int __init keepinitrd_setup(char *__unused) __setup("keepinitrd", keepinitrd_setup); #endif + +void __init early_init_dt_add_memory_arch(u64 base, u64 size) +{ + early_init_dt_add_memory(base, size); +}