From patchwork Wed Sep 11 08:52:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1160820 X-Patchwork-Delegate: monstr@monstr.eu 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=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="TWvtK3nJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Swdz0cYZz9s00 for ; Wed, 11 Sep 2019 18:52:55 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D94E5C21DD3; Wed, 11 Sep 2019 08:52:45 +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=2.5 required=5.0 tests=DRUGS_MUSCLE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 28C72C21C6A; Wed, 11 Sep 2019 08:52:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 626B4C21C6A; Wed, 11 Sep 2019 08:52:43 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 1B426C21C29 for ; Wed, 11 Sep 2019 08:52:43 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id k6so11395660wrn.11 for ; Wed, 11 Sep 2019 01:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=4S17/3WaGFbMSUfzi6JxThBGzGDeEw4JNDoxgkGtNBM=; b=TWvtK3nJRhnXQoUB1ueZi+6RiqPx/vG4fwhB4rRMtSie80Qs+aGxCFdEzMQZRsSOrC fLKYPMJkr8JsGKS3uIGcND7ax8bn3QauKbXPDgaoOgfCPUfiglh/Niicmm4mS/2LGwa/ MRLSepzyFSjWtQ74vXueJfUpdgqwr1t6DNW42dhylUNQ/tklCIUNa3t5eMEW76yaJhgy UsBWYVGHCSPAqb8FraUI3qXNAaq6czY6iA9cUKy0e0JMtTwd7OF4V2myHCUv80KqdWGo gjUIBpfuDhJjv3uBnLqzYMlUyhLsfVD8C1bGYXSyDZ0XcCXBfrO6Dh0WFHmomkrGDbRK rLlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=4S17/3WaGFbMSUfzi6JxThBGzGDeEw4JNDoxgkGtNBM=; b=X/07Os5ipSXw0VvgWfYGfL14wc2I9qSpmzJKPBbVjE2zeGxZyZGPxaYDRyvCkcWV7t npJ0cGpBJefMQ9jdOnXjXm81VvEC1KsVohVuQ8gH1XZYFLXp/Q1cmpjcil7ROMVix6BF hHHLJU44oMimLKYBNHbm9zclDGFk+yk8JEiGKGS/0h+KBsDId74ozrvyZ1cpW1o+COlS CZdMF+wX3WYVDB0RHNqatMuFCTZnJmltnwGqoZFNH/8DAFPZPWQrK5w+Qs/22dcwvO/+ RK8pzkY36sCdEi3w2AP5qiXZ//jrJ+MtLHCWeIhOYeTPIie1yLKBmtN3RClIgInnQ0KQ ZmLg== X-Gm-Message-State: APjAAAV0thZzGGGmwrtgQRgiWZGvManWZmsA/vYGsfLuO4Cdx0mcyx83 heAi/zsTaFx7HFOoXFnK61wwD1fMHV8foA== X-Google-Smtp-Source: APXvYqwSNkAprHMUsjd3t+vHNTCEaRoivkoS90El4+jQ8ju/2KmrK4eGVn+FWkNn7WkOmFS3NQLlAw== X-Received: by 2002:adf:dfc2:: with SMTP id q2mr31940539wrn.307.1568191962571; Wed, 11 Sep 2019 01:52:42 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id f143sm3245839wme.40.2019.09.11.01.52.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 01:52:42 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Date: Wed, 11 Sep 2019 10:52:40 +0200 Message-Id: <2ca554a2340a555ed97384abbf1a8ac6efea5db9.1568191958.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.17.1 Subject: [U-Boot] [PATCH] arm64: versal: Fix for OCM overwriting issue 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" From: Ashok Reddy Soma This patch reduces the console buffer size from 2048 to 1024, thus fixes OCM overwriting issue. Differences are in bss section as is shown from output: xilinx_versal_mini: all -2056 bss -2048 text -8 u-boot: add: 0/0, grow: 0/-3 bytes: 0/-2056 (-2056) function old new delta cli_simple_run_command 340 332 -8 static.lastcommand 2049 1025 -1024 console_buffer 2049 1025 -1024 Better would be to use PPU RAM but this change is also aligned with changes done in ZynqMP mini configurations. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- include/configs/xilinx_versal_mini.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/xilinx_versal_mini.h b/include/configs/xilinx_versal_mini.h index 4b3691b40733..2195bf0e1064 100644 --- a/include/configs/xilinx_versal_mini.h +++ b/include/configs/xilinx_versal_mini.h @@ -29,4 +29,7 @@ #undef CONFIG_BOOTP_BOOTFILESIZE #undef CONFIG_BOOTP_MAY_FAIL +#undef CONFIG_SYS_CBSIZE +#define CONFIG_SYS_CBSIZE 1024 + #endif /* __CONFIG_VERSAL_MINI_H */