From patchwork Fri Aug 10 11:54:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 956223 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JnnIZGb9"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41n3TP1mTQz9s7Q for ; Fri, 10 Aug 2018 21:55:05 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E1C8BC21DEC; Fri, 10 Aug 2018 11:54:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 93AABC21C27; Fri, 10 Aug 2018 11:54:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A7250C21C27; Fri, 10 Aug 2018 11:54:53 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id 6DDC7C21BE5 for ; Fri, 10 Aug 2018 11:54:51 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id r1-v6so4291173pgp.11 for ; Fri, 10 Aug 2018 04:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Ag9m6mJqvCK/n5IvuUACK8p98Z6E9M3tV6Akmr7rYCs=; b=JnnIZGb92BQ7PpoBZRiKuIds/RmjfJzI6Aqs+xjaTNCFU2heTsLLgEjxOzQ3u2sUjU Y0nKC1z17Kb6Id86MP5lOHk8KcdHNS1ep2uF3P09rzg0SPq5xWVQ4hqHu5aVod+OAZe4 ui8YnXy9CxcT8LpIB7SEjIj4c64bbyUTFfxm8Wl9JlIh55yLqKQhvnUML+SK9JIJZ1vO d/q6mTOOY6h6tIrARB0VAhysqRttogd0JEGrj2CXWPEkYrvFaJ685/nw4zBeXjRKDY0E z50FEWuqwKJgXIzL1nnC2tIGlkFIM0k00QZmsTQKzaZOBNVZ88sNynpQ6a0eOMyXLskw Jd2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ag9m6mJqvCK/n5IvuUACK8p98Z6E9M3tV6Akmr7rYCs=; b=Q+ld+CX+nQhDDDij3NgqZexQe2lid0yLkNlwdss0cv8HLQ2HKq0Q+nHHlPXND9z1qX A9sDuoKCjw6dDxSOv7MQimpTG84qYwacM46C77Pnp3Fhj2r+KuPFH4zGNDikxomz3JsP k7q/tRR6/5e1xP3NwTEty+O+2eaQLSEniyOIXaZ1+ss3Kl3GsQZ2LLdllr/mofhwffga sxWHAxL7WUoI448ypq8904laVsvUCo+bdKi4PDuoTsznWl00cLFTEHUnxkNEJVWLpgho MAOL2caJ2Ikt7AazXZwIGo9txBiWtmtkzn7rFOJZBOXJmZacxKYCK/t9MrceyxY2sZM0 ChiA== X-Gm-Message-State: AOUpUlGUSIE/r6n252QzgfigrCamfPX+TIVqZsWFZGPwYIqeVFKcQkMx HH6zb+93AXtFRGbnHR7/JNg= X-Google-Smtp-Source: AA+uWPyHLCBBOH/QADAqp96gz7Tpk+XW+tRolt9SPdUfvuvY58Y1ef8sTSbULAP9GwGGPfM2lAcu9A== X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr6779250pfh.120.1533902089987; Fri, 10 Aug 2018 04:54:49 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.193]) by smtp.gmail.com with ESMTPSA id y27-v6sm25484351pff.181.2018.08.10.04.54.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 04:54:49 -0700 (PDT) From: Anand Moon To: Simon Glass , Ramon Fried , Lukasz Majewski , Minkyu Kang , u-boot@lists.denx.de Date: Fri, 10 Aug 2018 11:54:14 +0000 Message-Id: <20180810115414.2650-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [U-Boot] [PATCH] common: fdt: set the value of MEMORY_BANKS_MAX to 8 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" set the value of MEMORY_BANKS_MAX to 8. Odroid-XU4 fails to boot with following message fdt_fixup_memory_banks: num banks 8 exceeds hardcoded limit 4. Recompile with higher MEMORY_BANKS_MAX? ERROR: arch-specific fdt fixup failed - must RESET the board to recover. Fixes: commit 2a1f4f1758b5 (Revert "fdt_support: Use CONFIG_NR_DRAM_BANKS if defined") CC: Ramon Fried CC: Simon Glass Signed-off-by: Anand Moon --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 34d2bd59c4..ad87f31ab3 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -409,7 +409,7 @@ static int fdt_pack_reg(const void *fdt, void *buf, u64 *address, u64 *size, return p - (char *)buf; } -#define MEMORY_BANKS_MAX 4 +#define MEMORY_BANKS_MAX 8 int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) { int err, nodeoffset;