From patchwork Wed Apr 11 19:26:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 133171 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp961108ljb; Wed, 11 Apr 2018 12:26:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx491GQ9MU/gKbix6oXTl6m0gZdXEPAoX309K/yUj8CRbfPa7NasKmJAoEAZ4n84bBywdGUEl X-Received: by 10.80.193.153 with SMTP id m25mr6865261edf.151.1523474812661; Wed, 11 Apr 2018 12:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523474812; cv=none; d=google.com; s=arc-20160816; b=mxY1uQbCNQqWk0vIFBSQsTgSXEedHkeGwkUGYrTR8ul/3WVJSBuJ+2b/kVBbWGgQuA oNWElab1UnSYbRjELqpNNm8Bbx7pcFvws9bSwEK5ETR5vYSi9YC3XLIKzioHNT+3iSLy 5IF2kHQx37TU8Ujfl7xsqITiILNRCV1zfWOJ8WbkrDWniQ0lkr30sZ+ehJDlehBOrCfM r5/GP+DiCMndPNpUlJ8dOgObepxLQPdUasxS3KKLwQCpjKSfgPU0oXDUCJ+M5TEu4CWB ld984C2tZWOMDZCZgMO9gyM87XTuHB1M0kuCW47sFh9Xw6PbH0dBkC4jYqHB89S9AimT fdpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=n961wTRQcJcQH1yi4UXNC/LVJEfFVdrai8L/lwwhB6E=; b=hkNwTg7W1+wHeNdP/hVAERHnhQk2Dl7SPlaMOcw6gG9kKLZvCKU83zqgxhy5NslOAE uxJRe0KnnoQq3Ik3zzU5JGD38O+5X24Mbpj6EERW2KYo+AVa0Zi4RjZbsdpvUTx/x1ph bs/YJ5FMyW3VRpZDkDqTlWrnUBKUN+Z1YT10BGnTPu9RNaI//wmbrATNAe0vh2Q7RYjq //KBc1e0Sl9KyhfF9oMSW+WTCZfsBMGfSH41Mtr+sn9+6ARzH/0ww1rUavKbDux0M25R q7n3jDO5EF1+7y2TvIWxxNcYXzvTc1RVp7SX7+Dzw8fSy4RAwxTVe6KiHR4g2JQ547Rj BNZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h14si2008739edf.540.2018.04.11.12.26.52; Wed, 11 Apr 2018 12:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: by lists.denx.de (Postfix, from userid 105) id 0A3CBC21DA2; Wed, 11 Apr 2018 19:26:46 +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=SPF_HELO_PASS, UNPARSEABLE_RELAY 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 989C0C21C2F; Wed, 11 Apr 2018 19:26:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E42CEC21C38; Wed, 11 Apr 2018 19:26:43 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lists.denx.de (Postfix) with ESMTPS id 856E5C21C2F for ; Wed, 11 Apr 2018 19:26:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id 20896260DB0 Received: by beast.luon.net (Postfix, from userid 1000) id A23C13E230E; Wed, 11 Apr 2018 21:26:40 +0200 (CEST) From: Sjoerd Simons To: Tom Rini , Faiz Abbas Date: Wed, 11 Apr 2018 21:26:40 +0200 Message-Id: <20180411192640.10380-1-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.17.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] arm: mach-omap2: Enlarge SYS_MALLOC_F_LEN 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" Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag") omap GPIO gets bound before relocation. Unfortunately due to this, on at least the beaglebone black, the pre-relocation memory pool gets exhausted before probing the serial port. This then causes u-boot to panic as CONFIG_REQUIRE_SERIAL_CONSOLE is set... Resolve this by doubling the default size of the pre-relocation malloc pool on mach-omap2. Signed-off-by: Sjoerd Simons --- arch/arm/mach-omap2/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 3bb1ecb58d..02c5a4c0b8 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -186,4 +186,7 @@ source "board/compulab/cm_t43/Kconfig" config SPL_LDSCRIPT default "arch/arm/mach-omap2/u-boot-spl.lds" +config SYS_MALLOC_F_LEN + default 0x0800 + endif