From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 676F1C433F5 for ; Fri, 10 Sep 2021 20:48:27 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 97FB3610C9 for ; Fri, 10 Sep 2021 20:48:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 97FB3610C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D3988372F; Fri, 10 Sep 2021 22:48:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dF2NL4ol"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6420283718; Fri, 10 Sep 2021 22:48:13 +0200 (CEST) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E16F9836F1 for ; Fri, 10 Sep 2021 22:47:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-wm1-x330.google.com with SMTP id n7-20020a05600c3b8700b002f8ca941d89so2204031wms.2 for ; Fri, 10 Sep 2021 13:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H0dADwjWuBkJDypWrwjaSNi3ACfT+FfvzEiXhQUFUEg=; b=dF2NL4olyW6Kj6XLzjC7a9hmE+yhRbykzL9HXAkrEUwbTMVqLb10mLgP42eobE5Ug/ M0Owu9Q7bDEDMvVGBqWUNpy4taC5IDgh3TQWUyNuG2Gd33XOcydXR+yAFt732ISUVjyF eYsf/yJbn5REEk/GfuX/RENWmT5b7MusovzOvVtTPZRnQF78VFZv0VB2jKsCQKHYSmH9 oM9P4GzLoEUR2WtcPxFkegmcJrgrKI00az/AnI/Ebd1BtHtJGZR4QXwX9ig/XK4TruRi o/IW34y4eAO2CE4USYiR+LZF+3TBSeT6DKC2I+9IZWVLadKrzMgq6R3ByB6KvfkNAxbN soaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H0dADwjWuBkJDypWrwjaSNi3ACfT+FfvzEiXhQUFUEg=; b=V/0QI7ggwAnAn0TfruJmU3z+PswHcpvBQheGvjqHqmEE9e2SxW2w3IK1mkeMoaffxU NN27G7XjgJ0+97q+tBWU9jD8SAkLs/HHwNOkmTvxGE1w1CTFSTbg6+bqk1Qz0RpQFaju iNZzAGWcRsSGCCzHyDOCU0Fvm6swhY1EprXy33/C5VDEBFhgVYY65uuyGGeq3x5SybEZ 41mxiQVuZZqNfw/ETLHVzbJuD/Wet/X4WTBC3Y5Eo81g0TYG3rWWgoQZ07Tci9IoJu7S zoaYqAtwQalkzy569RcxXj4GF47xnmNthB2RI3O14SNFjs4wetEfMCgnXNAXUk4DBbC8 dEPQ== X-Gm-Message-State: AOAM530nDivy2BcKeyvXemNK3RqYVgrVo5U0iiAwEo7TAa9+AzR3dAOX cj4ThKkbigIn3XoewoIJcskuwHVDrMLDMQ== X-Google-Smtp-Source: ABdhPJzOGTtICQdeC9ViX1Eq1piZaIK3wulLbj8NxeXN/Gq0L1IzNxrf7bVDO0UQ/Fkj6Iu/a8mPbQ== X-Received: by 2002:a1c:7417:: with SMTP id p23mr10236938wmc.144.1631306866568; Fri, 10 Sep 2021 13:47:46 -0700 (PDT) Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz. [89.176.112.137]) by smtp.gmail.com with ESMTPSA id p11sm5195948wma.16.2021.09.10.13.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 13:47:46 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Alexey Brodkin , Angelo Dureghello , Daniel Schwierzeck , Eugeniy Paltsev , Hai Pham , Michal Simek , Simon Goldschmidt , Tom Rini , Wolfgang Denk , Ye Li Subject: [PATCH 05/12] lmb: arm: Increase LMB alignment to 16k in arch_lmb_reserve_generic() Date: Fri, 10 Sep 2021 22:47:11 +0200 Message-Id: <20210910204718.17765-5-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910204718.17765-1-marek.vasut+renesas@gmail.com> References: <20210910204718.17765-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean According to input NXP, the 4k alignment is not always sufficient. Currently iMX works around this problem by implementing board specific LMB reservation, however it is likely this could also occur on other systems. Increase the LMB reservation alignment to 16k by default. Signed-off-by: Marek Vasut Cc: Alexey Brodkin Cc: Angelo Dureghello Cc: Daniel Schwierzeck Cc: Eugeniy Paltsev Cc: Hai Pham Cc: Michal Simek Cc: Simon Goldschmidt Cc: Tom Rini Cc: Wolfgang Denk Cc: Ye Li --- V2: New patch --- arch/arm/lib/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/stack.c b/arch/arm/lib/stack.c index 52d9f15298..656084c7e5 100644 --- a/arch/arm/lib/stack.c +++ b/arch/arm/lib/stack.c @@ -45,5 +45,5 @@ static ulong get_sp(void) void arch_lmb_reserve(struct lmb *lmb) { - arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096); + arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 16384); } -- 2.33.0