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 909B5C433F5 for ; Thu, 17 Feb 2022 15:39:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9DD683C62; Thu, 17 Feb 2022 16:39:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645112386; bh=UAYz57imoCyQe4c03oAs/+Tk3gylSq4qCR9FslAtESc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AydhaOybbNGzf8zHoGASTk5itdIGkJ44+CNpGexy/Uh2clB8Bc4IXXMOUYnHsdttX oFyo6t9keZZgYfLc+ht8NpI7UVA/ECTKNZ9oj79dHSJHYNv7C78gaXbM0DSDdWXm47 nLX9rQXhO3EB/lQU7spNhYrNEWdNqj35lCw+4INuM4f5C1e7G2QB1fpP74t5TzFv43 qIwEzbBTTfrxmvnPxtATMBWuV3KV/WyUSGsT98sAfYq8nQkEx8QA6K/f9S65kXkl8D C3WfkI8/oaWKTOpBrAmMMO/elZZWgDt9D4K9Rh7Vaz1eI9OCbFP0WMFY4opOTHWO3h Qt059L4Q9g+Uw== Received: by phobos.denx.de (Postfix, from userid 109) id 6163B83C56; Thu, 17 Feb 2022 16:39:40 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E3B7683C1F for ; Thu, 17 Feb 2022 16:39:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (unknown [91.198.250.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4JzzXQ3SF9z9sR4; Thu, 17 Feb 2022 16:39:34 +0100 (CET) Message-ID: Date: Thu, 17 Feb 2022 16:39:29 +0100 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure Content-Language: en-US To: =?UTF-8?Q?Marek_Beh=c3=ban?= , Chris Packham Cc: pali@kernel.org, "u-boot@lists.denx.de" , =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20220217125443.4544-1-kabel@kernel.org> <20220217125443.4544-2-kabel@kernel.org> From: Stefan Roese In-Reply-To: <20220217125443.4544-2-kabel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 2/17/22 13:54, Marek Behún wrote: > 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 Applied to u-boot-marvell/master Thanks, Stefan > --- > 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 Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de