From patchwork Thu Apr 12 16:09:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 133301 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1839681ljb; Thu, 12 Apr 2018 09:10:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/DamiKeViZj6uGeMltpLnxUW5VKIrs/tj3JjMH+uk3HPycbmTaNJNQcOOEHPjrFSxbEvOX X-Received: by 10.80.174.142 with SMTP id e14mr15967426edd.201.1523549408097; Thu, 12 Apr 2018 09:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523549408; cv=none; d=google.com; s=arc-20160816; b=s+3X3xi4WKy3IfOLWafDQmdHdFUnCLlAKeXrtPXrDWNPCFXRJ0n8oNo8L0F9bm248v iOihrYVU3cFCqu92bc9egHihPbhy7XemQ19NTN/QI0QMmm3OGrNzgSu2iA4oZWg4qEYI Klbv2GPkII/EYVxVFd3hZoq0IWuF7gt8jFCMkIwM5fRBilBZGVhsjpxWwhmOGsZXeVyG vGqjS+TVZE/U8VIsXl/KMicwuGpLznKDg5FVy6ucq96fkTLKe8T63wWoALOBQmB/a256 bUoGXq0dzFwDJtHE7gPYhgMCrmxUHHiQZaGoHnC9XLqLJA+tuHJj1q6Wp44mJa31FOdU c0Pg== 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=yGlkiVZvM2JOsDQq/xm6Yd0tayFPoeg1gvERKpXh604=; b=qtzmebI9poIB/eN8eDUW29fLVXJCfSjlN4pjSvJpplwGy/SENf+SR1iarpcI+S1lXZ H8yKg2xEP7o3IQeTu3NoOupLkIxuxCukKW0LC8a6i4/IRIzOZeYcL+HXqLRGuO/Cve/H ybYkc2v5M/6QlLcEuGimRJErl+DV4sNyoLrjy68mnbInX9AYPOktFbvs59sCSr0tG5Cp /nb6GlxiWtyff+amErk3+vMBrCOvCtkDuNec4v5iJBcrSL7ucYscXVFUtRdS6rZErF6T 8iD73xPITW6A1A8JCbbQZA2r5TtrzREaOW++pI9U5H/gZUqyv1Pyo2voaC6Ya4pWgtMn LWoQ== 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 f16si587619edj.199.2018.04.12.09.10.07; Thu, 12 Apr 2018 09:10:08 -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 A5B21C21DB5; Thu, 12 Apr 2018 16:10:05 +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 D0611C21C38; Thu, 12 Apr 2018 16:10:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 67669C21C38; Thu, 12 Apr 2018 16:10:02 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lists.denx.de (Postfix) with ESMTPS id 001EBC21C2C for ; Thu, 12 Apr 2018 16:10:01 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id 72F8B274F56 Received: by beast.luon.net (Postfix, from userid 1000) id 191F33E230E; Thu, 12 Apr 2018 18:09:59 +0200 (CEST) From: Sjoerd Simons To: Tom Rini , Faiz Abbas Date: Thu, 12 Apr 2018 18:09:58 +0200 Message-Id: <20180412160959.28996-1-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.17.0 Cc: Heinrich Schuchardt , u-boot@lists.denx.de, Michal Simek , Andre Przywara , Jagan Teki Subject: [U-Boot] [PATCH v2] Kconfig: Enlarge default SYS_MALLOC_F_LEN for AM33XX 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 resizing the default size of the pre-relocation malloc pool for AM335X platforms. Signed-off-by: Sjoerd Simons --- Changes in v2: - Set the default in the toplevel kConfig file rather then the omap2plus one Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/Kconfig b/Kconfig index 6670913799..55dddc844d 100644 --- a/Kconfig +++ b/Kconfig @@ -131,6 +131,7 @@ config SYS_MALLOC_F config SYS_MALLOC_F_LEN hex "Size of malloc() pool before relocation" depends on SYS_MALLOC_F + default 0x1000 if AM33XX default 0x400 help Before relocation, memory is very limited on many platforms. Still,