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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5B907C433EF for ; Thu, 17 Feb 2022 12:55:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D104183B7A; Thu, 17 Feb 2022 13:55:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="KOi46I43"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C19D483B75; Thu, 17 Feb 2022 13:54:56 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 21C2883B74 for ; Thu, 17 Feb 2022 13:54:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BBA02B82196; Thu, 17 Feb 2022 12:54:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 611DDC340EC; Thu, 17 Feb 2022 12:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645102488; bh=tmj2LekiPxgI30ftBJHDIgUAF7QguJn3pf/YXHk0jYc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KOi46I43gSmoCRGWqA4esBCniIgwJxI/1udbw4+wTllaE3p4DJFOS4hzNGNfVz3t9 Hn65G2jNQWsr7Ir/b3emgby+tL5JLFoWIwzwd0Eg0xEt/oTS72/xk+gkSe6NKLFW2R 9aE5smLYUVtFD8X30CtEYhrpULYcnrdK4psurbCti5zbsGNP9kJr06dRweVMwfcZK+ hDfDeCFhpnSpQr8IsvyKH03KBsrUIq0qMWP/2sWoni9vE3Alq7onMQpUGnC94bCgQH yxrodNPWXDDV/6F0ocQQhqab8RYU+/gp0cLbiugpJPCqekgzsXayZm0p2b6BpdWLLQ C2AbLWSzYq/YQ== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Chris Packham , Stefan Roese Cc: pali@kernel.org, "u-boot@lists.denx.de" , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure Date: Thu, 17 Feb 2022 13:54:43 +0100 Message-Id: <20220217125443.4544-2-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217125443.4544-1-kabel@kernel.org> References: <20220217125443.4544-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean From: Marek BehĂșn The state of the current DDR training code for Armada 38x is such that we cannot be sure it will always train successfully - although after the last change we were yet unable to find a board that failed DDR training, from experience in the last 2 years we know that it is possible. The experience also tells us that in many cases the board fails training only sometimes, and after a reset the training is successful. Enable the new option that makes the board reset itself on DDR training failure immediately. Until now we called hang() in such a case, which meant that the board was reset by the MCU after 120 seconds. Signed-off-by: Marek BehĂșn --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index d6f70caeaf..010d69adcc 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -11,6 +11,7 @@ CONFIG_NR_DRAM_BANKS=2 CONFIG_SYS_MEMTEST_START=0x00800000 CONFIG_SYS_MEMTEST_END=0x00ffffff CONFIG_TARGET_TURRIS_OMNIA=y +CONFIG_DDR_RESET_ON_TRAINING_FAILURE=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0xF0000 CONFIG_ENV_SECT_SIZE=0x10000 -- 2.34.1